Skip to content

Commit 0e24a2d

Browse files
authored
Merge pull request #501 from antfu/chore/site
Better ide/site build
2 parents b9ae124 + 78e9533 commit 0e24a2d

33 files changed

+506
-74776
lines changed

documentation/Standard-Lib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Add comments in the stdlib files (one line above the function/value), the format
141141

142142
After you fill the comments, you need to update the document by running
143143
```bash
144-
npm run docs:update
144+
npm run build:docs
145145
```
146146

147147
Check the output document out and submit a pull request. Thank you!

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@
2020
"scripts": {
2121
"build": "npm run clear && webpack --mode production",
2222
"build:dev": "npm run clear && webpack --mode development",
23+
"build:site": "webpack --mode development --config webpack.site.config.js",
24+
"build:docs": "node ./tools/make_examples_readme.js && node ./tools/make_stdlib_cheatsheet.js",
25+
"dev:site": "webpack --mode development --config webpack.site.config.js --watch",
2326
"dev": "npm run clear && webpack --mode development --watch",
2427
"clear": "rimraf ./dist",
2528
"publish": "bump --commit && node ./tools/publish.js",
2629
"publish:ci": "node ./tools/publish.js",
2730
"release": "bump --commit --tag && git push --follow-tags",
28-
"docs:update": "node ./tools/stdlib_doc.js",
29-
"make_examples_readme": "node ./tools/make_examples_readme.js",
30-
"make_ide": "node ./tools/make_ide.js",
31-
"make_site": "node ./tools/make_site.js",
32-
"ide:dev": "nodemon --ignore build,dist ./tools/make_ide.js",
33-
"site:dev": "nodemon --ignore build,dist ./tools/make_site.js",
3431
"test": "mocha --require mocha-snapshots",
3532
"test:update": "mocha --require mocha-snapshots --update",
3633
"lint:fix": "npm run lint -- --fix",

0 commit comments

Comments
 (0)