Skip to content

Commit b706777

Browse files
committed
fix(scripts): Clean up release targets
1 parent 7ee98f3 commit b706777

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
"test": "ng test",
88
"core:build": "ng build @ngqp/core",
99
"core:build:prod": "yarn core:build",
10+
"core:release:prepare": "scripts/prepare-release.sh",
11+
"core:release:publish": "yarn core:release:prepare && cd dist/ngqp/core && npm publish --access public",
1012
"demo:build": "ng build ngqp-demo",
1113
"demo:build:prod": "yarn demo:build --prod",
12-
"demo:publish": "yarn core:build && yarn demo:build:prod --base-href=\"https://Airblader.github.io/ngqp/\" && npx ngh --dir=dist/ngqp-demo",
14+
"demo:release:prepare": "yarn core:build && yarn demo:build:prod --base-href=\"https://Airblader.github.io/ngqp/\"",
15+
"demo:release:publish": "yarn demo:release:prepare && npx ngh --dir=dist/ngqp-demo",
1316
"demo:serve": "ng serve ngqp-demo",
1417
"schematics:build": "scripts/build-schematics.sh",
15-
"release": "scripts/release.sh"
18+
"release": "yarn core:release:publish && yarn demo:release:publish"
1619
},
1720
"private": true,
1821
"dependencies": {
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,4 @@ cp README.md dist/ngqp/core
2424
cp LICENSE dist/ngqp/core
2525

2626
echo "[7] Pushing to remote"
27-
git push
28-
29-
echo "[8] Publishing to npm"
30-
cd dist/ngqp/core; npm publish --access public; cd -
31-
32-
echo "[9] Deploying website"
33-
yarn run demo:publish
27+
git push

0 commit comments

Comments
 (0)