Skip to content

stijn26/angular-cli-starter

Repository files navigation

Angular-cli-starter

This project was generated with angular-cli version 1.0.0-beta.21-1.

Install instructions

  1. Clone the project
  2. Run npm install

Linter

Tslint needs to be installed globally: npm install -g tslint When using Visual Code, install the tslint addon to have a instant-linter when writing code. Other IDE's should have a similar addon. Alternatively, you can run ng lint to check for linting errors. The linter checks that lines are consistently indented. However it doesn't checks for indent spaces. The indent space will be 2 spaces.

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.

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.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Sass

You can just write sass in a .sass file, Angular-cli automatically compiles the code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published