Skip to content

Commit 0dd6362

Browse files
committed
Tentative script to deploy VuePress build on GitHub pages
1 parent ece1367 commit 0dd6362

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
"doc": "docs"
88
},
99
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1"
10+
"test": "echo \"Error: no test specified\" && exit 1",
11+
"clean": "npx rimraf pages/.vuepress/dist/*",
12+
"build-prod": "npx run-s clean build-prod-vuepress",
13+
"build-prod-vuepress": "npx vuepress build pages/",
14+
"build-copy-index": "npx copyfiles index.html pages/.vuepress/dist/",
15+
"deploy": "npx run-s build-prod deploy-gh-pages",
16+
"deploy-gh-pages": "npx gh-pages -d pages/.vuepress/dist -b master"
1117
},
1218
"repository": {
1319
"type": "git",
@@ -21,5 +27,11 @@
2127
"homepage": "https://github.com/CoderBotOrg/docs#readme",
2228
"dependencies": {
2329
"vuepress": "^1.0.0-alpha.32"
30+
},
31+
"devDependencies": {
32+
"copyfiles": "^2.1.0",
33+
"npm-run-all": "^4.1.5",
34+
"rimraf": "^2.5.4",
35+
"webpack": "^4.29.0"
2436
}
2537
}

0 commit comments

Comments
 (0)