generator-deep6
v0.0.10
Published
A Yeoman generator for creating a ES6-capable and TDD based application.
Downloads
6
Maintainers
Readme
generator-deep6
The Deep6 generator will build out a very basic & simple ES6 development environment.
Directory structure
dist/
src/
index.js
test/
spec.js
gulpfile.js
index.js
package.json
readme.md
Gulps
$ gulp
- Build, start, and monitor the service. Watch for changes insrc/
and trigger rebuild and restart. Service listens on port.$ gulp develop
- Build and test the service. Watch for changes insrc/
andtest/
and trigger rebuild and retest.$ gulp ci
- Watchdist/
and retest on changes.$ gulp build
- Only build the app.$ gulp test
- Only test the app.$ gulp nodemon
- Start the service. Watch for changes indist/
and restart service.
The app comes with config
by default so you can use NODE_ENV=xxx
to set up your environment
Workflow
The idea is that you work on code in the src/
directory and when you save it, gulp will "compile" it from ES6 to ES5 and re-run your index.js
automagically.
To get the full TDD experience:
- Start
$ gulp develop
- Edit & save code in
src/
- Observe your test results
- If necessary, update your tests
For a non-TDD approach
- Start
$ gulp
- Edit & save code in
src/
- Observe changes to app (app restarts via nodemon)
If you'd prefer to execute your code manually:
- Start
$ gulp watch
(will detect changes insrc/
and rebuild) - Edit & save code in
src/
- Run your code
$ node ./index.js
Versions
- 0.0.8 - Removed
q
,config
, anddebug
dependencies, movedtest/
intosrc/test/