Skip to content

Commit

Permalink
Set up 'vercel dev', configure redirects, better docs:watch mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Don McCurdy committed May 14, 2021
1 parent 6449fde commit 145f358
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
"preversion": "yarn run test",
"version": "lerna run dist --parallel && gltf-transform -h > docs/CLI_HELP.md && git add -u docs",
"postpublish": "git push && git push --tags && yarn run docs:deploy",
"docs": "typedoc packages/core/src/core.ts docs/pages.ts --out docs/dist/ --name glTF-Transform --excludeNotDocumented --theme docs/theme --media docs/media --readme docs/INDEX.md --includes docs",
"docs:experimental": "typedoc packages/core/src/core.ts packages/extensions/src/extensions.ts packages/lib/src/index.ts docs/pages.ts --out docs/dist/ --name glTF-Transform --excludeNotDocumented --theme docs/theme --media docs/media --readme docs/INDEX.md --includes docs",
"docs:watch": "yarn docs --watch",
"docs": "typedoc packages/core/src/core.ts packages/extensions/src/extensions.ts packages/lib/src/index.ts docs/pages.ts --out docs/dist/ --name glTF-Transform --excludeNotDocumented --theme docs/theme --media docs/media --readme docs/INDEX.md --includes docs",
"docs:watch": "concurrently \"yarn docs --watch\" \"vercel dev\"",
"docs:deploy": "yarn docs && vercel --prod"
},
"devDependencies": {
Expand All @@ -36,6 +35,7 @@
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"canvas": "^2.7.0",
"concurrently": "^6.0.2",
"coveralls": "^3.1.0",
"draco3dgltf": "^1.4.1",
"eslint": "^7.25.0",
Expand Down
14 changes: 6 additions & 8 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"public": "docs/dist/",
"redirects": [
{
"source": "/classes/accessor",
"destination": "/classes/core.accessor"
},
{
"source": "/:group/:type(\\w+)",
"destination": "/:group/core.:type"
"source": "/:group/:type(\\w+){.html}?",
"destination": "/:group/core.:type.html"
}
],
"rewrites": [
{ "source": "/:page(concepts|contributing|library|extensions|cli)", "destination": "/modules/pages.:page.html" }
{
"source": "/:page(concepts|contributing|library|extensions|cli){.html}?",
"destination": "/modules/pages.:page.html"
}
]
}
39 changes: 38 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2930,6 +2930,21 @@ concat-with-sourcemaps@^1.1.0:
dependencies:
source-map "^0.6.1"

concurrently@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-6.0.2.tgz#4ecdfc78a72a6f626a3a5d3c2a7a81962f3663e3"
integrity sha512-u+1Q0dJG5BidgUTpz9CU16yoHTt/oApFDQ3mbvHwSDgMjU7aGqy0q8ZQyaZyaNxdwRKTD872Ux3Twc6//sWA+Q==
dependencies:
chalk "^4.1.0"
date-fns "^2.16.1"
lodash "^4.17.21"
read-pkg "^5.2.0"
rxjs "^6.6.3"
spawn-command "^0.0.2-1"
supports-color "^8.1.0"
tree-kill "^1.2.2"
yargs "^16.2.0"

config-chain@^1.1.12:
version "1.1.12"
resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa"
Expand Down Expand Up @@ -3266,6 +3281,11 @@ data-uri-to-buffer@0.0.3:
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-0.0.3.tgz#18ae979a6a0ca994b0625853916d2662bbae0b1a"
integrity sha1-GK6XmmoMqZSwYlhTkW0mYruuCxo=

date-fns@^2.16.1:
version "2.21.1"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.21.1.tgz#679a4ccaa584c0706ea70b3fa92262ac3009d2b0"
integrity sha512-m1WR0xGiC6j6jNFAyW4Nvh4WxAi4JF4w9jRJwSI8nBmNcyZXPcP9VUQG+6gHQXAmqaGEKDKhOqAtENDC941UkA==

dateformat@^3.0.0:
version "3.0.3"
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
Expand Down Expand Up @@ -7826,7 +7846,7 @@ rxjs@^6.4.0:
dependencies:
tslib "^1.9.0"

rxjs@^6.6.0:
rxjs@^6.6.0, rxjs@^6.6.3:
version "6.6.7"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9"
integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==
Expand Down Expand Up @@ -8089,6 +8109,11 @@ sourcemap-codec@^1.4.4:
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==

spawn-command@^0.0.2-1:
version "0.0.2-1"
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"
integrity sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=

spawn-wrap@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e"
Expand Down Expand Up @@ -8432,6 +8457,13 @@ supports-color@^7.0.0, supports-color@^7.1.0:
dependencies:
has-flag "^4.0.0"

supports-color@^8.1.0:
version "8.1.1"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
dependencies:
has-flag "^4.0.0"

svgo@^1.0.0:
version "1.3.2"
resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167"
Expand Down Expand Up @@ -8707,6 +8739,11 @@ tr46@^2.0.2:
dependencies:
punycode "^2.1.1"

tree-kill@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"
integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==

trim-newlines@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"
Expand Down

0 comments on commit 145f358

Please sign in to comment.