脚本
# package.json
脚本添加命令
参考链接 Pass command line args to npm scripts in package.json (opens new window)
# 提交代码为例
"push": "func() { git add . && git commit -m \"$1\" && git push; }; func",
使用
npm run push "消息"
上次更新: 2025/03/22, 03:52:10