The build structure was based on this article.
TODO
- Add styling - DONE
- Add gulp watches (see above article) - DONE
- Support unit testing - DONE
- Support e2e testing
- Fix gulp uglify
- Setup ASOS mock server (see above article)
- A good place to learn about setting up git is [here][git-setup].
- You can find documentation and download git [here][git-home].
- Install Node.js
- Install bower as a global npm module:
sudo npm install bower -g
- Install gulp as a global npm module:
sudo npm install gulp -g
- Go to project root folder
- Execute:
npm install
- Execute:
bower install
Development:
gulp build-app-dev
Production:
gulp build-app-prod
Run once:
gulp test
Run continuously (file watching):
gulp tdd
Watches app, builds to dist.dev and reloads browser on any change.
gulp watch-dev
Development:
gulp serve-dev
Production:
gulp serve-prod
TODO: Not tested yet
We recommend using [Protractor][protractor] for end-to-end (e2e) testing.
It requires a webserver that serves the application. See the Running the Application during Development section, above.
- Serve the application with:
npm start
- In a separate terminal/command line window run the e2e tests:
npm run protractor
. - Protractor will execute the e2e test scripts against the web application itself. The project is
set up to run the tests on Chrome directly. If you want to run against other browsers, you must
modify the configuration at
e2e-tests/protractor-conf.js
.
-test ignore this