Skip to content

Commit

Permalink
chore(projects): add dev and build command with service env
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Feb 3, 2024
1 parent ae6b613 commit ebb1548
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -28,11 +28,14 @@
"UnoCSS"
],
"scripts": {
"build": "run-s typecheck build-only",
"build-only": "vite build",
"build": "cross-env VITE_SERVICE_ENV=prod vite build",
"build:dev": "vite build",
"build:test": "cross-env VITE_SERVICE_ENV=test vite build",
"cleanup": "sa cleanup",
"commit": "sa git-commit",
"dev": "vite",
"dev:prod": "cross-env VITE_SERVICE_ENV=prod vite",
"dev:test": "cross-env VITE_SERVICE_ENV=test vite",
"gen-route": "sa gen-route",
"lint": "eslint . --fix",
"prepare": "simple-git-hooks",
Expand Down

0 comments on commit ebb1548

Please sign in to comment.