Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 4a9aa39

Browse files
authored
Merge pull request #90 from netlify/removeDevPort
Remove dev port
2 parents 92b9ea4 + 52e6370 commit 4a9aa39

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ USAGE
4343

4444
OPTIONS
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

TEST_PLAN.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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"

src/commands/dev/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,6 @@ DevCommand.strict = false;
266266

267267
DevCommand.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({

0 commit comments

Comments
 (0)