an opinionated yeoman generator that scaffolds a mvc express webapp completely in es6
simply run the following to install via npm:
npm i -g yo gulp-cli
Clone this repo and them runn
npm link .
once installed, simply do yo espress
, and you'll be on your way to building your next project!
all of your source code goes in the src
folder.
anything javascript can (and should) be written in es6.
the strucutre is as follows:
├── Gruntfile.js
├── LICENSE
├── README.md
├── config
│ └── dev.json
├── package.json
├── scripts
│ ├── fh-test
│ ├── fh-test-launcher.sh
│ ├── install.sh
│ └── postinstall.sh
├── sonar-project.properties
└── src
├── app.js
├── endpoints
│ └── http
│ ├── error.js
│ ├── index.js
│ └── sys.js
└── helpers
├── logger.js
└── validation.js
The generated project will use ES6 by default. To transpile the app, run
grunt babel
It will generate the code in the lib
directory
gulp
is the same asgulp serve
, which not only starts your express server, but also reloads it whenever server-side code changesgulp build
creates your production-ready webapp by running the following tasks:gulp lint
will lint all javascript with eslint and rules definted in.eslint.json
gulp clean
will remove any and all files created by any of the above tasksgulp tasks
will show you all of the available tasks