Skip to content

davidmarcoes/angular-mocha-chai-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular 4 with Mocha & Chai Starter Kit

Starter Kit to build an Angular 4 application testable through Mocha & Chai.

Angular CLI

Run npm install -g @angular/cli to install globally Angular CLI.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Lint

Run ng lint to execute the TypeScript linter.

Deploying to GitHub Pages

Run ng github-pages:deploy to deploy to GitHub Pages.