From the root directory of this project, run the following commands:
npm install -g gulp npm install
package.json in the root folder. If this file is updated (new dependency is
added, something is removed, or something is updated), you have to run the
to make sure you have all the latest dependencies (the folder
will be updated by this command).
Initially, you will not have the folder
dist. This folder will contain the
built web application from the sources. To build the application, you need
to run the command:
To run a simple HTTP server (that will serve the built static site, contained
dist), in a separate console window run:
This simple server will automatically reload the browser if something changes
To continuously re-build the project when you change some files, in a separate console window run:
If the watcher is running, and you change some code, the project will be
dist folder will be updated. Thus, if you have
gulp tasks running in parallel, development of the application becomes a
This command can be further tailored for your needs. Available variations:
gulp test --once gulp test --browser chrome gulp test --browser phantomjs gulp test --browser chrome --once ...
The order of parameters to
gulp test does not matter.
Upon completion, this command will output in the console coverage statistics,
and will generate a folder
coverage with nicely formated HTML coverage report.
This seed project was inspired by select/Angular2-ES6-Babel-Browserify-Starter project. That project is quite old - it uses the beta Angular 2 sources. Also that project doesn't work out-of-the-box right now.
This project is licensed under the MIT license. Please LICENSE file for more information.