Libraries
Prerequisites
- node.js Node 6 with NPM 3 is required.
- gulp
npm install -g gulp
- git git cmd tool is required
Create App
git clone https://github.com/rkoberg/rihpl.git rihpl-app
cd rihpl-app
npm install
Start Development
- run
gulp
- point your browser to localhost:8000
- build something beautiful
Dev Tasks
gulp
run web app in development mode
gulp -p
run web app in production mode
gulp mocha
run mocha unit tests
gulp mocha-watch
continuous test running for TDD
gulp eslint
eslint
gulp eslint --fix
fix fixable eslint issues
gulp messages-extract
extract messages for translation
gulp messages-check
check missing and unused translations
gulp favicon
create multiplatform favicon
Production Tasks
gulp build -p
build app for production
npm test
run all checks and tests
node src/server
start app, remember to set NODE_ENV and SERVER_URL
gulp to-html
render app to HTML for static hosting
gulp deploy-heroku
deploy Heroku app