Socket
Book a DemoInstallSign in
Socket

generator-node-es2015

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-node-es2015

A Yeoman generator for creating ES2015 JavaScript modules with legacy support using Babel, Webpack, Mocha, Chai, Isparta, ESLint

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

generator-node-es2015

A Yeoman generator for creating ES2015 JavaScript modules with legacy support using Babel, Webpack, Mocha, Chai, Isparta, ESLint

Features

  • ES2015 - generator-node-es2015 uses Babel to transpile ES2015 source code. There are several reasons to use ES2015 alongside with transpilation:
  • The transpiled code will work with legacy Node versions;
  • Seamless migration after you decide to drop 0.x.x support;
  • ES2015 Tests - Mocha flag --compilers js:babel-core/register (it's already preconfigured in the npm test script) allows to transpile Mocha tests written with ES2015 on the fly.
  • TDD - The package has a particular npm script npm run tdd to start a Mocha watch task that reruns tests on file changes.
  • Git Hooks - Every time before commiting, husky runs npm tasks conveniently configured in the package.json (in this case it automatically starting both test and build tasks). You can temporary disable this feature by adding --no-verify flag (i.e $ git commit -am "Beep bop" --no-verify). The list of all available hooks can be found here.

Installation

# Install Yeoman and the generator globally
$ npm install -g yo generator-node-es2015

# Make a new folder & open it
$ mkdir my-shiny-module && cd $_

# Run the generator
$ yo node-es2015

Workflow

  • npm run build - Build task that generates both minified and non-minified scripts;
  • npm run test - Run Mocha tests once;
  • npm run tdd - Run Mocha tests & watch files for changes;
  • npm run coverage - Run Isparta, a code coverage tool;

License

MIT © Philipp Alferov

Keywords

yeoman-generator

FAQs

Package last updated on 13 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.