/jables

:guitar: Jest + Babel template for npm modules

Primary LanguageJavaScript

jables 🎸

Jest + Babel template for npm modules

Build Status Greenkeeper badge Maintainability

A simple, opinionated way to bootstrap a npm module, written in ES6+ and transpiled/minified into ES5.

Usage

Dead simple. Click the Use this template button! Make sure you update any relevant information in package.json and README.md before publishing a module.

Scripts

  • build: transpiles and minifies all code in ./src into ./lib using babel;
  • lint: lints code in ./src using eslint;
  • precommit: (automatic) runs linter before every commit;
  • prepublish: (automatic) runs tests before attempting to publish the package;
  • test: runs tests in __tests__ using jest.

Note: scripts assume you use yarn, because you should ;)

Dio can you hear me, I am lost and so alone - J.B.