文档系统的后台管理前端项目

2017-11-13  本文已影响33人  Gopal

项目结构

项目结构

构建

安装依赖
npm install

开启热加载服务器: localhost:8080
npm run dev

生产环境打包
npm run build

生产环境打包并生成bundle分析报告
npm run build --report

执行单元测试
npm run unit

执行端到端测试
npm run e2e

执行所有测试
npm test

编码规范

// bad
<input :class="class" :style="style" :type="type" @click="onClick">按钮</input>

// good
<input
  :class="class"
  :style="style"
  :type="type"
  @click="onClick">按钮</input>
// bad
<button
  class="class"
  :type="type"
  style="style"
  @click="onClick">按钮</button>

// good
<button
  class="class"
  style="style"
  :type="type"
  @click="onClick">按钮</button>

Git规范

// example
git add package.json .gitingore

git commit -m "更新package和gitingore文件."

这里是分割线


上一篇 下一篇

猜你喜欢

热点阅读