You need installed globally:
$ npm i -g bower gulp karma-cli
You need installed locally:
$ npm install
$ bower install
Copy sample config:
$ cp .env.sample .env
$ cp config/base.sample.coffee config/base.coffee
Change NODE_ENV
to development
or staging
in .env
file.
Run gulp watcher:
$ gulp
Open url in browser:
http://localhost:8080/webpack-dev-server/index.html
Development with running tests:
$ karma start
Running testing suite once:
$ npm run test
or
$ karma start --single-run
Running linter:
$ gulp lint
To staging:
git checkout master
git push origin master
To production:
Oneliner:
git checkout master && git branch -D production; git checkout -b production; git commit --allow-empty -m '[deploy]'; git push -f; git checkout master
Prepare:
git remote add dokku-gymcloud-webapp-staging dokku@lite-1.server.gymcloud.com:gymcloud-webapp-staging
git remote add dokku-gymcloud-webapp-production dokku@lite-1.server.gymcloud.com:gymcloud-webapp-production
To staging:
Oneliner:
NODE_ENV=staging; git checkout master; git branch -D build; git checkout -b build; npm run build && git add -f dist && git commit -m '[build]' && git push dokku-gymcloud-webapp-staging HEAD:master -f && git checkout master
To production:
Oneliner:
NODE_ENV=production; git checkout master; git branch -D build; git checkout -b build; npm run build && git add -f dist && git commit -m '[build]' && git push dokku-gymcloud-webapp-production HEAD:master -f && git checkout master