Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Latest commit

 

History

History
59 lines (33 loc) · 2.42 KB

README.md

File metadata and controls

59 lines (33 loc) · 2.42 KB

Component ui

This component serves the UI for the developer portal including documentation and certificate generation. The compiled result gets embedded in the service JAR.

For a general description of the PSD2 Accelerator see README.md

Development Server

Run npm run start 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

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.

Unit Tests

Run ng test to execute the unit tests via Karma.

Run npm run test-headless to execute the unit tests with a headless browser.

Run npm run test-single-headless to execute just one run of unit tests with a headless browser and afterwards do not watch for changes.

End-to-End Tests

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

Run npm run e2e-running to execute the e2e tests with an already running UI application.

Code Style Check

TSLint

Run npm run tslint to just check the project for code style errors.

Run npm run tslint-fix to automatically fix TSLint errors. Some errors could only be fixed manually.

Prettier

You can prettify files with the prettier plugin for IntelliJ or as cli with the following steps:

  1. Install global prettier package: npm install -g prettier
  2. Prettify single file prettier --write
  3. (Prettify all files in the project with this command:)
    $ find . -name '*.js' -or -name '*.ts' -or -name '*.html' -or -name '*.css' -or -name '*.scss'| grep -v build | grep -v "assets/lib" | grep -v node_modules | xargs prettier --write

Pre-Push Hooks

Before pushing changes to origin, all changed files will be checked automatically by TSLint and Prettier. If there are some errors in the code styling, the push will be canceled.

Further Help

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