https://github.com/capawesome-team/capver

⚡ CLI for managing versions in a Capacitor project across multiple platforms.

https://github.com/capawesome-team/capver

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

⚡ CLI for managing versions in a Capacitor project across multiple platforms.

Basic Info
  • Host: GitHub
  • Owner: capawesome-team
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Size: 232 KB
Statistics
  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created 10 months ago · Last pushed 10 months ago
Metadata Files
Readme Changelog License

README.md

capver

npm version npm downloads license

CLI for managing versions in a Capacitor project across multiple platforms.

Features

  • 📱 Capacitor-native: Designed specifically for Capacitor projects and workflows.
  • 🤖 Android: Full Android platform support with build.gradle integration.
  • 🍎 iOS: Complete iOS platform support with Xcode project integration.
  • 🌐 Web: Complete web platform support with package.json integration.
  • ⬆️ Automatic increase: Easily increment major, minor, patch, and hotfix versions.
  • 🔧 Hotfixes: Support for hotfix versioning on mobile platforms.
  • 🩺 Health checks: Verify version consistency across platforms with built-in diagnostics.
  • 🎯 Easy usage: Simple commands with intuitive CLI interface.
  • Fully tested: Comprehensive test coverage for reliable operation.

Installation

The CLI can be installed globally via npm:

bash npm install -g @capawesome/capver

Usage

The CLI can be invoked with the @capawesome/capver command.

bash npx @capawesome/capver <command> [options]

```bash

Initialize a new Capacitor project with version 0.0.1

npx @capawesome/capver set 0.0.1

Increment the patch version

npx @capawesome/capver patch

Increment the minor version

npx @capawesome/capver minor

Increment the major version

npx @capawesome/capver major

Increment only the build number

npx @capawesome/capver hotfix

Check version consistency across platforms

npx @capawesome/capver get

Synchronize all platforms to use the highest version found

npx @capawesome/capver sync ```

Commands

get

Get the version of the app from all relevant files.

bash npx @capawesome/capver get

This command displays the current version across all platforms and verifies they are synchronized.

set

Set the version of the app in all relevant files.

bash npx @capawesome/capver set <version>

Arguments: - version - Version in format major.minor.patch (e.g., 1.2.3)

major

Increment the major version of the app in all relevant files.

bash npx @capawesome/capver major

Increments the major version number (e.g., 1.2.32.0.0).

minor

Increment the minor version of the app in all relevant files.

bash npx @capawesome/capver minor

Increments the minor version number (e.g., 1.2.31.3.0). Maximum value: 999.

patch

Increment the patch version of the app in all relevant files.

bash npx @capawesome/capver patch

Increments the patch version number (e.g., 1.2.31.2.4). Maximum value: 99.

hotfix

Increment the hotfix version of the app in all relevant files.

bash npx @capawesome/capver hotfix

Increments the hotfix version for mobile platforms (iOS/Android only). Maximum value: 99.

sync

Set the highest version number among all platforms in all relevant files.

bash npx @capawesome/capver sync

Synchronizes all platforms to use the highest version found across any platform.

doctor

Prints out necessary information for debugging.

bash npx @capawesome/capver doctor

Displays system information including Node.js, NPM, CLI version, and OS details.

Help

The CLI ships with command documentation that is accessible with the --help flag.

bash npx @capawesome/capver --help

Integrations

Commit and Tag Version

The commit-and-tag-version package offers automatic versioning, changelog generation, and Git tagging using conventional commits. You can integrate it with the @capawesome/capver CLI for a seamless versioning experience. Just add the following configuration to your package.json:

json { "version": "0.0.1", "scripts": { "release": "commit-and-tag-version --commit-all" }, "commit-and-tag-version": { "scripts": { "postbump": "npx @capawesome/capver set $npm_package_version" } } }

This configuration ensures that the version is automatically updated in all relevant files whenever a new version is released. Just run npm run release to automatically bump the version, update all relevant files, and commit the changes.

Development

Run the following commands to get started with development:

  1. Clone the repository:

    bash git clone https://github.com/capawesome-team/capver.git

  2. Install dependencies:

    bash npm install

  3. Run your first command:

    bash npm start -- --help

    Note: The -- is required to pass arguments to the script.

Changelog

See CHANGELOG.

License

See LICENSE.

Owner

  • Name: Capawesome
  • Login: capawesome-team
  • Kind: organization
  • Email: support@capawesome.io

Capawesome offers enterprise-grade solutions and services designed for teams building cross-platform apps with Capacitor.

GitHub Events

Total
  • Issues event: 2
  • Release event: 1
  • Watch event: 5
  • Issue comment event: 1
  • Push event: 2
Last Year
  • Issues event: 2
  • Release event: 1
  • Watch event: 5
  • Issue comment event: 1
  • Push event: 2

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 2
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • robingenz (1)
  • InfoArkitectura (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • npm 57 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
npmjs.org: @capawesome/capver

CLI for managing versions in a Capacitor project across multiple platforms.

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 57 Last month
Rankings
Dependent repos count: 23.9%
Average: 29.2%
Dependent packages count: 34.5%
Maintainers (1)
Funding
  • type: github: url: https://github.com/sponsors/capawesome-team/
  • type: opencollective: url: https://opencollective.com/capawesome
Last synced: 10 months ago

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v4 composite
  • actions/setup-node v4 composite
  • actions/upload-artifact v4 composite
.github/workflows/invalid.yml actions
  • actions/checkout v3 composite
.github/workflows/lock.yml actions
  • dessant/lock-threads v3 composite
.github/workflows/needs-reply-remove.yml actions
.github/workflows/needs-reply.yml actions
  • dwieeb/needs-reply v2 composite
package-lock.json npm
  • 540 dependencies
package.json npm
  • @ionic/prettier-config 4.0.0 development
  • @types/node 24.2.1 development
  • @vitest/ui 3.2.4 development
  • commit-and-tag-version 12.5.0 development
  • prettier 3.3.3 development
  • rimraf 6.0.1 development
  • tsc-alias 1.8.16 development
  • typescript 5.6.3 development
  • vitest 3.2.4 development
  • @robingenz/zli 0.1.7
  • @trapezedev/project 7.1.3
  • consola 3.3.0
  • systeminformation 5.25.11
  • zod 4.0.17