Skip to content

HongYangHT/movee-log

Repository files navigation

movee-log

利用阿里云web-track记录前端日志,并支持微信小程序和web应用

npm npm npm GitHub stars GitHub forks

使用方法

查看使用方法

PR && Commit (提交代码)

  • 使用 commitizen 来格式化 Git commit message

    • 安装 commitizen

    npm install -g commitizen

    • 使用 angular 的 commit 规范 commitizen init cz-conventional-changelog --save-dev --save-exact
    • 重新安装 husky 与 lint-staged

    npm i -D husky
    npm i -D lint-staged

    • 使用 git cz 代替 commit
  • 提交规则

    • feat: 新功能
    • fix: 修复bug
    • docs: 文档更新
    • style: 格式更新(不影响代码运行的变动)
    • refactor: 重构(既不是新增功能,又不是bug修复)
    • test: 添加测试
    • chore: 构建过程或辅助工具的变动
  • git 提交

    • git commitgit cz 代替

更新日志

查看更新日志

  • 生成更新日志

npm install -g conventional-changelog-cli

  • 发布新版本推荐工作流
    1. 执行eslint格式化代码 (npm run eslint)
    2. 提交修改的commit (git add . / git cz)
    3. 修改版本号 (npm run changeVersion)
    4. 执行build (npm run build)
    5. 自动生成change log (npm run changelog)
    6. 重新添加package.json 和 CHANGELOG.md (git add . / git cz)
    7. 打tag (git add -a tag -m 'xx')
    8. push (git push origin tag)
    9. 发布到npm

About

前端日志收集

Resources

Stars

Watchers

Forks

Packages

No packages published