From 999127a00972b53001dbcced55011aed78643e96 Mon Sep 17 00:00:00 2001 From: cshaptx4869 <994774638@qq.com> Date: Sat, 11 May 2024 11:28:11 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20:ferris=5Fwheel:=20=E8=A7=84=E6=95=B4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 --- .env.production | 3 --- package.json | 11 +++++++---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.env.development b/.env.development index c4e44761..548fc857 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,3 @@ -## 开发环境 -NODE_ENV='development' - # 应用端口 VITE_APP_PORT = 3000 diff --git a/.env.production b/.env.production index a2d828cb..74d45c16 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,3 @@ -## 生产环境 -NODE_ENV='production' - # 代理前缀 VITE_APP_BASE_API = '/prod-api' diff --git a/package.json b/package.json index 0476e415..3d878119 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,17 @@ "private": true, "type": "module", "scripts": { - "preinstall": "npx only-allow pnpm", - "dev": "vite serve --mode development", - "build:prod": "vite build --mode production && vue-tsc --noEmit", - "prepare": "husky", + "dev": "vite", + "build": "vue-tsc --noEmit & vite build", + "preview": "vite preview", + "build-only": "vite build", + "type-check": "vue-tsc --noEmit", "lint:eslint": "eslint --fix --ext .ts,.js,.vue ./src ", "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix", "lint:lint-staged": "lint-staged", + "preinstall": "npx only-allow pnpm", + "prepare": "husky", "commit": "git-cz" }, "config": {