npo-platform-ui v0.0.0
NpoPlatformUi
Editor
We recommend using vscode as your editor and follow this readme for installing the recommended extensions. https://github.com/johnpapa/vscode-angular-essentials
Development server
Run yarn hmr for a development HMR server. Navigate to http://localhost:51849/. The app will automatically reload if you change any of the source files.
If HMR is causing issues, you may run yarn start to run the application like normal.
Code scaffolding
Run yarn g:module module-name to generate a new module for a new feature.
Run yarn g:component module-name component-name to generate a new component within a module. Use common as the module name if you want to build a resuable component
Run yarn g:service service-name to generate a new service in the core module.
Run yarn g:pipe pipe-name to generate a pipe in the common module.
Build
Run yarn 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 yarn test to execute the unit tests via Jest.
Running end-to-end tests
Run yarn 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.
3 years ago