Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Workflow

Ivan Kleshnin edited this page Mar 2, 2015 · 11 revisions

Workflow

Development

$ gulp                         # nodemon, watches, etc. *
$ gulp frontend:bundle-vendors # repeat at any vendor change
$ gulp dist                    # dist all, exits on first error (use for precommit builds)
$ gulp devel                   # dist all + gulp (*)
$ git commit
$ bin/commit [--bin] [<git-commit-params>] -- git stash, gulp dist, git commit, git unstash
                                           -- to run tests against commit state, not working dir

Deployment

$ bin/stage   -- (TODO should require empty git status) git push, bin/remote/deploy
$ bin/release -- (TODO should require empty git status) gulp release, git push, bin/remote/deploy

NPM

$ npm install               -- installs locally according to package.json
$ npm install <package>

$ npm install gulp -g       -- installs globally according to package.json
$ npm install babel -g
$ npm install bower -g
$ npm install browserify -g
$ npm install watchify -g

$ npm outdated
$ npm outdated -g

$ npm update <package> --save
$ npm update <package> --save -g

Update NPM itself

$ su <password>
# curl -L https://npmjs.com/install.sh | sh

Fixes

$ bin/fixes/globule  # remove stale lodash (https://github.com/shama/gaze/issues/179)
$ bin/fixes/gulp     # shebang: node -> babel-node
Clone this wiki locally