Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ Starts the server that communicates with connected devices

Specify port to listen on

#### `--projectRoot [list]`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't actually a list is it? looks like it's just forwarded to path.resolve() which doesn't take a list

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, it's a string. Mind sending a PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Path to a custom project root

#### `--watchFolders [list]`

Specify any additional folders to be added to the watch list
Expand Down
8 changes: 7 additions & 1 deletion packages/cli/src/commands/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ export default {
name: '--host [string]',
default: '',
},
{
name: '--projectRoot [path]',
description: 'Path to a custom project root',
parse: (val: string) => path.resolve(val),
},
{
name: '--watchFolders [list]',
description:
'Specify any additional folders to be added to the watch list',
parse: (val: string) => val.split(','),
parse: (val: string) =>
val.split(',').map<string>((folder: string) => path.resolve(folder)),
},
{
name: '--assetPlugins [list]',
Expand Down