Commit f8bc768a authored by Alex Segers's avatar Alex Segers

(@asegers) Add deployment config

parent 9ecf1fc0
Pipeline #1618 canceled with stage
image: node:8.12.0
pages:
cache:
paths:
- node_modules/
script:
- npm install -g @angular/cli@7.1.2
- npm install
- npm run buildProd
artifacts:
paths:
- public
only:
- master
- pages
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"outputPath": "dist/single-page-application", "outputPath": "public",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
"build": "ng build", "build": "ng build",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e",
"buildProd": "ng build --base-href=/angular-countries-assignment/"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
......
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