Yeoman generator
Make sure Yeoman is installed.
$ npm install -g yo
To install generator-gulp-of-drano from npm, run:
$ npm install -g generator-gulp-of-drano
Finally, initiate the generator:
$ yo gulp-of-drano
The generated app will include the following:
gulp
- broadcast dev server to localhost:xxxx. use livereload for automatic refresh.
Unit tests use mocha + chai + sinon.
gulp test:e2e:once
- run all tests intest/unit/**/*.coffee
.gulp test:e2e:watch
- same as above, re-runs tests as they change.
This project uses protractor-ci for E2E tests.
gulp test:e2e:once
- run all tests intest/e2e/**/*.coffee
. bypasses proxy record/playback.gulp test:e2e:watch
- same as above, re-runs tests as they change.gulp test:e2e:record
- records all requests to external APIs for later playback.gulp test:e2e:playback
- use mocked API requests for test suite. Useful for when API is unavailable.gulp test:e2e:ci
- using the mocked API, run tests against Sauce Labs. This is used by the CI test runner.
This assumes the following, where ENV_NAME
is the name of the target NODE_ENV
(production
, staging
, etc.)
- An heroku app exists, and its git remote is named
ENV_NAME
- The heroku app has its
NODE_ENV
set toENV_NAME
(usingheroku config:set
) - You have decrypted the
config/ENV_NAME.yml.example
file and copied its contents toconfig/ENV_NAME.yml
. - There is an s3 bucket config defined in
config/ENV_NAME.yml
. seeconfig/production.yml.example
for an example configuration.
gulp release
gulp stage