- For Node.js projects.
- Will not allow commits/ pushes with failing (mocha + chai) tests (see package.json).
- Will allow one-click deployments to remote servers after initial setup.
Initial example:
- Configure passwordless ssh login to remote server.
- Edit .env and ./.scripts.
- Then:
chmod +x pre_local.sh
./pre_local.sh
- Then any push will be:
npm run deploy
# Bundle sizes:
npm run analyze
# Comprehensive load test:
npm run loadtest
# Lighthouse metrics
npm run metrics
# Security
npm run scan