Vue3 Vant UI

2020-05-06  本文已影响0人  AndyXuuu

前段架构学习

前端架构

安装NVM并配置

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

vi ~/.zshrc

#NVM环境变量
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

source ~/.zshrc

安装nodejs

nvm install 14.1.0

mvm use 14.1.0

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

安装Vue 3 并创建项目

cnpm install -g @vue/cli

  • Babel
  • Router
  • Vuex
  • Css Pre-processors
  • Unit Testing

安装Vant UI并配置按需加载

npm i babel-plugin-import -D

{
  "plugins": [
    ["import", {
      "libraryName": "vant",
      "libraryDirectory": "es",
      "style": true
    }]
  ]
}

VSCODE 插件

前端优秀框架推荐

https://didi.github.io/cube-ui/#/zh-CN

https://didi.github.io/mand-mobile/#/zh-CN/home

https://github.com/jdf2e/nutui

https://github.com/youzan/vant

上一篇下一篇

猜你喜欢

热点阅读