Code examples inspired by a great composition>inheritance tutorial.
It comes with a fast running, simple to grasp, jest test setup.
All dev-tools are exposed as npm scripts.
To get started, clone this repo and run
npm install (or
yarn install if you prefer).
Hope somebody may find it useful. Ideas and contributions very welcome!
The bulk of your development is supposed to happen in the
There you'll find
shared subfolders you can fill accordingly
dist folder should contain your static assets (here only
node_modules, well, contains your modules.
The following folders will be generated by the included scripts and should not be modified manually.
.nyc_output contains files releated to test coverage.
npm start: Starts node server serving the build client bundle
npm test: Run the test suite
npm run lint: run eslint, we use airbnb style
npm build: Build the client bundle
npm run dev: Start the development, live-reloading, server
npm run coverage: Calculate test coverage.
For some task there is a watch task, which can run the corresponding task after file cahnges.
npm run test:watch: Run tests repeatedly
npm run lint:watch: Run eslint repeatedly
npm run coverage:watch: Run coverage task repeatedly
npm run fulltest: Run eslint and test repeatedly
Licensed under the Unlicense (this is a permissive open-source license and doesn't mean this project is not licensed!)