1.2.0 • Published 11 years ago
generator-node-esnext v1.2.0

Getting Started
Install generator-node-esnext.
$ npm i -g generator-node-esnextCreate a directory for your node es6 package. Then cd into it.
$ mkdir <node-esnext-package> && cd <node-esnext-package>Finally, initiate the generator:
$ yo node-esnextUsage
Within your package the generator provides the following commands.
Commands
npm run build- Compiles ES6+ modules/code to ES5 CommonJS modules/codenpm run start- Execute your package. Only works if your package should run from the command line.npm run watch- Watchessrcdirectory and rebuilds on changes.
The generator expects a few conventions. They are easy to change if they are not found to be suitable.
Expectations
- source code for your npm package is found in a
srcdirectory. - compiled ES6+ code is outputed to the
outdirectory. - the package main module is located at
src\index.js.
License
MIT