-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows to pass in addition to NPM script names any commands. For example ``` start-test 'http-server -c-1 --silent' 8000 'npm run test -- --verbose' ``` * feat: allow arbitrary commands, close #165 * chore: add port argument to the test server script * chore: add client script for testing * chore: described custom commands in README
- Loading branch information
Showing
11 changed files
with
194 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,73 @@ | ||
exports['utils getArguments handles 3 arguments with http-get url 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http-get://localhost:8080" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments returns 3 arguments 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http://localhost:8080" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments returns 3 arguments with url 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http://localhost:8080" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments understands custom commands 1'] = { | ||
"start": "custom-command --with argument", | ||
"url": [ | ||
"http://localhost:3000" | ||
], | ||
"test": "test-command --x=1" | ||
} | ||
|
||
exports['utils getArguments understands several ports 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http://localhost:3000", | ||
"http://localhost:4000", | ||
"http://localhost:5000" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments understands single :port 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http://localhost:3000" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments understands single port 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http://localhost:3000" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments understands start plus url 1'] = { | ||
"start": "start-server", | ||
"url": [ | ||
"http://localhost:6000" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} | ||
|
||
exports['utils getArguments understands url plus test 1'] = { | ||
"start": "start", | ||
"start": "npm run start", | ||
"url": [ | ||
"http://localhost:6000" | ||
], | ||
"test": "test" | ||
"test": "npm run test" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.