Modern Stack to build server-side Node.js packages
Requirements:
- Parallel tests
- Isolated tests
- Async / Await support
- Assertion counting
- Good diff reporting
- TAP reporter
- Coverage reports
🌟 ava
npm run test
Requirements:
- StandardJs
- Opinionated Code Formatter
- Format files on precommit
🌟 prettier
npm run format
npm run lint
Runs on precommit hooks by hasky package.
Requirements: Support for common report formats
🌟 Istanbul nyc
npm run coverage
npm run coverage:html
🌟 Send coverage report with coveralls to coveralls.io
npm run coverage
Requirements: Painless NPM publishing
🌟 np
np patch
np minor
np major
Requirements: Define hooks as npm scripts
🌟 Husky
Requirements: Free CI for OS
- Use a .npmignore file to keep stuff out of your package.
- Use .gitignore file to keep stuff out of your repository.