在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:observing/pre-commit开源软件地址:https://github.com/observing/pre-commit开源编程语言:JavaScript 93.7%开源软件介绍:pre-commitpre-commit is a pre-commit hook installer for But don't worry, you can still force a commit by telling InstallationIt's advised to install the pre-commit module as a
To install it as Configuration
But
The only thing you need to do is add a {
"name": "437464d0899504fb6b7b",
"version": "0.0.0",
"description": "ERROR: No README.md file found!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: I SHOULD FAIL LOLOLOLOLOL \" && exit 1",
"foo": "echo \"fooo\" && exit 0",
"bar": "echo \"bar\" && exit 0"
},
"pre-commit": [
"foo",
"bar",
"test"
]
} In the example above, it will first run: {
"precommit": "foo, bar, test"
"pre-commit": "foo, bar, test"
"pre-commit": ["foo", "bar", "test"]
"precommit": ["foo", "bar", "test"],
"precommit": {
"run": "foo, bar, test",
},
"pre-commit": {
"run": ["foo", "bar", "test"],
},
"precommit": {
"run": ["foo", "bar", "test"],
},
"pre-commit": {
"run": "foo, bar, test",
}
} The examples above are all the same. In addition to configuring which scripts should be ran you can also configure the following options:
These options can either be added in the {
"precommit.silent": true,
"pre-commit": {
"silent": true
}
} It's all the same. Different styles so use what matches your project. To learn
more about the scripts, please read the official https://docs.npmjs.com/misc/scripts And to learn more about git hooks read: LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论