Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/briandipalma/generator-node-esnext
Yeoman generator for creating node es next (ES6, ES7) projects, using traceur and ES6 module loader.
https://github.com/briandipalma/generator-node-esnext
Last synced: 24 days ago
JSON representation
Yeoman generator for creating node es next (ES6, ES7) projects, using traceur and ES6 module loader.
- Host: GitHub
- URL: https://github.com/briandipalma/generator-node-esnext
- Owner: briandipalma
- Created: 2014-05-08T08:07:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T18:05:36.000Z (about 10 years ago)
- Last Synced: 2024-11-07T03:09:23.038Z (about 1 month ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- es6-tools - generator-node-esnext - Yeoman generator for Traceur apps (Code generation / Brunch Plugins)
README
![](https://david-dm.org/briandipalma/generator-node-esnext.png)
# Getting Started
Install `generator-node-esnext`.
```
$ npm i -g generator-node-esnext
```Create a directory for your node es6 package. Then `cd` into it.
```
$ mkdir && cd
```Finally, initiate the generator:
```
$ yo node-esnext
```# Usage
Within your package the generator provides the following commands.
## Commands
* `npm run build` - Compiles ES6+ modules/code to ES5 CommonJS modules/code
* `npm run start` - Execute your package. Only works if your package should run from the command line.
* `npm run watch` - Watches `src` directory 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 `src` directory.
* compiled ES6+ code is outputed to the `out` directory.
* the package main module is located at `src\index.js`.## License
MIT