package.json modify

This commit is contained in:
Jesse-Ma
2024-03-06 19:08:16 +13:00
parent fbca85de5c
commit 1a14e237ed
3 changed files with 490 additions and 52 deletions

View File

@@ -1,35 +1,6 @@
# view-ui-project-vuecli
This project build for Vue3, Vue-router, Vuex, ViewUIPlus and Vue-cli.
## Install
```shell
npm install
```
## Run
```shell
npm run serve
```
## Build
### Build for Production
```shell
npm run build
```
### Build for Staging
```shell
npm run build:staging
```
## Run Eslint
### Run without Fixing
yarn install
- This operation will also run before git-commit.
```shell
npm run lint
```
### Run with Fixing
```shell
npm run lint:fix
```
## .env Description
yarn build:prod
yarn dev
- This project exposes environment variables on `process.env` object.
- Different modes (development/staging/production) correspond to different environment files (.env.*).
- .env file is always included, duplicate variables are overwritten by the specific mode file (.env.*).