Skip to content

Commit b0cc690

Browse files
committed
Updated Angular project for deployment
1 parent fc1f9d4 commit b0cc690

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

angular.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"pillway-dashboard": {
6+
"dynamic-angular-dashboard": {
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
@@ -17,7 +17,7 @@
1717
"build": {
1818
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
20-
"outputPath": "dist/pillway-dashboard",
20+
"outputPath": "dist/dynamic-angular-dashboard",
2121
"index": "src/index.html",
2222
"browser": "src/main.ts",
2323
"polyfills": [
@@ -65,10 +65,10 @@
6565
"builder": "@angular-devkit/build-angular:dev-server",
6666
"configurations": {
6767
"production": {
68-
"buildTarget": "pillway-dashboard:build:production"
68+
"buildTarget": "dynamic-angular-dashboard:build:production"
6969
},
7070
"development": {
71-
"buildTarget": "pillway-dashboard:build:development"
71+
"buildTarget": "dynamic-angular-dashboard:build:development"
7272
}
7373
},
7474
"defaultConfiguration": "development"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build",
87
"watch": "ng build --watch --configuration development",
9-
"test": "ng test"
8+
"test": "ng test",
9+
"build": "ng build --configuration production --base-href /dynamic-angular-dashboard/",
10+
"deploy": "npx angular-cli-ghpages --dir=dist/dynamic-angular-dashboard --no-silent"
1011
},
1112
"private": true,
1213
"dependencies": {

0 commit comments

Comments
 (0)