generator-esnext

0.0.4 • Public • Published

ES6 Generator

Yeoman generator for projects that use ECMAScript 6.

Table of Contents

  1. Installation
  2. Usage
  3. Options
  4. Structure

Installation

To install Yeoman:

npm install -g yo

To install the ES6 generator:

npm install -g generator-esnext

Usage

Using the ES6 generator is simple:

yo esnext

To run tests:

npm test

To build your project:

npm run build

Options

Would you like to lint with JSHint?

Yes to include linting with JSHint in the npm test task.

What testing framework would you like to use?

Pick a testing framework to use in the npm test task. Only supports Jasmine for now.

Structure

Save .js files to appropriate modules in the src directory. Save tests in each module's tests directory.

Example file tree:

.
├── build
│   └── my-app.js
├── gruntfile.js
├── my-app.html
├── lib
│   └── traceur-runtime
│       ├── MIT-LICENSE.txt
│       ├── traceur-runtime.min.js
│       └── traceur-runtime.min.map
├── package.json
└── src
    └── my-app
        ├── app.js
        └── tests
            └── app_tests.js

Package Sidebar

Install

npm i generator-esnext

Weekly Downloads

1

Version

0.0.4

License

none

Last publish

Collaborators

  • jmcriffey