README
Boilermaker
Boilerplate made easy.
steps:
npm init
Add the following to
package.json
's scripts section:- If env is browser:
"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "npx webpack-dev-server --mode development --config webpack.config.js --hot --history-api-fallback --host 0.0.0.0" },
- If env is node:
"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "npx nodemon index.js" },
Run
./init.sh
and follow the promptsTo use quokka.js on a file in browser env, add the following snippet to the top of the file:
//Quokka config - must be used on per-file basis
({
babel: true,
plugins: ['jsdom-quokka-plugin'],
});