【发布时间】:2017-11-11 14:07:35
【问题描述】:
在我的package.json 我有这个
"scripts": {
"start": "gulp serve",
"git": "git add . && git commit -m 'some-message' && git push --all"
},
在终端中我运行npm run git 并推送更改。但是我怎样才能即时更改提交消息呢?例如npm run git MESSAGE='another commit'
【问题讨论】:
-
需要修改package.json中的命令为git commit -m 'some message'。
标签: node.js git npm npm-scripts