Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 months ago
JSON representation

Yeoman generator for creating node es next (ES6, ES7) projects, using traceur and ES6 module loader.

Awesome Lists containing this project

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