vue Cli 2.0 脚手架的使用配置

2020-10-13  本文已影响0人  黑白说程序

vue init webpack my-project 创建项目

project name 输入项目名字,一般项目文件夹的名字和项目名字一样

project description 项目描述 

author 作者一般默认读取gitconfig的内容

vue build ①runtime + compiler  解析方式:template-ast-reden-vdom-真实dom

②runtime-only 打包内容小运行快   解析方式:reder-vdom-真实dom

install vue-router 输入y

user eslint to lint your code  eslint对js进行规范限制

pick aneslint preset 选择eslint规范

①standard  ②airbnb  ③none

set up unit tests  进行单元测试 大多数公司不做测试 选择n

setup e2e tests with nightwatch 安装端到端测试,选择n

should we run npm install for you after the project has been created 选择管理命令

①npm  ②yarn

上一篇 下一篇

猜你喜欢

热点阅读