Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.
/ ng-cli-sample Public archive

Angular CLI Sample. (Browsersync, CI)

License

Notifications You must be signed in to change notification settings

yasu-s/ng-cli-sample

Repository files navigation

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

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

2. Installing packages

cd ng-cli-sample
npm install

3. Launch sample application

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.