This is just another one Rollup + Mocha + ESLint + Buble boilerplate/starter project, inpired by https://github.com/w8r/rollup-buble-mocha-boilerplate
- It works! (at least at beginning of 2018 - you know, JS stuff is pretty crazy and unreliable nowadays)
- ESLint code linting, based on "eslint" profile, with some tweaks I found useful (balance between keeping code clear and tidy vs wasting sh..load of time trying to please linter)
- Mocha tests, running in node and in browser
- Automatic JSDom support for Mocha in nodeJS environment
- Suitable for TDD style of development
- Bundling with Rollup, with code map support
- Babel transpiler
npm run lint
- ESLint check for src and test js filesnpm run start
- Build project and open it in browser, with auto-reload upon code changesnpm run test [test-file]
- run specific test in nodeJS env, ex.:npm run test test/spec/index.spec.js
npm run test:all
- run all *.spec.js tests in spec folder in nodeJS environmentnpm run test --watch [test-file]
,npm run test:all --watch
- run one/all Mocha tests, with auto-rerun upon code changesnpm run test:browser
- build project with all tests and run in browser, auto-reload upon code changes
- Add SCSS support
- Add
ENV
variable support - Add production rollup config
- Add code coverage tool
- Fix source-map-support for browser