generator-node-es7-backend

1.0.0 • Public • Published

generator-node-es7-backend

Yeoman scaffolding for es7 backend

Purpose

IMO, writing javascript code without latest es7 features (especially async/await) in the backend side make code looks ugly and very hard to maintain. So, this may encourage everyone to use more newest es on the backend side.

How to use

Install yeoman

npm i -g generator-node-es7-backend
yo node-es7-backend

Structure

We provide simple way of doing node.js backed

  • /src ---> Put your code here
  • /dist ----> Where real node code will be built by babel

Test file must be written in a manner of *.spec.js

Testing

You can test this boilerplate by running

npm run test

We are using mocha with some transpiler to run the test. I provide hello world example to make it works.

Readme

Keywords

Package Sidebar

Install

npm i generator-node-es7-backend

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • chrisza-tw