This repository is a seed for writing NPM packages with ES6 syntax using babel.
-
Clone the project to your workspace:
git clone https://github.com/sampathsris/npm-babel-seed.git your-package-name
-
Edit
package.json
to contain the correct package name, version, etc... -
Run
npm install
to install the dependancies. -
Do some coding in the
src
directory andnpm run compile
ES5 sources will be generated in the lib
directory.