8000 chore: add gh-pages update script · SortableJS/ngx-sortablejs@337eb0d · GitHub
[go: up one dir, main page]

Skip to content

Commit 337eb0d

Browse files
committed
chore: add gh-pages update script
1 parent 3fe8ea4 commit 337eb0d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build:app": "ng build --prod",
7+
"build:app": "ng build --prod --baseHref /ngx-sortablejs/",
88
"build:lib": "ng build ngx-sortablejs",
99
"test:app": "ng test ngx-sortablejs-app",
1010
"test:app:ci": "ng test ngx-sortablejs-app --watch=false --progress=false --browsers=ChromeHeadlessCI",
@@ -13,9 +13,10 @@
1313
"coveralls": "cat ./coverage/lcov.info | coveralls",
1414
"lint": "ng lint",
1515
"e2e": "ng e2e",
16+
"gh-pages": "git reset && rm -rf docs && cp -R dist/ngx-sortablejs-app docs && cp docs/index.html docs/404.html && git add docs",
17+
"gh-pages:apply": "npm run gh-pages && git commit -m 'docs: update github pages' && git push",
1618
"validate-release": "npm run lint && npm run test:app:ci && npm run test:lib:ci",
17-
"prepare-release": "npm run build:lib && cp README.md dist/ngx-sortablejs && cp LICENSE.md dist/ngx-sortablejs && npm run build:app && cp dist/ngx-sortablejs-app/index.html dist/ngx-sortablejs-app/404.html",
18-
"pages:update": "cd dist/ngx-sortablejs-app && git add -A && git commit -m 'update pages' && git push origin gh-pages",
19+
"prepare-release": "npm run build:lib && cp README.md dist/ngx-sortablejs && cp LICENSE.md dist/ngx-sortablejs && npm run build:app",
1920
"release": "npm run validate-release && npm run prepare-release && semantic-release -d",
2021
"release:apply": "npm run validate-release && npm run prepare-release && semantic-release --ci false"
2122
},

0 commit comments

Comments
 (0)
0