alice1017 / generator-babel7-with-mocha

A Yeoman generator for ECMAScript development environment with the latest babel 7 and mocha.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generator-babel7-with-mocha

Build Status Version of package.json Package version Node version

A Yeoman generator for ECMAScript development environment with the latest babel@7 and mocha.

devDependencies to be installed

arround babel

  • @babel/cli: ^7.4.4
  • @babel/core: ^7.4.5
  • @babel/preset-env: ^7.4.5
  • @babel/register: ^7.4.4
  • core-js: ^3.1.3
  • regenerator-runtime: ^0.13.2
NOTE: @babel/polyfill has been deprecated as of Babel 7.4.0.

The Babel document says that @babel/polyfill has been deprecated as of Babel 7.4.0.

🚨 As of Babel 7.4.0, this package has been deprecated in favor of directly including core-js/stable (to polyfill ECMAScript features) and regenerator-runtime/runtime (needed to use transpiled generator functions):

import "core-js/stable";
import "regenerator-runtime/runtime";

arround test

  • mocha: ^6.1.4
  • power-assert: `^1.6.1**
  • babel-plugin-espower: ^3.0.1

another

  • eslint: ^5.16.0
  • babel-eslint: ^10.0.1

Structure of generated directory

.
β”œβ”€β”€ .babelrc
β”œβ”€β”€ .eslintignore
β”œβ”€β”€ .eslintrc.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package.json
β”œβ”€β”€ src
β”‚   └── index.js
└── test
    └── mocha.opts

About

A Yeoman generator for ECMAScript development environment with the latest babel 7 and mocha.


Languages

Language:JavaScript 100.0%