Skip to content

fe6/component-template

Repository files navigation

组件库模板

Vue.js 组件库模板

Greenkeeper badge Build Status Codecov 单元测试覆盖率

GitHub language count GitHub code size in bytes Fork component-template Star component-template watchers in component-template

Sauce Labs Test Status (for master branch)

特性

  • 提炼自企业级中后台产品的交互语言和视觉风格。
  • 开箱即用的高质量 Vue.js 组件。
  • 全链路开发和设计工具体系。
  • 按需加载系统。

需要的环境

  • node.js >= 9.0.0
  • npm >= 5.0.0

常用命令 ( package.json 的 scripts 中可以找到所有命令)

# 安装依赖( package.json 中的 dependencies 部分 ) dependencies
npm install

# development 环境的本地热加载服务,访问地址: localhost:8080
# 在 config 中修改端口号
npm start

# 利用 jest 单元测试
npm test

# 打包组件库
npm run build

# 打包官网
npm run build:site

# 打包官网,打包并查看捆绑分析器报表
npm run build --report

# JavaScript 的代码规范监测
npm run eslint

# style 的代码规范监测
npm run stylelint

# 进行 style 和 JavaScript 的规范检测
npm run lint-staged

# 上传单元测试覆盖率报告
npm run codecov

说明

本仓库是用脚手架 fecli,结合 component-template 模板生成的。

Releases

No releases published

Packages

No packages published

Languages