Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ USAGE

OPTIONS
-c, --cmd=cmd command to run
-d, --devport=devport port of the dev server started by command
-f, --functions=functions Specify a functions folder to serve
-o, --offline disables any features that require network access
-p, --port=port Specify port of netlify dev
Expand Down
42 changes: 42 additions & 0 deletions TEST_PLAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# test fixtures

## test netlify dev --live

1. CRA
2. CRA + redirect for SPA
3. CRA + functions
4. CRA + redirected functions
5. Gatsby

## netlify dev

1. netlify dev
2. netlify dev --port 23
3. netlify dev --cmd vuepress
4. netlify dev --offline
5. netlify dev, with toml, good port

[dev]
port = 8000 # Port that the dev server will be listening on

6. netlify dev, with toml, bad port

[dev]
port = 9999 # Port that the dev server will be listening on

7. netlify dev, with toml, \_redirects inside publish

[dev]
publish = "public"

8. netlify dev, with toml, custom command

[dev]
command = "yarn start"

9. netlify dev,
with custom command in flag, --cmd vuepress,
but also custom command in toml (flag should win)

[dev]
command = "yarn start"
4 changes: 0 additions & 4 deletions src/commands/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,6 @@ DevCommand.strict = false;

DevCommand.flags = {
cmd: flags.string({ char: "c", description: "command to run" }),
devport: flags.integer({
char: "d",
description: "port of the dev server started by command"
}),
port: flags.integer({ char: "p", description: "port of netlify dev" }),
dir: flags.integer({ char: "d", description: "dir with static files" }),
functions: flags.string({
Expand Down