1.0.0 • Published 8 years ago
generator-node-es7-backend v1.0.0
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.
1.0.0
8 years ago