|
|
@ -1,35 +1,3 @@ |
|
|
|
## Getting started |
|
|
|
```bash |
|
|
|
# clone the project |
|
|
|
git clone http://dev.cd-top.com:51180/WMS2Frontend/WmsAdminWeb.git |
|
|
|
# enter the project directory |
|
|
|
cd vue-element-admin |
|
|
|
# install dependency |
|
|
|
npm install |
|
|
|
# develop |
|
|
|
npm run dev |
|
|
|
``` |
|
|
|
This will automatically open http://localhost:9527 |
|
|
|
|
|
|
|
## Build |
|
|
|
```bash |
|
|
|
# build for test environment |
|
|
|
npm run build:stage |
|
|
|
# build for production environment |
|
|
|
npm run build:prod |
|
|
|
``` |
|
|
|
## Advanced |
|
|
|
```bash |
|
|
|
# preview the release environment effect |
|
|
|
npm run preview |
|
|
|
# preview the release environment effect + static resource analysis |
|
|
|
npm run preview -- --report |
|
|
|
# code format check |
|
|
|
npm run lint |
|
|
|
# code format check and auto fix |
|
|
|
npm run lint -- --fix |
|
|
|
``` |
|
|
|
Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information |
|
|
|
|
|
|
|
## websocket: |
|
|
|
|
|
|
|