Skip to content

Commit

Permalink
feat(cli): add documentation link
Browse files Browse the repository at this point in the history
  • Loading branch information
hyiso committed Jan 20, 2023
1 parent eb39d61 commit 305bb99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/commitlint_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ commitlint cli lint commit messages to satisfy [conventional commit format](http

With [husky](https://pub.dev/packages/husky) (a tool for managing git hooks), commitlint cli can be used as commmit-msg git hook

# Install

# Usage

Add `commitlint_cli` and [husky](https://pub.dev/packages/husky) to your `dev_dependencies` in pubspec.yaml

Expand All @@ -16,7 +17,7 @@ dev_dependencies:
husky: latest
```

# Usage
Get dependencies and install husky

```sh
dart pub get
Expand All @@ -34,7 +35,7 @@ Make a commit:
```sh
git add .
git commit -m "Keep calm and commit"
# `ddart run commitlint_cli --edit "$1"` will run
# `dart run commitlint_cli --edit "$1"` will run
```

# Documentation
Expand Down
1 change: 1 addition & 0 deletions packages/commitlint_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description:
version: 0.2.0
homepage: https://github.com/hyiso/commitlint
repository: https://github.com/hyiso/commitlint/packages/commitlint_cli
documentation: https://hyiso.github.io/commitlint

environment:
sdk: '>=2.12.0 <3.0.0'
Expand Down

0 comments on commit 305bb99

Please sign in to comment.