yarn运行antD-pro-vue

如何快速上手一个前端框架,那就是下个开源后台软件写个curd,先作再想更容易上手前端

克隆项目到本地:

$ git clone https://github.com/iczer/vue-antd-admin.gitvue

我这没装yarn,因此先下载。先用了node

brew install yarn
#报错,就用另外一个node的编译工具来下
npm install yarn -g

安装依赖:git

$ yarn installgithub

启动shell

$ yarn startnpm

以开发者身份运行json

$yarn run serve 前端框架

输入网址就出来了。 antd

扩展yarn

  1. yarn是一个相似npm的一个包管理器,也是经过package.json配置文件进行管理
#json配置
{
  "name": "my-new-project",
  "version": "1.0.0",
  "description": "My New Project description.",
  "main": "index.js",
  "repository": {
    "url": "https://example.com/your-username/my-new-project",
    "type": "git"
  },
  "author": "Your Name <you@example.com>",
  "license": "MIT"
}
  1. 常见命令
#初始化项目
yarn init
#安装项目的所有依赖
yarn install
  1. 关于ant-design-vue的组建和ui的使用方式能够看官网 https://vuecomponent.github.io/ant-design-vue/docs/vue/getting-started-cn/

  2. 怎样使用antDpro快速curd

相关文章
相关标签/搜索