-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
79 lines (79 loc) · 5.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "rs-user-web-client",
"version": "1.6.0",
"browser": {
"fs": false,
"http": false,
"https": false
},
"browser-comment": "The 'browser' value is only set as a temporary fix, see: https://github.com/geotiffjs/geotiff.js/pull/234",
"dependencies": {
"@angular/animations": "^13.3.10",
"@angular/common": "^13.3.10",
"@angular/compiler": "^13.3.10",
"@angular/core": "^13.3.10",
"@angular/forms": "^13.3.10",
"@angular/platform-browser": "^13.3.10",
"@angular/platform-browser-dynamic": "^13.3.10",
"@angular/router": "^13.3.10",
"@cds/core": "^5.6.1",
"@clr/angular": "^13.3.1",
"@clr/icons": "^13.0.2",
"@clr/ui": "^13.3.1",
"@webcomponents/webcomponentsjs": "^2.6.0",
"file-saver": "^2.0.5",
"geojson-antimeridian-cut": "^0.1.0",
"keycloak-angular": "^9.3.2",
"keycloak-js": "^16.1.1",
"license-checker": "^25.0.1",
"ol": "^7.1.0",
"rxjs": "~6.6.0",
"tslib": "^2.3.1",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.3.7",
"@angular-eslint/builder": "^13.2.1",
"@angular-eslint/eslint-plugin": "^13.2.1",
"@angular-eslint/eslint-plugin-template": "^13.2.1",
"@angular-eslint/schematics": "^13.2.1",
"@angular-eslint/template-parser": "^13.2.1",
"@angular/cli": "^13.3.7",
"@angular/compiler-cli": "^13.3.10",
"@cypress/schematic": "^1.6.0",
"@types/file-saver": "^2.0.5",
"@types/jasmine": "^3.10.2",
"@types/node": "^16",
"@typescript-eslint/eslint-plugin": "4.28.2",
"@typescript-eslint/parser": "4.28.2",
"concurrently": "^6.4.0",
"cypress": "^8.7.0",
"eslint": "^7.26.0",
"jasmine-core": "~3.9.0",
"karma": "^6.3.9",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"prettier": "^2.7.1",
"typescript": "~4.6.4",
"wait-on": "^6.0.0"
},
"private": true,
"scripts": {
"build": "cp ./src/index.templ.html ./src/index.html && ng build",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"docker:build": "docker build -t \"rs-user-client:dev\" -f ./Dockerfile .",
"docker:run": "docker run -it --rm -p 4201:80 --name user-web-client-dev -e BASE_HREF=/ -e API_URL=http://coprs.werum.de/prip/odata/v1/Products -e MAP_BACKGROUNDS=\"[{\\\"name\\\":\\\"OSM (WMS)\\\",\\\"layers\\\":[{\\\"url\\\":\\\"https://ows.terrestris.de/osm/service?\\\",\\\"layerName\\\":\\\"OSM-WMS\\\"}]}]\" -e KEYCLOAK=\"{\\\"url\\\":\\\"http://localhost:8080/auth\\\",\\\"realm\\\":\\\"master\\\",\\\"clientId\\\": \\\"user-web-client\\\"}\" -e MAP_VIEW=\"{\\\"regionSelectionFillColor\\\":\\\"rgba(255,155,51,0.3)\\\",\\\"regionSelectionStrokeColor\\\":\\\"rgba(255,155,51,0.6)\\\",\\\"selectionFillColor\\\":\\\"rgba(0, 114, 163, 0.3)\\\",\\\"selectionStrokeColor\\\":\\\"rgba(0, 114, 163, 0.6)\\\",\\\"highlightFillColor\\\":\\\"rgba(50, 211, 63, 0.3)\\\",\\\"highlightStrokeColor\\\":\\\"rgba(50, 211, 63, 0.8)\\\"}\" -e FILTER_CONFIG=\"[{\\\"attributeName\\\":\\\"PublicationDate\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"EvictionDate\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"ContentDate/Start\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"ContentDate/End\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"ContentLength\\\",\\\"valueType\\\":\\\"size\\\"},{\\\"attributeName\\\":\\\"Name\\\",\\\"valueType\\\":\\\"string\\\"},{\\\"attributeName\\\":\\\"ProductType\\\",\\\"valueType\\\":\\\"string\\\"}]\" -e ADDITIONAL_ATTRIBUTES=\"[{\\\"label\\\": \\\"Orbit Number\\\", \\\"value\\\": \\\"orbitNumber\\\"}]\"rs-user-client:dev",
"e2e": "ng e2e",
"e2e:ci": "concurrently \"npm run start\" \"wait-on http-get://localhost:4200 && npm run cypress:run\" --kill-others --success first",
"lint": "ng lint",
"ng": "ng",
"start": "API_URL=http://coprs.werum.de/prip/odata/v1/Products MAP_BACKGROUNDS=\"[{\\\"name\\\":\\\"OSM (WMS)\\\",\\\"layers\\\":[{\\\"url\\\":\\\"https://ows.terrestris.de/osm/service?\\\",\\\"layerName\\\":\\\"OSM-WMS\\\"}]}]\" KEYCLOAK=\"{\\\"url\\\":\\\"http://localhost:8080/auth\\\",\\\"realm\\\":\\\"master\\\",\\\"clientId\\\": \\\"user-web-client\\\"}\" MAP_VIEW=\"{\\\"regionSelectionFillColor\\\":\\\"rgba(255,155,51,0.3)\\\",\\\"regionSelectionStrokeColor\\\":\\\"rgba(255,155,51,0.6)\\\",\\\"selectionFillColor\\\":\\\"rgba(0, 114, 163, 0.3)\\\",\\\"selectionStrokeColor\\\":\\\"rgba(0, 114, 163, 0.6)\\\",\\\"highlightFillColor\\\":\\\"rgba(50, 211, 63, 0.3)\\\",\\\"highlightStrokeColor\\\":\\\"rgba(50, 211, 63, 0.8)\\\"}\" FILTER_CONFIG=\"[{\\\"attributeName\\\":\\\"PublicationDate\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"EvictionDate\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"ContentDate/Start\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"ContentDate/End\\\",\\\"valueType\\\":\\\"date\\\"},{\\\"attributeName\\\":\\\"ContentLength\\\",\\\"valueType\\\":\\\"size\\\"},{\\\"attributeName\\\":\\\"Name\\\",\\\"valueType\\\":\\\"string\\\"},{\\\"attributeName\\\":\\\"ProductType\\\",\\\"valueType\\\":\\\"string\\\"}]\" ADDITIONAL_ATTRIBUTES=\"[{\\\"label\\\": \\\"Orbit Number\\\", \\\"value\\\": \\\"orbitNumber\\\"}]\" envsubst '$${API_URL} $${ODATA_RESOURCE_NAME} $${MAP_BACKGROUNDS} $${KEYCLOAK} $${MAP_VIEW} $${FILTER_CONFIG} $${ADDITIONAL_ATTRIBUTES}' < ./src/assets/config.templ.json > ./src/assets/config.json && BASE_HREF=${BASE_HREF:-/} envsubst '$${BASE_HREF}' < ./src/index.templ.html > ./src/index.html && ng serve",
"test": "ng test --code-coverage",
"test:ci": "ng test --watch=false --browsers=ChromeHeadlessNoSandbox --code-coverage",
"updateLicenseList": "license-checker --out THIRD-PARTY.txt && sed -i '/─ licenseFile:/d' THIRD-PARTY.txt && sed -i '/─ path:/d' THIRD-PARTY.txt",
"watch": "ng build --watch --configuration development"
}
}