Skip to content

Commit

Permalink
docs: document app and plugin options on start script
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed May 30, 2024
1 parent 462f970 commit 0ab866e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cli/src/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ const command = {
description: 'The port to use when running the proxy',
default: 8080,
},
// todo: change with Vite
app: {
type: 'boolean',
description:
'Start a dev server for just the app entrypoint (instead of both app and plugin, if this app has a plugin)',
},
plugin: {
type: 'boolean',
description: 'Start a dev server for just the plugin entrypoint',
},
},
handler,
}
Expand Down
3 changes: 3 additions & 0 deletions docs/scripts/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ Options:
--port, -p The port to use when running the development server [number]
--proxy, -P The remote DHIS2 instance the proxy should point to [string]
--proxyPort The port to use when running the proxy [number] [default: 8080]
--app Start a dev server for just the app entrypoint (instead of both
app and plugin, if this app has a plugin) [boolean]
--plugin Start a dev server for just the plugin entrypoint [boolean]
```

0 comments on commit 0ab866e

Please sign in to comment.