Commit eb77c982 authored by Dhiraj Shrivastava's avatar Dhiraj Shrivastava
Browse files

build structure change

parent c889d1a8
......@@ -7,4 +7,4 @@ RUN npm install
COPY . .
RUN npm run build
FROM twalter/openshift-nginx:stable
COPY --from=node /usr/src/app/dist /usr/share/nginx/html
\ No newline at end of file
COPY --from=node /usr/src/app/dist/demo-frontend /usr/share/nginx/html
\ No newline at end of file
......@@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"POC1": {
"demo-frontend": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
......@@ -17,7 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/POC1",
"outputPath": "dist/demo-frontend",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
......@@ -62,18 +62,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "POC1:build"
"browserTarget": "demo-frontend:build"
},
"configurations": {
"production": {
"browserTarget": "POC1:build:production"
"browserTarget": "demo-frontend:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "POC1:build"
"browserTarget": "demo-frontend:build"
}
},
"test": {
......@@ -107,7 +107,7 @@
}
}
},
"POC1-e2e": {
"demo-frontend-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
......@@ -116,11 +116,11 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "POC1:serve"
"devServerTarget": "demo-frontend:serve"
},
"configurations": {
"production": {
"devServerTarget": "POC1:serve:production"
"devServerTarget": "demo-frontend:serve:production"
}
}
},
......@@ -136,5 +136,5 @@
}
}
},
"defaultProject": "POC1"
"defaultProject": "demo-frontend"
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment