Hapi Plugin Boilerplate in ES6
- Clone this repository
- Install dependencies
src/index.es6 file, its a simple plugin adds a route to hapi server.
npm run compile, transpiled file will located in
- Run test with
npm run test
src folder contains all ES6 source
dist folder contains transpiled ES5 code
test folder contains ES6 tests with
transformer.js to tell
lab how to transpile ES6 files.
npm run lint execute
src folder with
babel-eslint parser and reports.
npm run compile execute
src folder and outputs to
npm run test execute
lab on test folder with custom transpile information.
npm run coverage coverage report by Lab.
- prepublish called before
npm publish just in case to forget to compile before publish.