Skip to content

Commit

Permalink
fix: add alias start-test
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 9, 2018
1 parent d0a41c5 commit 96b5d3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,18 @@ To execute all tests simply run `npm run ci`

### Alias

You can use either `start-server-and-test` or `server-test` commands in your scripts.
You can use either `start-server-and-test`, `server-test` or `start-test` commands in your scripts.

You can use `:` in front of port number like `server-test :8080`.
You can use `:` in front of port number like `server-test :8080`, so all these are equivalent

```
start-server-and-test start http://localhost:8080 test
server-test start http://localhost:8080 test
server-test http://localhost:8080 test
start-test :8080 test
start-test 8080 test
start-test 8080
```

### Options

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"bugs": "https://github.com/bahmutov/start-server-and-test/issues",
"bin": {
"start-server-and-test": "bin/start.js",
"server-test": "bin/start.js"
"server-test": "bin/start.js",
"start-test": "bin/start.js"
},
"config": {
"pre-git": {
Expand Down

0 comments on commit 96b5d3e

Please sign in to comment.