This repository was archived by the owner on Sep 12, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +42
-5
lines changed Expand file tree Collapse file tree 3 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 4343
4444OPTIONS
4545 -c, --cmd=cmd command to run
46- -d, --devport=devport port of the dev server started by command
4746 -f, --functions=functions Specify a functions folder to serve
4847 -o, --offline disables any features that require network access
4948 -p, --port=port Specify port of netlify dev
Original file line number Diff line number Diff line change 1+ # test fixtures
2+
3+ ## test netlify dev --live
4+
5+ 1 . CRA
6+ 2 . CRA + redirect for SPA
7+ 3 . CRA + functions
8+ 4 . CRA + redirected functions
9+ 5 . Gatsby
10+
11+ ## netlify dev
12+
13+ 1 . netlify dev
14+ 2 . netlify dev --port 23
15+ 3 . netlify dev --cmd vuepress
16+ 4 . netlify dev --offline
17+ 5 . netlify dev, with toml, good port
18+
19+ [ dev]
20+ port = 8000 # Port that the dev server will be listening on
21+
22+ 6 . netlify dev, with toml, bad port
23+
24+ [ dev]
25+ port = 9999 # Port that the dev server will be listening on
26+
27+ 7 . netlify dev, with toml, \_ redirects inside publish
28+
29+ [ dev]
30+ publish = "public"
31+
32+ 8 . netlify dev, with toml, custom command
33+
34+ [ dev]
35+ command = "yarn start"
36+
37+ 9 . netlify dev,
38+ with custom command in flag, --cmd vuepress,
39+ but also custom command in toml (flag should win)
40+
41+ [ dev]
42+ command = "yarn start"
Original file line number Diff line number Diff line change @@ -266,10 +266,6 @@ DevCommand.strict = false;
266266
267267DevCommand . flags = {
268268 cmd : flags . string ( { char : "c" , description : "command to run" } ) ,
269- devport : flags . integer ( {
270- char : "d" ,
271- description : "port of the dev server started by command"
272- } ) ,
273269 port : flags . integer ( { char : "p" , description : "port of netlify dev" } ) ,
274270 dir : flags . integer ( { char : "d" , description : "dir with static files" } ) ,
275271 functions : flags . string ( {
You can’t perform that action at this time.
0 commit comments