Skip to content

Commit 3315a4f

Browse files
committed
chore: Add scripts to produce and deploy documentation
1 parent ab2b72f commit 3315a4f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@
2525
},
2626
"scripts": {
2727
"test": "teru test/node.js | faucet && node test/launch.mjs test/iife.html | faucet && node test/launch.mjs test/amd.html | faucet",
28-
"prepare": "esbuild --minify --sourcemap --outfile=asynctaskqueue-min.js asynctaskqueue.js && docco asynctaskqueue.js",
29-
"build": "esbuild --minify --sourcemap --outfile=asynctaskqueue-min.js asynctaskqueue.js",
30-
"doc": "docco asynctaskqueue.js"
28+
"prepare": "esbuild --minify --sourcemap --outfile=asynctaskqueue-min.js asynctaskqueue.js",
29+
"doc": "docco asynctaskqueue.js && mv docs/asynctaskqueue.html docs/index.html",
30+
"web": "npm run web:sync && npm run web:deploy",
31+
"web:clone": "test ! -d ../asynctaskqueue.js-pages && git clone --single-branch --branch gh-pages `git remote get-url origin` ../asynctaskqueue.js-pages",
32+
"web:pull": "cd ../asynctaskqueue.js-pages && git pull",
33+
"web:sync": "cp -r docs/* ../asynctaskqueue.js-pages/",
34+
"web:deploy": "cd ../asynctaskqueue.js-pages && git add . && git commit -m 'Deploy site updates' && git push origin gh-pages"
3135
},
3236
"devDependencies": {
3337
"@prantlf/dom-lite": "^21.3.0",

0 commit comments

Comments
 (0)