提示
- 依赖于vip-six-ui
import Vue from 'vue';
import VipUI from 'vip-six-ui';
import 'vip-six-ui/lib/theme-chalk/index.css';
Vue.use(VipUI);
import '@badger/signup/lib/index.css';
import { BadgerSignUp } from '@badger/signup';
install
npm i
dev
npm run dev # 打开 http://localhost:9000/
publish
npm run release # 成功后才能提交,存在文件上传失败 git add . && git commit -m 'your message' git push
other
埋点使用 vt-tracker, 请求使用 vt-axios 默认已经引入保重
Commit Message Format
每个提交由 header, body, footer 组成. body, footer 是可选的 header 包含 type, a scope and a subject:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
header 中的 scope 是可选的,通常填写你修改的组件即可.
单行字符不能超过100字符
Samples: (even more samples)
docs(changelog): update changelog to beta.5
fix(release): need to depend on latest rxjs and zone.js
The version in our package.json gets copied to the one we publish, and users need the latest of these.
Type
Must be one of the following:
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- docs: Documentation only changes
- feat: A new feature
- fix: A bug fix
- refactor: A code change that neither fixes a bug nor adds a feature
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- test: Adding missing tests or correcting existing tests
Scope
通常是你的组件名
神策统计相关事件
点击注册按钮 signup 注册成功事件 signup_success
点击google注册 signup_google 注册成功事件 signup_google_success
点击fb注册 signup_fb 注册成功事件 signup_fb_success