代码拉取完成,页面将自动刷新
欢迎使用和Star支持,如使用过程中碰到问题,可以提出 Issues,我会尽力完善
在npm install
后提示用户消息或捐赠. Prompt user message or donate after npm install
.
此插件根据开源插件**opencollective-postinstall**更改调整,加入了一些自定义参数配置.
npm install openteam-postinstall --save
# or
yarn add openteam-postinstall
在
package.json
中添加:
{
"scripts": {
"postinstall": "node -e \"try{require('openteam-postinstall')}catch(e){}\" || exit 0"
}
}
简洁写法
{
"scripts": {
"postinstall": "openteam-postinstall || exit 0"
}
}
// 默认配置
"openteam": {
// 开启调试模式(default: false)
"debug": false,
// GitHub地址
"github": "https://github.com/JoeyBling",
// 打赏配置
"donate": {
// 是否启用(default: true)
"enable": true,
// 打赏链接
"url": "https://zhousiwei.gitee.io/ibooks/about/#%E6%89%93%E8%B5%8F"
},
// 其他自定义配置
"others": {
// 自定义Banner输出(可以使用${param.*}动态变量进行输出,取值为当前`packages.json`文件配置)(关闭请设置为false或置空)
"banner": "\n\u001B[96mAlso, the author of ${name} (\u001B[94m${openteam.github}\u001B[96m) is looking for a good job -)\u001B[0m\n"
}
}
In some places (e.g. CI) you may want to disable this output. You can do this by setting the environment variable DISABLE_OPENCOLLECTIVE=true
.
It will not be shown if npm's log level is set to silent (--silent
), warn (--quiet
), or error (--loglevel error
).
如果感觉对您有帮助,请作者喝杯咖啡吧,请注明您的名字或者昵称,方便作者感谢o( ̄︶ ̄)o
微信 | 支付宝 |
---|---|
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。