1.1.2 • Published 12 months ago

@gsc-basic/commitlint-config v1.1.2

Weekly downloads
-
License
UNLICENSED
Repository
gitlab
Last release
12 months ago

@gsc-basic/commitlint-config

Commitlint Config for GSC Basic Team

DO NOT use it in your own project if you don't know what it's for

说明

Git commit内容检查工具,建议配合 huskysimple-git-hooksGit hooks tool使用。

使用

pnpm i @gsc-basic/commitlint-config husky -D

// commitlint.config.mjs
export { default } from '@gsc-basic/commitlint-config';
// package.json
{
  "scripts": {
    "prepare": "husky"
  }
}

将依赖项提升到根模块目录

# .npmrc
public-hoist-pattern[]=@commitlint/*

添加Hook

husky使用文档参考:https://typicode.github.io/husky/

pnpm exec husky init

# .husky\commit-msg
echo Start running commit-msg hook...

pnpm exec commitlint --edit $1

echo Run commit-msg hook done.
1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.1.2

12 months ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago