0.4.4 • Published 4 years ago
@exyz/glib v0.4.4
Gem Lib
一些常用函数,还有一些常用命令行工具
安装
yarn add @exyz/glib
命令行工具
- release: 发布新版本。自动测试,构建,更新版本并推送到 GitHub。
配置文件
在项目中添加配置文件 glib.config.js
即可,具体格式,请参考 UserOption 类型。
示例:
/**
* @type {import('@exyz/glib').UserOption}
*/
const conf = {
release: {
async afterDone(ctx) {
ctx.info('Publishing to npm...')
// Do something
await ctx.run('cmd', ['param'])
}
}
}
module.exports = conf
执行顺序:
- test: 检测并执行 package.json 的 test 命令
- beforeBuild: 检测并执行 配置文件中的 beforeBuild 脚本
- build: 检测并执行 package.json 中的 build 脚本
- afterBuild: 检测并执行 配置文件中的 afterBuild 脚本
- updateVersion: 更新 package.json 中 version 字段
- changelog: 检测并执行 package.json 中的 changelog 脚本
- commit: 提交 commit
- push: 推送到远程 Github
- publishToNpm: 执行
yarn publish --new-version ${version}
,默认跳过这个步骤 - afterDone: 检测并执行 配置文件中的 beforeDone 脚本
0.4.4
4 years ago
0.4.3
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.6
4 years ago
0.3.7
4 years ago
0.3.5
4 years ago
0.3.4
5 years ago
0.3.2
5 years ago
0.3.3
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.1.1
5 years ago