Skip to content

davidlondono/babel-boilerplate-module

Repository files navigation

Why? Build Status

📃 Boilerplate for npm/node module. Write with ES6 and ES7 - have compatibility node > 5.

This boilerplate is for people who want write code using all ES6 and ES7 features ( and stage-3 ) but also want/need backwards compatibility with old node versions.

Features

Commands

  • npm run pretest - Hook for test. Run the lint before the test run
  • npm run clean - Remove ./lib directory
  • npm test - Run tests. Tests can be written with ES7
  • npm test:watch - You can even re-run tests on file changes!
  • npm run lint - Run Lint of ESLint with airbnb-config rules
  • npm run test:examples - We recommend writing examples on pure JS for better understanding module usage.
  • npm run build - Create the ES5 on ./libof the ES7 of./src`
  • npm run watch:babel - watch changes of files on ./src to compile them on real time
  • npm run postinstall - Hook to compile after the module is installed

Installation

Just clone this repo and remove .git folder.

Releases

No releases published

Packages

No packages published