-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(website): add deploy script for GitHub Pages (#559)
* chore(website): add gh-pages deploy script * chore(website): add CNAME * fix: keep both netlify and gh-pages Co-authored-by: Eunjae Lee <[email protected]>
- Loading branch information
1 parent
d27ad15
commit acfc956
Showing
3 changed files
with
128 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{ | ||
"name": "website", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "vuepress dev", | ||
"build": "vuepress build", | ||
"deploy:gh": "node scripts/deploy-gh.js", | ||
"dev": "vuepress dev", | ||
"test": "echo \"Error: no test specified\"" | ||
}, | ||
"author": "Eunjae Lee <[email protected]> (https://github.com/eunjae-lee)", | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@vuepress/plugin-google-analytics": "1.2.0", | ||
"gh-pages": "^2.1.1", | ||
"vuepress": "1.2.0" | ||
} | ||
}, | ||
"main": "index.js", | ||
"author": "Eunjae Lee <[email protected]> (https://github.com/eunjae-lee)", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
const util = require('util'); | ||
const exec = util.promisify(require('child_process').exec); | ||
|
||
(async function() { | ||
const configPath = path.resolve(__dirname, '..', '.vuepress', 'config.js'); | ||
const originalConfig = fs.readFileSync(configPath).toString(); | ||
const configWithBase = originalConfig.replace( | ||
'module.exports = {', | ||
`module.exports = {\n base: "/shipjs/",` | ||
); | ||
fs.writeFileSync(configPath, configWithBase); | ||
await exec('vuepress build'); | ||
await exec('gh-pages -d .vuepress/dist'); | ||
|
||
fs.writeFileSync(configPath, originalConfig); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2858,7 +2858,7 @@ async-limiter@~1.0.0: | |
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" | ||
integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== | ||
|
||
async@^2.6.2: | ||
async@^2.6.1, async@^2.6.2: | ||
version "2.6.3" | ||
resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" | ||
integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== | ||
|
@@ -3744,7 +3744,7 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" | ||
integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg== | ||
|
||
commander@^2.20.0, commander@~2.20.3: | ||
commander@^2.18.0, commander@^2.20.0, commander@~2.20.3: | ||
version "2.20.3" | ||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" | ||
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== | ||
|
@@ -4872,6 +4872,11 @@ elliptic@^6.0.0: | |
minimalistic-assert "^1.0.0" | ||
minimalistic-crypto-utils "^1.0.0" | ||
|
||
email-addresses@^3.0.1: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/email-addresses/-/email-addresses-3.1.0.tgz#cabf7e085cbdb63008a70319a74e6136188812fb" | ||
integrity sha512-k0/r7GrWVL32kZlGwfPNgB2Y/mMXVTq/decgLczm/j34whdaspNrZO8CnXPf1laaHxI6ptUlsnAxN+UAPw+fzg== | ||
|
||
emoji-regex@^7.0.1: | ||
version "7.0.3" | ||
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" | ||
|
@@ -5511,6 +5516,28 @@ file-loader@^3.0.1: | |
loader-utils "^1.0.2" | ||
schema-utils "^1.0.0" | ||
|
||
filename-reserved-regex@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz#e61cf805f0de1c984567d0386dc5df50ee5af7e4" | ||
integrity sha1-5hz4BfDeHJhFZ9A4bcXfUO5a9+Q= | ||
|
||
filenamify-url@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/filenamify-url/-/filenamify-url-1.0.0.tgz#b32bd81319ef5863b73078bed50f46a4f7975f50" | ||
integrity sha1-syvYExnvWGO3MHi+1Q9GpPeXX1A= | ||
dependencies: | ||
filenamify "^1.0.0" | ||
humanize-url "^1.0.0" | ||
|
||
filenamify@^1.0.0: | ||
version "1.2.1" | ||
resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-1.2.1.tgz#a9f2ffd11c503bed300015029272378f1f1365a5" | ||
integrity sha1-qfL/0RxQO+0wABUCknI3jx8TZaU= | ||
dependencies: | ||
filename-reserved-regex "^1.0.0" | ||
strip-outer "^1.0.0" | ||
trim-repeated "^1.0.0" | ||
|
||
fill-range@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" | ||
|
@@ -5673,7 +5700,7 @@ from2@^2.1.0: | |
inherits "^2.0.1" | ||
readable-stream "^2.0.0" | ||
|
||
fs-extra@^7.0.1: | ||
fs-extra@^7.0.0, fs-extra@^7.0.1: | ||
version "7.0.1" | ||
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" | ||
integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== | ||
|
@@ -5805,6 +5832,20 @@ getpass@^0.1.1: | |
dependencies: | ||
assert-plus "^1.0.0" | ||
|
||
gh-pages@^2.1.1: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-2.1.1.tgz#5be70a92f9cb70404bafabd8bb149c0e9a8c264b" | ||
integrity sha512-yNW2SFp9xGRP/8Sk2WXuLI/Gn92oOL4HBgudn6PsqAnuWT90Y1tozJoTfX1WdrDSW5Rb90kLVOf5mm9KJ/2fDw== | ||
dependencies: | ||
async "^2.6.1" | ||
commander "^2.18.0" | ||
email-addresses "^3.0.1" | ||
filenamify-url "^1.0.0" | ||
fs-extra "^7.0.0" | ||
globby "^6.1.0" | ||
graceful-fs "^4.1.11" | ||
rimraf "^2.6.2" | ||
|
||
[email protected]: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.0.tgz#d92addf74440c14bcc5c83ecce3fb7f8a79118b5" | ||
|
@@ -6317,6 +6358,14 @@ humanize-ms@^1.2.1: | |
dependencies: | ||
ms "^2.0.0" | ||
|
||
humanize-url@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/humanize-url/-/humanize-url-1.0.1.tgz#f4ab99e0d288174ca4e1e50407c55fbae464efff" | ||
integrity sha1-9KuZ4NKIF0yk4eUEB8VfuuRk7/8= | ||
dependencies: | ||
normalize-url "^1.0.0" | ||
strip-url-auth "^1.0.0" | ||
|
||
[email protected], iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13: | ||
version "0.4.24" | ||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" | ||
|
@@ -8568,6 +8617,16 @@ normalize-range@^0.1.2: | |
resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" | ||
integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI= | ||
|
||
normalize-url@^1.0.0: | ||
version "1.9.1" | ||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c" | ||
integrity sha1-LMDWazHqIwNkWENuNiDYWVTGbDw= | ||
dependencies: | ||
object-assign "^4.0.1" | ||
prepend-http "^1.0.0" | ||
query-string "^4.1.0" | ||
sort-keys "^1.0.0" | ||
|
||
normalize-url@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-2.0.1.tgz#835a9da1551fa26f70e92329069a23aa6574d7e6" | ||
|
@@ -9653,6 +9712,11 @@ prelude-ls@~1.1.2: | |
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" | ||
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= | ||
|
||
prepend-http@^1.0.0: | ||
version "1.0.4" | ||
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" | ||
integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= | ||
|
||
prepend-http@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" | ||
|
@@ -9855,6 +9919,14 @@ qs@~6.5.2: | |
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" | ||
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== | ||
|
||
query-string@^4.1.0: | ||
version "4.3.4" | ||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" | ||
integrity sha1-u7aTucqRXCMlFbIosaArYJBD2+s= | ||
dependencies: | ||
object-assign "^4.1.0" | ||
strict-uri-encode "^1.0.0" | ||
|
||
query-string@^5.0.1: | ||
version "5.1.1" | ||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-5.1.1.tgz#a78c012b71c17e05f2e3fa2319dd330682efb3cb" | ||
|
@@ -10808,6 +10880,13 @@ socks@~2.3.2: | |
ip "1.1.5" | ||
smart-buffer "^4.1.0" | ||
|
||
sort-keys@^1.0.0: | ||
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" | ||
integrity sha1-RBttTTRnmPG05J6JIK37oOVD+a0= | ||
dependencies: | ||
is-plain-obj "^1.0.0" | ||
|
||
sort-keys@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" | ||
|
@@ -11191,6 +11270,18 @@ strip-json-comments@~2.0.1: | |
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" | ||
integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= | ||
|
||
strip-outer@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631" | ||
integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== | ||
dependencies: | ||
escape-string-regexp "^1.0.2" | ||
|
||
strip-url-auth@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/strip-url-auth/-/strip-url-auth-1.0.1.tgz#22b0fa3a41385b33be3f331551bbb837fa0cd7ae" | ||
integrity sha1-IrD6OkE4WzO+PzMVUbu4N/oM164= | ||
|
||
strong-log-transformer@^2.0.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz#0f5ed78d325e0421ac6f90f7f10e691d6ae3ae10" | ||
|
@@ -11573,6 +11664,13 @@ trim-off-newlines@^1.0.0: | |
resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" | ||
integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= | ||
|
||
trim-repeated@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" | ||
integrity sha1-42RqLqTokTEr9+rObPsFOAvAHCE= | ||
dependencies: | ||
escape-string-regexp "^1.0.2" | ||
|
||
tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: | ||
version "1.10.0" | ||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" | ||
|