Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 890 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 890 Bytes

前端文档

安装 npm

参考官网说明,执行下面的命令就可以完成安装:

# layouts.download.codeBox.installsFnm
curl -fsSL https://fnm.vercel.app/install | bash

# layouts.download.codeBox.activateFNM
source ~/.bashrc

# layouts.download.codeBox.downloadAndInstallNodejs
fnm use --install-if-missing 20

# layouts.download.codeBox.verifiesRightNodejsVersion
node -v # layouts.download.codeBox.shouldPrint

# layouts.download.codeBox.verifiesRightNpmVersion
npm -v # layouts.download.codeBox.shouldPrint

启动项目

  1. 进入前端项目:
cd frontend
  1. 安装依赖库
npm install
  1. 开发环境启动

Compile and Hot-Reload for Development

npm run dev
  1. 生产环境打包

Type-Check, Compile and Minify for Production

npm run build