[SI-1885] - add configuration and npm tasks
Signed-off-by: dtheinert <dietmar.theinert@pta.de>
diff --git a/package.json b/package.json
index ff5723d..c60f876 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"start-map-app": "npm run build-map-library && ng serve grid-failure-information-map-app",
"start-main-app": "npm run build-map-library && npm run sy-pre-start && ng serve --proxy-config proxy.conf.json",
"start-integration": "npm run sy-pre-start && npm run build-map-library && ng serve --proxy-config proxy.conf-integration.json",
+ "start-integration-map": "npm run sy-pre-start && npm run build-map-library && ng serve grid-failure-information-map-app --proxy-config proxy.conf-integration-map.json",
"start-local": "npm run sy-pre-start && npm run build-map-library && ng serve --proxy-config proxy.conf.json",
"test": "npm run sy-pre-test && ng test grid-failure-information-app",
"test-single-run": "npm run sy-pre-test && ng test grid-failure-information-app --watch=false",
@@ -33,6 +34,7 @@
"create-map-output-elements-windows": "create-map-output-elements.sh",
"create-map-output-elements-linux": "./create-map-output-elements.sh",
"si": "npm run start-integration",
+ "sim": "npm run start-integration-map",
"sl": "npm run start-local"
},
"private": true,
@@ -89,6 +91,7 @@
"@angular/compiler-cli": "8.2.14",
"@types/jasmine": "3.4.0",
"@types/node": "12.12.32",
+ "@babel/compat-data": "7.8.0",
"codelyzer": "5.2.2",
"concat": "1.0.3",
"fs-extra": "8.1.0",
diff --git a/projects/grid-failure-information-map-app/src/index.html b/projects/grid-failure-information-map-app/src/index.html
index 84fa713..80eae3e 100644
--- a/projects/grid-failure-information-map-app/src/index.html
+++ b/projects/grid-failure-information-map-app/src/index.html
@@ -12,8 +12,8 @@
********************************************************************************/ -->
<!DOCTYPE html>
<html lang="en">
- <head> </head>
- <body>
- <openk-grid-failure-information-map-init></openk-grid-failure-information-map-init>
+ <head></head>
+ <body>test
+ <openk-grid-failure-information-map></openk-grid-failure-information-map>
</body>
</html>
diff --git a/proxy.conf-integration-map.json b/proxy.conf-integration-map.json
new file mode 100644
index 0000000..20daab9
--- /dev/null
+++ b/proxy.conf-integration-map.json
@@ -0,0 +1,9 @@
+{
+ "/api": {
+ "target": "http://entdockergss:3003/",
+ "secure": false,
+ "pathRewrite": {
+ "^/api": ""
+ }
+ }
+ }