| commit | 4c9248e58c2d023f9f3b47747e302b64900b2d09 | [log] [tgz] |
|---|---|---|
| author | Christopher Keim <keim@develop-group.de> | Tue Jun 30 07:41:59 2020 +0200 |
| committer | Christopher Keim <keim@develop-group.de> | Tue Jun 30 07:41:59 2020 +0200 |
| tree | 8a663769d22758ab66c855832f656e14f855e362 | |
| parent | 22dbe0d7bc7e16c78769ba9ce59535d7ed3fa82e [diff] |
[TOB-152] feat: Add drop down menu to new page [TOB-165] fix: Add server configuration to assets [TOB-196] chore: Add squareqube configuration * Add scripts and configuration for sonarqube * Fix minor linting errors * Add puppeteer for tests with headless chrome [162] test: Add tests for service classes * Add tests for AppRouting/RouteGuards * Add tests for I18nService * Add tests for AuthService/AuthInterceptorService [161] test: Add tests for components * Add tests for FileDropComponent * Add tests for NewStatementComponent * Add tests for NewStatementFormComponent * Add tests for NavigationComponent * Add tests for NavDropDownComponent * Add tests for ExitPageComponent * Add tests for ObjToArrayPipe * Add tests for MomentPipe [TOB-130] feat: Add form for negative answer * Add API calls for Camunda process * Add store module for Camunda process * Add dynamically buttons to details component according to tasks * Add basic edit component for statements Signed-off-by: Christopher Keim <keim@develop-group.de>
This application represents a user module for the Eclipse openK User Modules project.
With npm in the path variable, run first npm install to download and install all dependencies of this module. After that, all npm scripts for deploying, developing and testing are available.
Additionally, archiving the build as WAR file requires also the Java Archiver command line tool in the path variable.
The whole application can be configured via certain properties in the ./package.json. The following options are available:
routes.spaFrontend: Route on which the website is servedroutes.spaBackend: Route on which the website's backend is servedroutes.portal: Route on which the main portal is servedChanges to these properties take only effect after rebuilding the application.
Building the application is done via the Angular CLI or by the provided scripts in the ./package.json (which also provide all necessary configuration steps):
npm run build Build the application via the Angular CLI to the ./dist/statement-public-affairs foldernpm run archive Archive the build as WAR file to ./dist/statement-public-affairs-frontend.warNote that the archiving script requires the Java Archiver (jar) command line tool in the path variable.
Run npm run start for setting up a local dev server which is served on http://localhost:4200/. The local dev server is also a proxy which can be configured by the file ./proxy.conf.json. It redirects all calls to the back end to a specific location.
Run npm run test to execute all tests via Karma and Jasmine. This also sets up a local dev server with live reload.
Run npm run test:report instead to generate a coverage report at the folder ./coverage/statement-public-affairs.
Run npm run lint for linting all source files, both typescript and (s)css code.
Run npm run lint:report to generate instead linting report files at ./lint.ts.report.json and ./lint.styles.report.json.
Run npm run sonar to upload the test and linting reports to a sonarqube instance via the sonar-scanner. This can be configured either by the ./sonar-projects.properties file or by arguments on the command line. For example, uploading the reports to a different port can be done via:
npm run sonar -- -Dsonar.host.url=http://localhost:9001
Run start:storybook for setting up a local storybook server.
Run build:storybook instead for building the storybook webpage for later use.
Run npm run list-licenses to generate a listing of all packages and their licenses used for production. A file is created at ./licenses.txt. The content of this file is required in the ./NOTICE.md file.
Run npm run check-legal-headers to check if all source files have a specific legal header.
Run npm run pre-commit to check if a commit passes the pre-commit script. This script concatenates npm run lint and npm run check-legal-headers.