Coder Social home page Coder Social logo

machine-room-monitor's Introduction

关于智慧机房监控平台

智慧机房监控平台,介绍欢迎补充

技术栈

  • Vue 3
  • Typescript
  • Vite
  • ant-design-vue
  • lodash-es
  • axios

代码提交规范

为了团队协作,保证代码的一致性,代码提交加入了pre-commit钩子来约束,提交前会检查代码规范性,使用commit-msg来约束提交信息的格式,commit-msg格式:

type(scope?): subject

注意:scope代表影响范围,可以省略,如果有多个范围,可以使用","来分隔

type类型如下:

  • build: 打包代码
  • chore: 构建过程或辅助工具的变动
  • ci: 修改CI配置
  • docs: 文档改变
  • feat: 新功能
  • fix: 修复bug
  • perf: 性能优化
  • refactor: 某个已有功能重构
  • revert: 撤销上一次的 commit
  • style: 代码格式改变
  • test: 测试

提交举例:

chore: run tests on travis ci
feat(blog): add comment section
fix(server,blog): send cors headers

参考:

https://github.com/conventional-changelog/commitlint/#what-is-commitlint

关于LF和CRLF带来的冲突问题

crlf 和 lf 是文本换行的不同方式

crlf: "\r\n", windows 系统的换行方式

lf: "\n", Linux和MAC OS系统的换行方式

在你使用git拉取代码的时候,git会自动将代码当中与你当前系统不同的换行方式转化成你当前系统的换行方式,从而造成这种冲突

为了统一换行格式,基于当前业界标准,以lf为准,所以如果你当前使用的时windows系统,请在拉取项目之前,关闭git的自动转换,执行以下命令:

git config --global core.autocrlf false

使用YARN还是NPM

由于当前yarn的优势对比起npm已经相当微小,而yarn还需要单独安装,为了团队方便和统一,请一致使用npm作为包管理工具

更新依赖

全局安装npm-check

npm install -g npm-check

更新全部依赖

npm-check

手动选择更新

npm-check -u

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.