sc0tt5 / ng-universal

Custom implementation of Angular universal for testing purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng-universal

Angular Universal testing with a more complex setup - includes router animations, HTTP interceptor, and an accordion component using the strategy pattern. Oh, and let's throw Jest into the mix.

This project was generated with Angular CLI version 8.2.1.

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|guard|interface|enum|module.

Build

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

This project uses Jest. To run once then npm run test, in watch mode npm run test:watch, etc. See package.json for additional test scripts.

You can also use Jest Test Explorer to run all test, individually, or to debug.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

ToDo

About

Custom implementation of Angular universal for testing purposes

License:GNU General Public License v3.0


Languages

Language:TypeScript 76.2%Language:JavaScript 9.2%Language:CSS 8.5%Language:HTML 6.0%