From 32d42f77bb5103760794994c0481d7d9b632d1d4 Mon Sep 17 00:00:00 2001 From: chufan Date: Thu, 31 Aug 2023 12:00:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Escripts=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/package.json b/package.json index eeb5987..0ed8584 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,27 @@ "image:faster": "bash scripts/build_image.sh $npm_package_version faster", "deploy:ali": "bash scripts/deploy.sh ali $npm_package_version", "deploy:github": "bash scripts/page_deploy.sh", + "version:alpha": "npm version prerelease --preid alpha", + "version:patch": "npm version patch", "lint": "eslint --ext .js,.vue,.ts --ignore-path .gitignore .", "lintfix": "eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore .", "clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' +" }, + "scripts-info": { + "prepare": "安装依赖预执行脚本", + "dev": "本地启动项目", + "build": "构建、打包", + "build:proxy": "构建、打包,支持项目名代理,使用第三方托管平台", + "image": "容器打包、构建镜像", + "image:faster": "本地build后,快速构建镜像", + "deploy:ali": "部署到阿里云服务器", + "deploy:github": "部署到github平台,集成ci", + "version:alpha": "alpha测试版号更新,基于next分之操作", + "version:patch": "稳定版号更新,基于master分支操作", + "lint": "eslint校验代码,指出异常", + "lintfix": "格式化代码,自动化处理异常", + "clean": "快速删除本地依赖" + }, "author": { "name": "Chu Fan", "email": "fairy_408@2925.com",