Albert-Gao / modern-es6-npm-boilerplate

An ES6 boilerplate for writing NPM package.
MIT License
44 stars 4 forks source link
babel boilerplate es6 eslint javascript jest npm template

Modern ES6 NPM Boilerplate

npm version npm Build Status

A template which you could use to write your NPM package via ES6 syntax.

It uses:

Just added 1 more:

How to use

  1. Clone this repo from github
    • git clone https://github.com/Albert-Gao/es6-npm-boilerplate.git
  2. Inside repo directory run npm install && rm -r .git && git init
  3. Update package.json with your information

Commands

Badges

We currently have 3 badges here:

About travis

Instead of running the default test command, we will run the npm run prepare since it including all the phases for the final release.

And in the readme.md, we have a status icon which shows how to add that building status from Travis. Do remember to modify its URL after forking your repo.

About .vscode folder

It contains an example to show how to debug the Jest test in Visual studio code, remove it if you don't want.

You should add .vscode to the .gitignore file.