hpb

hapi-plugin-boilerplate

Hapi plugin boilerplate in es6

Showing:

Popularity

Downloads/wk

1

GitHub Stars

3

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

1.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Hapi Plugin Boilerplate in ES6

Get started

  1. Clone this repository git@github.com:ubaltaci/hapi-plugin-boilerplate.git
  2. Install dependencies npm install
  3. Check src/index.es6 file, its a simple plugin adds a route to hapi server.
  4. Run npm run compile, transpiled file will located in dist/index.js
  5. Run test with npm run test

Structure

  • 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 scripts

  • lint npm run lint execute eslint on src folder with babel-eslint parser and reports.
  • compile npm run compile execute babel on src folder and outputs to dist folder.
  • test npm run test execute lab on test folder with custom transpile information.
  • coverage npm run coverage coverage report by Lab.
  • prepublish called before npm publish just in case to forget to compile before publish.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100