패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.2.10

cider

pubspec.yaml에 있는 패키지 버전을 자동으로 증가, 설정, 출력합니다. 변경 사항 기록에 항목을 추가, 목록화, 출력합니다. 변경 사항 기록에 차이 링크를 생성합니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
3.9만
좋아요
175
Pub 점수
150

패키지 설치

flutter pub add cider

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Cider는 pubspec.yaml의 버전 관리를 자동화하는 Flutter/Dart 패키지로, 버전 번호 증가 및 출력을 포함합니다. 사용자가 항목을 추가하고 목록을 보며 인쇄할 수 있도록 변경 기록 처리를 단순화하며, 버전 간의 차이 링크를 자동으로 생성합니다. 개발 워크플로우에 원활하게 통합되도록 설계되어 Android, iOS, macOS, Windows, Linux 플랫폼에서 릴리스 프로세스를 간소화합니다. 수동 작업 없이 일관된 버전 관리와 상세한 변경 로그를 유지하려는 팀에게 이상적입니다.

사용 사례

  • 릴리스 전 버전 증가 자동화
  • 구조화된 변경 로그 유지
  • 릴리스 노트에서 git diff 링크 생성
  • CI/CD 파이프라인 간소화
  • 플랫폼 간 버전 일관성 보장

주요 기능

  • 패키지 버전 자동 증가
  • 차이 링크를 포함한 변경 로그 항목 생성
  • 현재 버전 및 변경 로그 출력
  • 여러 플랫폼을 지원합니다
  • pubspec.yaml과의 통합

적합한 대상

  • Flutter를 사용하는 개발 팀
  • 자주 출시되는 프로젝트
  • CI/CD 환경
  • 릴리스 문서화를 우선시하는 팀
  • 오픈소스 패키지 유지보수자

고려 사항

  • 차이 링크를 사용하려면 git 설정이 필요합니다
  • 사용자 정의 버전 형식을 위해 수동 개입이 필요합니다
  • 다른 버전 도구와 충돌할 수 있습니다
  • 통제된 릴리스 워크플로에서 가장 효과적으로 사용됨
  • pubspec.yaml 구조에 따라 다릅니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

logo

Cider (CI for Dart: Efficient Release)

Cider is a CLI tool for Dart package maintenance. It updates CHANGELOG.md and pubspec.yaml to help automate releases.

Assumptions

Cider expects:

  • a CHANGELOG.md file in the project root
  • changelog format compatible with Keep a Changelog
  • simple Markdown in changelog entries (no HTML or complex formatting)
  • project versions that follow Semantic Versioning 2.0.0

Installation

dart pub global activate cider

Configuration

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 tag

Project root detection

You can run Cider from any subdirectory. It searches upward for pubspec.yaml.

To override auto-detection:

cider --project-root=/path/to/project version

Changelog commands

These commands modify CHANGELOG.md unless stated otherwise.

Add an entry
cider log <type> <description>
  • <type>: added, changed, deprecated, removed, fixed, security
  • <description>: one Markdown line

Examples:

cider log changed 'Improve parser performance'
cider log added 'Support workspace mode'
cider log fixed 'Null pointer in changelog parser'
Release Unreleased entries
cider release [options]

Options:

  • --date - release date (default: today)

If link_template.diff is configured, Cider generates changelog diff links automatically.

Print changes for a version (read-only)
cider describe [<version>] [options]
  • <version> defaults to Unreleased if omitted

Options:

  • --only-body - omit section header and link footer
List versions
cider list [options]

Options:

  • --include-yanked, -y
  • --include-unreleased, -u

Version commands

These commands operate on version in pubspec.yaml.

Print current version (read-only)
cider version
Set 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
Yank / unyank a release in changelog
cider yank <version>
cider unyank <version>

Yanked versions are marked as [YANKED] in CHANGELOG.md.

Bump version
cider bump <part> [options]

<part> can be:

  • breaking (y for 0.y.z, otherwise x for x.y.z)
  • major
  • minor
  • patch
  • build
  • pre (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 prefix

Notes:

  • For pre and build, Cider increments the rightmost dot-separated numeric identifier.
  • If no numeric identifier exists, Cider appends .1.
  • Per SemVer, build metadata does not affect version precedence.

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

Exit codes

Code Meaning
0 Success
64 Usage error (invalid arguments)
65 Data error (missing/invalid project files)
70 Internal software error (consider opening an issue)

카테고리

의존성

의존성 목록 9 개

소스 저장소

이 패키지를 사용하는 프로젝트