Jeecg-vue-tmpl Readme

Deprecated. 请使用官方最新版本。

JeecgBoot 前端初始项目

项目下载和运行

  • 拉取项目代码

    1
    2
    3
    git clone https://gitlab.com/wuniutech/jeecg-vue-temp.git
    cd jeecg-vue-temp
    git checkout v2.4.0
  • 安装依赖

    1
    yarn run instal
  • 开发模式运行

    1
    yarn serve

    附加选项:

    1
    2
    3
    4
    5
    6
    --open    在服务器启动时打开浏览器
    --copy 在服务器启动时将 URL 复制到剪切版
    --mode 指定环境模式 (默认值:development)
    --host 指定 host (默认值:0.0.0.0)
    --port 指定 port (默认值:8080)
    --https 使用 https (默认值:false)
  • 编译项目

    1
    yarn build

    附加选项:

    1
    2
    3
    4
    5
    6
    7
    --mode        指定环境模式 (默认值:production)
    --dest 指定输出目录 (默认值:dist)
    --modern 面向现代浏览器带自动回退地构建应用
    --no-clean 在构建项目之前不清除目标目录
    --report 生成 report.html 以帮助分析包内容
    --report-json 生成 report.json 以帮助分析包内容
    --watch 监听文件变化
  • 校验并修复文件中的错误

    1
    yarn lint

    附加选项:

    1
    --no-fix      只校验而不修复错误
  • 编译并部署项目到测试服务器 (需 WSL 环境)

    1
    yarn deploy
  • 无 WSL 环境时使用 scp 部署

    1
    yarn build && yarn scp
  • 本地预览打包完的项目

    1
    yarn preview

参考链接


Jeecg-vue-tmpl Readme
https://cocomi.cf/z/posts/59df13e1/
作者
Sakura Yumine
发布于
2021年6月8日
许可协议