@flatjs/cli-plugin-ci
v2.1.18
Published
The standard CI workflow
Downloads
361
Readme
@flatjs/cli-plugin-ci
The standard CI workflow
Usage Guides
{
"scripts": {
"ci:build": "npx flat ci buildEvolve",
"ci:checkRequirements": "npx flat ci checkRequirements",
"ci:parallel": "npx flat ci parallel",
"ci:publish": "npx flat ci publishCdn -f=\"semic/admin-ui/**/*.{png,jpg,jpeg,gif,svg,js,css}\"",
"ci:publish": "npx flat ci publishFtp -f=\"semic/admin-ui/**/*.{png,jpg,jpeg,gif,svg,js,css}\""
}
}
Note
命令行的参数优先级 低于
配置文件 flatjs-plugin-ci.config.ts
定义的参数
defineConfig({
publishCdn: {
filter: ['**/*.{png,jpg,jpeg,gif,svg}'],
ignore: [],
relative: 'public',
prefix: '',
connection: {
uploadApi: '',
headers: {
apikey: '',
host: '',
},
overrideExistFile: false,
},
},
publishFtp: {
filter: ['**/*.{png,jpg,jpeg,gif,svg}'],
ignore: [],
relative: 'public',
prefix: '',
connection: {
port: 21,
host: '',
user: '',
password: '',
},
},
buildEvolve: {
publishNow: true,
publishFolder: ['shared'],
packNow: true,
// CI 约定配置
timestamp: 'dynamic',
cleanNodeModules: true,
packWithAssets: false,
compress: true,
},
parallel: {
prefix: '',
},
checkRequirements: {
branch: 'origin/master',
output: 'packages/manifest.json',
},
});