Socket
Book a DemoInstallSign in
Socket

hapi-plugin-boilerplate

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-plugin-boilerplate

hapi plugin boilerplate in es6 with babel

0.0.1
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Hapi Plugin Boilerplate in ES6

  • ES6 to ES5 transpile: Babel
  • Test Utility: Lab
  • Assertion Lib: Code
  • Lint: eslint with babel-eslint

Get started

  • Clone this repository git@github.com:ubaltaci/hapi-plugin-boilerplate.git
  • Install dependencies npm install
  • Check src/index.es6 file, its a simple plugin adds a route to hapi server.
  • Run npm run compile, transpiled file will located in dist/index.js
  • 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.

Keywords

hapi plugin boilerplate

FAQs

Package last updated on 03 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.