2016-10-21 14:16:34 -06:00
|
|
|
## Set up
|
|
|
|
|
2016-10-20 10:41:05 -06:00
|
|
|
### Build
|
|
|
|
Run the following commands
|
2016-10-24 16:44:11 -06:00
|
|
|
1. `npm install`
|
2016-10-20 10:41:05 -06:00
|
|
|
2. `npm run build`
|
|
|
|
|
|
|
|
### Setup Development Environment
|
|
|
|
Run the following commands
|
2016-10-24 16:44:11 -06:00
|
|
|
1. `npm install`
|
2016-10-20 10:41:05 -06:00
|
|
|
2. `npm start`
|
|
|
|
3. `npm test` (optional)
|
|
|
|
|
|
|
|
### Useful commands
|
|
|
|
* `npm run build` Starts a production build
|
|
|
|
* `npm start` Starts the development environment, which watches your
|
|
|
|
system for any file changes and rebuilds automatically. It also serves
|
2016-11-10 23:27:53 -07:00
|
|
|
the dist/ folder from http://localhost:4000/
|
2016-10-20 10:41:05 -06:00
|
|
|
* `npm run clean` Cleans dist/ directory
|
|
|
|
* `npm test` Starts test environment, which will watch your system for
|
|
|
|
any file changes, rebuild your code, and run unit tests
|
|
|
|
* `npm run test-single-run` Builds the code and runs all unit tests a
|
|
|
|
one time
|
2016-10-21 14:16:34 -06:00
|
|
|
|
|
|
|
## Known Issues
|
|
|
|
|
|
|
|
### Visual Studio Code
|
|
|
|
* Jasmine global properties not recognized in Typescript. https://github.com/Microsoft/TypeScript/issues/11620
|