Project boilerplate set up with Continuous Integration
- Automated testing/building with isolated virtual machines.
- Enforces linter styles and runs tests
- Sample Jest configuration file
npm run lint:check
: check files with ESLint stylesnpm run test
: run ALL test filesnpm run test:watch
: test files with auto refreshnpm run test:branch
: run tests only on branch
config.js
: add configuration variables.env
: update enviroment variablesREADME.md
: change badge URLS =>spencerlepine/continuous-integration-boilerplate
tousername/repo
- Triggers on main branch push
- Triggers on branch push or PR
- executes
npm test
- executes
npm lint:check
- Comments coverage on each Pull Request
- Uploads TEST coverage to Coveralls.io
- Enforces linter styles
- Runs
npm test
to check before updating remote - Note:
npm run husky:remove
:- package.json script: deletes husky files
- macOS command:
rm -f .husky/pre-commit && rm -f .husky/pre-push
spencerlepine.com · GitHub @spencerlepine · Twitter @spencerlepine