创建vue项目步骤
<1>
vue create 项目名
(enter键确认,并进入下一步)
<2>出现底下两项
default (babel, eslint)(默认初始化一个项目的最小配置,)
Manually select features(手动选择项目特性)
<3>选择manually select (enter键确认,并进入下一步)
Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection)
[为你的项目选择需要的特性,按下空格去选择单项,按下a去选择全部,i反选]
❯◉ Babel [在项目中把es6转化成所有浏览器能识别的es5代码]
◯ TypeScript [micrsoft出的一个js库,能做类型校验]
◯ Progressive Web App (PWA) Support[把网页做的更像原生app]
◯ Router [vue路由插件]
◯ Vuex [vue状态管理,vue的数据库]
◯ CSS Pre-processors [css预处理器]
◉ Linter / Formatter [js代码校验/格式化]
◯ Unit Testing [单元测试,提前找出bug]
◯ E2E Testing [end to end test 端对端测试,测试全流程]
<4>
选择
bebel\router\vuex\CSS Pre-processors\Linter / Formatter
enter键确认,并进入下一步
Use history mode for router? (Requires proper server setup for index fallback in prod