A light starter for a Node ES6 library.
- Clone this repo.
- Change all relevant entries in
package.json
andREADME.md
, so they match your new shiny library. - Run
npm install
to install dev dependencies. - Write your ES6 code in
src
folder. - Write your ES6 tests in
test
folder. - Run
npm run build
to build for Node. This will compile to ES5 and output the result tolib
folder. - Run
npm publish
to pulish to the world.
After cloning this repository, make sure to change all the relevant entries in package.json
so they match your library.
npm install
npm run build
This will:
- Convert all files in
src
folder from ES6 to ES5 - Output the result to the
lib
folder
npm run test
In package.json
, change all the relevant entries so they match your details.
Under main
, you can configure library entry point (defaults to ./lib/library.js
)
MIT