项目作者: yasu-s

项目描述 :
Angular CLI Sample. (Browsersync, CI)
高级语言: TypeScript
项目地址: git://github.com/yasu-s/ng-cli-sample.git
创建时间: 2018-05-25T12:42:28Z
项目社区:https://github.com/yasu-s/ng-cli-sample

开源协议:MIT License

下载


Overview

This is a sample of Angular CLI execution environment.
In addition to the basic script of Angular CLI, the following start script has been added.

  • Launch Browsersync
  • Unit test execution (for CI)
  • TSLint execution (for CI)

System requirements

  • Node.js 8.x
  • Angular 7.x

Operation check

1. Download Sample

  1. git clone git@github.com:yasu-s/ng-cli-sample.git

2. Installing packages

  1. cd ng-cli-sample
  2. npm install

3. Launch sample application

  1. npm start

NPM Script list






























script overview
build Build the source code.
start:bs
Start up with Browsersync.

Monitor changes in the source code and also run builds.
test Execute the unit test.
test:headless
Execute the unit test.(CI)

Output the JUnit format test result file to ./reports/test-results.xml.

For code coverage also output to the ./reports/coverage directory.
lint Execute the tslint.
lint:output
Execute the tslint.(CI)

Output TSLint result to ./reports/tslint-result.json.