1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-05 19:47:40 +08:00
Files
408CSFamily/scripts/lint
2023-09-05 19:42:45 +08:00

27 lines
824 B
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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)
})()