Skip to content

Commit

Permalink
chore: 增加npm-run-all2来拆解npm脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
MuYi086 committed Jul 5, 2024
1 parent ac10e3b commit fb7bf12
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 268 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ strict-peer-dependencies=false
auto-install-peers=true
shamefully-hoist=true
# mirror config
# registry = https://registry.npmmirror.com/
registry = https://registry.npmmirror.com/
disturl = https://npmmirror.com/dist
sharp_binary_host = https://npmmirror.com/mirrors/sharp
sharp_libvips_binary_host = https://npmmirror.com/mirrors/sharp-libvips
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"license": "MIT",
"scripts": {
"dev": "vitepress dev Docs",
"build": "vitepress build Docs && npm run compress:gz",
"build": "run-s buildStart compress:gz",
"buildStart": "vitepress build Docs",
"serve": "vitepress serve Docs",
"compress:gz": "bash ./compress_gz.sh"
},
Expand All @@ -20,6 +21,7 @@
"doc": "Docs"
},
"devDependencies": {
"npm-run-all2": "^6.2.2",
"pagefind": "^1.1.0",
"sass": "^1.76.0",
"typescript": "^5.4.5",
Expand Down
Loading

0 comments on commit fb7bf12

Please sign in to comment.