Adam Finlayson's JavaScript application environment
- Logical defaults in package.json (devDependencies, scripts)
- Babel with the "env" preset
- ESLint+Prettier with AirBnB's default rules
- Precommit hook to format (auto-fixing where possible, failing otherwise)
- Jest test runner and the corresponding ESLint plugin
- A logical .gitignore
- A minimal .editorconfig
- Download a local copy (clone if you want to improve this repository)
- Edit and customize to your liking:
- package.json (name, version, description, license)
- README.MD
- Whatever else your heart desires
- Run
npm installto get a package-lock.json - Make your first commit
npm startruns src/main.jsnpm run lintruns ESLint, printing errors and warning in the codenpm run formatis the same asnpm run lintbut fixes errors when possiblenpm testruns the Jest test runner on src/
npm run buildshould invoke a production build stepnpm run deployshould deploy this code
Free as in speech. Safe for use around pets.