mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-05 19:47:40 +08:00
27 lines
824 B
JavaScript
Executable File
27 lines
824 B
JavaScript
Executable File
#!/usr/bin/env node
|
||
/**
|
||
*
|
||
* 将应用程序打包成可部署的包、文件、镜像
|
||
* 例如:
|
||
* - ./scripts/bundle build 基础部署打包
|
||
* - ./scripts/bundle build_proxy 用于三方平台部署打包
|
||
* - ./scripts/bundle image 构建容器镜像
|
||
* - ./scripts/bundle image_faster 本地build,快速构建容器镜像
|
||
* - ./scripts/bundle xxx 其他参数,默认执行build命令
|
||
* - ./scripts/bundle 交互式选择执行的命令
|
||
*/
|
||
|
||
const { execShell } = require("./.exec");
|
||
const scriptName=process.argv[2];
|
||
|
||
let fixed=''
|
||
|
||
if(scriptName!=null){
|
||
fixed='--fix'
|
||
}
|
||
|
||
;(async ()=>{
|
||
const scriptCommand= `eslint ${fixed} --ext .js,.ts,.vue --ignore-path .gitignore .`
|
||
// 执行
|
||
await execShell(scriptCommand)
|
||
})() |