1.0.3 • Published 10 years ago
es6-lib-starter-light v1.0.3
ES6 library starter
A light starter for a Node ES6 library.
Quick usage
- Clone this repo.
- Change all relevant entries in
package.jsonandREADME.md, so they match your new shiny library. - Run
npm installto install dev dependencies. - Write your ES6 code in
srcfolder. - Write your ES6 tests in
testfolder. - Run
npm run buildto build for Node. This will compile to ES5 and output the result tolibfolder. - Run
npm publishto pulish to the world.
Detailed overview
Installation
After cloning this repository, make sure to change all the relevant entries in package.json so they match your library.
npm installBuild for npm
npm run buildThis will:
1. Convert all files in src folder from ES6 to ES5
2. Output the result to the lib folder
Test
npm run testConfiguration
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)
License
MIT