cider
pubspec.yaml에 있는 패키지 버전을 자동으로 증가, 설정, 출력합니다. 변경 사항 기록에 항목을 추가, 목록화, 출력합니다. 변경 사항 기록에 차이 링크를 생성합니다.
Dart 패키지 유지보수자를 위한 도구
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Cider is a CLI tool for Dart package maintenance. It updates CHANGELOG.md and pubspec.yaml to help automate releases.
Cider expects:
CHANGELOG.md file in the project rootdart pub global activate cider
Configure Cider in pubspec.yaml under cider:
cider:
link_template:
tag: https://github.com/example/project/releases/tag/%tag%
diff: https://github.com/example/project/compare/%from%...%to%
version: v%version% # default: %version%
Placeholders:
%from% - previous version tag%to% - current version tag%tag% - release tagYou can run Cider from any subdirectory. It searches upward for pubspec.yaml.
To override auto-detection:
cider --project-root=/path/to/project version
These commands modify CHANGELOG.md unless stated otherwise.
cider log <type> <description>
<type>: added, changed, deprecated, removed, fixed, security<description>: one Markdown lineExamples:
cider log changed 'Improve parser performance'
cider log added 'Support workspace mode'
cider log fixed 'Null pointer in changelog parser'
Unreleased entriescider release [options]
Options:
--date - release date (default: today)If link_template.diff is configured, Cider generates changelog diff links automatically.
cider describe [<version>] [options]
<version> defaults to Unreleased if omittedOptions:
--only-body - omit section header and link footercider list [options]
Options:
--include-yanked, -y--include-unreleased, -uThese commands operate on version in pubspec.yaml.
cider version
cider version <new_version>
<new_version> must be SemVer-compatible.
Examples:
| Before | Command | After |
|---|---|---|
| 1.2.3+1 | cider version 3.2.1 |
3.2.1 |
| 0.2.1-dev | cider version 0.0.1-alpha+42 |
0.0.1-alpha+42 |
cider yank <version>
cider unyank <version>
Yanked versions are marked as [YANKED] in CHANGELOG.md.
cider bump <part> [options]
<part> can be:
breaking (y for 0.y.z, otherwise x for x.y.z)majorminorpatchbuildpre (pre-release)release (remove pre-release suffix)Options:
--keep-build - keep existing build metadata--bump-build - increment build metadata--build=<value> - set build metadata explicitly--pre=<prefix> - set pre-release prefixNotes:
pre and build, Cider increments the rightmost dot-separated numeric identifier..1.Examples:
| Before | Command | After |
|---|---|---|
| 1.2.1-alpha+42 | cider bump breaking |
2.0.0 |
| 0.2.1-alpha+42 | cider bump breaking |
0.3.0 |
| 0.2.1-alpha+42 | cider bump major |
1.0.0 |
| 0.2.1-alpha+42 | cider bump minor |
0.3.0 |
| 0.2.1-alpha+42 | cider bump patch |
0.2.1 |
| 0.2.1 | cider bump patch |
0.2.2 |
| 0.2.1-alpha+42 | cider bump pre |
0.2.1-alpha.1 |
| 1.2.1-alpha+42 | cider bump breaking --keep-build |
2.0.0+42 |
| 0.2.1-alpha+42 | cider bump breaking --bump-build |
0.3.0+43 |
| 0.2.1-alpha+42 | cider bump major --build=2020-02-02 |
1.0.0+2020-02-02 |
| 0.2.1-alpha+42 | cider bump minor --pre=alpha --bump-build |
0.3.0-alpha+43 |
| 0.2.1-alpha+42 | cider bump release |
0.2.1 |
| 0.2.1-alpha+42 | cider bump release --keep-build |
0.2.1+42 |
| Code | Meaning |
|---|---|
| 0 | Success |
| 64 | Usage error (invalid arguments) |
| 65 | Data error (missing/invalid project files) |
| 70 | Internal software error (consider opening an issue) |
의존성 목록 13 개
^2.0.0^0.7.1^7.0.0^1.6.0^2.0.0^0.2.0^3.1.0^0.2.0^1.0.0>=4.0.0 <7.0.0^1.15.3^1.0.2^0.0.2사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗