# Install npm + bower dependencies and then build
npm install
# Launch the watcher & livereload
npm start
# http://localhost:8000
TODO
Clear local storage, start again
# in /nginx/sites-available
server {
root /var/www/not-so-shitty/www;
index index.html;
location / {
try_files $uri /index.html;
}
}
Note : If you encounter issues with routing, check if
base(href="/")
is in your index.html
# Unit tests - Karma + mocha + chai
npm run test:unit
# Functional tests - Protractor + chai + cucumber
# Available options:
# HOST -> http://localhost:8000
# BROWSER -> chrome | firefox | phantomjs
# SELENIUM -> http://127.0.0.1:4444/wd/hub
# You need specify a selenium server or to install one with!
# Local server must be launched: npm start &
node_modules/.bin/webdriver-manager update
HOST=http://localhost:8000 BROWSER=chrome npm run test:functional
npm run test:functional
git submodule foreach git pull origin master
(pas besoin ???)
# Generate docs using dgeni
npm run docs