Skip to content

Commit 8a88027

Browse files
feat(command): add dev command (#138)
1 parent d1837b5 commit 8a88027

16 files changed

Lines changed: 1679 additions & 149 deletions

File tree

README.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,43 @@ Command line interface for building NW.js apps
1313
Create a Vanilla JavaScript project.
1414

1515
```shell
16-
nw create MyApp
16+
└─$ nw-cli create --help
17+
Usage: nw-cli create [options] <name>
18+
19+
Arguments:
20+
name app name
21+
22+
Options:
23+
--template <template> template name (default: "vanilla-js")
24+
--outDir <dir> output directory (default: ".")
25+
-h, --help display help for command
1726
```
1827

19-
Choose your template (defaults to `vanilla-js`) and out directory (defaults to `.`).
28+
### dev
29+
30+
Run application in development mode.
2031

2132
```shell
22-
nw create --template=react-js --outDir=/path/to/project/dir MyApp
33+
└─$ nw-cli dev --help
34+
Usage: nw-cli dev [options]
35+
36+
Run app in development mode
37+
38+
Options:
39+
--version <version> NW.js version (default: "latest")
40+
--flavor <flavor> NW.js flavor (default: "normal")
41+
--platform <platform> NW.js platform (default: "linux")
42+
--arch <arch> NW.js architecture (default: "x64")
43+
--downloadUrl <string> Download URL (default: "https://dl.nwjs.io")
44+
--manifestUrl <string> Manifest URL (default: "https://nwjs.io/versions.json")
45+
--cacheDir <dir> Cache directory (default: "/home/localghost/.nw-cli/cache")
46+
--cache <boolean> Cache binaries (default: true)
47+
--ffmpeg <boolean> Download community ffmpeg (default: false)
48+
--nativeAddon <boolean> Download NW.js Node headers (default: false)
49+
--shaSum <boolean> Verify SHASUM (default: true)
50+
--srcDir <dir> Project source directory (default: ".")
51+
--argv <item...> Command line arguments (default: [])
52+
-h, --help display help for command
2353
```
2454

2555
> Note: If you find a template is missing, feel free to open an issue or pull request.

0 commit comments

Comments
 (0)