Skip to content

Commit 14dc7cb

Browse files
committed
build: add ng deploy
1 parent 662ebfc commit 14dc7cb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

angular.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@
129129
"projects/dev-app/src/**/*.html"
130130
]
131131
}
132+
},
133+
"deploy": {
134+
"builder": "angular-cli-ghpages:deploy",
135+
"options": {
136+
"baseHref": "/code-editor/",
137+
"remote": "origin"
138+
}
132139
}
133140
}
134141
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"postbuild:lib": "cp README.md dist/code-editor",
1919
"publish": "npm run build:lib && cd dist/code-editor && npm publish",
2020
"predeploy": "npm run build",
21-
"deploy": "angular-cli-ghpages --no-silent --dir=dist/dev-app/browser",
21+
"deploy": "ng deploy dev-app",
2222
"prepare": "husky install"
2323
},
2424
"private": true,

0 commit comments

Comments
 (0)