babel-npm-boilerplate

A Boilerplate for creating NPM packages using Babel, ESLint, Mocha and Chai

Usage no npm install needed!

<script type="module">
  import babelNpmBoilerplate from 'https://cdn.skypack.dev/babel-npm-boilerplate';
</script>

README

babel-npm-boilerplate Build Status npm version

A Boilerplate for creating NPM packages using Babel, ESLint, Mocha and Chai

What's inside

Minimal structure for a npm package source.

  • Babel 6
  • Mocha
  • ESLint
  • Isparta

Installation

Clone this repo or download using npm

npm install babel-npm-boilerplate --save

Usage

  • npm run test to run tests
  • npm run test-cov to generate test coverage
  • npm run build to transform es6/es7 to es5 by Babel
  • npm run clean to clean build/ directory
  • npm run lint to lint js using ESLint in Airbnb's Javascript style

Liscense

MIT