Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tools): Add more commands to package.json #1908

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

vladitasev
Copy link
Contributor

@vladitasev vladitasev commented Jul 6, 2020

This change exposes two more nps commands as package scripts: serve and watch, and additionally enhances the test command.

Examples:

Command What it does
yarn test Runs the dev server and executes all tests
yarn test --no-server Executes all tests only
yarn test test/specs/Button.spec.js Executes a single spec only (does not run server, no changes)
yarn serve Runs the test server only
yarn watch Runs the watch utility only
yarn watch test Only watches for changes in the test files
yarn watch src Only watches for changes in the source files
yarn watch templates Only watches for template changes

This granularity would allow package authors greater flexibility, f.e. they could combine:

  • yarn serve
  • yarn test --no-server
  • yarn watch test
    arbitrarily based on specific use-cases.

related to: #1767

@vladitasev vladitasev merged commit b0551b3 into master Jul 6, 2020
@vladitasev vladitasev deleted the add-more-package-json-commands branch July 6, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants