The Frontend Build uses Gulp.js for frontend task automation.
Installing the gulp-cli globally is optional. You can install the gulp-cli
globally via npm install -g gulp-cli
and use the gulp cli directly, initiate
gulp tasks via npm run
or simply stick with the predefined npm start
and
npm test
described below.
Run the commands below in the project root directory.
$ npm install
List all gulp tasks available
$ gulp --tasks
Serve and watch files for development
$ gulp serve
Run unit tests and watch for changes to rerun (Chrome needs to be installed)
$ gulp test:auto
Run unit tests once (Chrome needs to be installed)
$ gulp test
Build optimized application for production
$ gulp build
If you do not install the gulp-cli you can run the following with npm
$ npm run gulp [some defined gulp task]
List all gulp tasks available
$ npm run gulp -- --tasks
Serve and watch files for development
$ npm start
Run unit tests and watch for changes to rerun (Chrome needs to be installed)
$ npm run test:auto
Run unit tests once (Chrome needs to be installed)
$ npm test