This repository is an Angular2 application minimal starter that uses Gulp as a build workflow runner. This starter includes unit tests, based on ng2-test-seed by Julie Ralph.
In order to run this seed, the following software is required
See Setting Up Git from the GitHub guides.
Node.js and Node's package manager, npm, are used for installing dependencies, running the build steps, and running tests.
Begin by cloning the repository.
Use npm to get dependencies:
npm install
npm run test
or gulp test
The build step invokes the TypeScript compiler to create ES5 javascript
files and source maps from the .ts
files. Run with:
npm run build
or gulp typeScript-compile
You can examine the configuration for the TypeScript compiler in tsconfig.json
.
The generated files are output in the same folder as their sources.
To remove all generated files, run:
npm run clean
or gulp clean
.
The watch step can be run with:
npm run watch
o gulp watch
To see the app, run
npm start
or gulp
it will automatically open your default browser and navigate to to localhost:8080
.
We use Karma with the Jasmine test framework to run unit tests.