Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucascaro/denoversion
Deno cli to manage and bump release versions.
https://github.com/lucascaro/denoversion
Last synced: about 1 month ago
JSON representation
Deno cli to manage and bump release versions.
- Host: GitHub
- URL: https://github.com/lucascaro/denoversion
- Owner: lucascaro
- License: mit
- Created: 2019-02-15T07:47:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T16:29:34.000Z (over 5 years ago)
- Last Synced: 2024-08-03T10:20:49.235Z (4 months ago)
- Language: TypeScript
- Size: 58.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - denoversion - Deno的 SemVer + Git 版本管理。 (Uncategorized / Uncategorized)
- awesome-deno-cn - @lucascaro/denoversion
- awesome-deno - denoversion - SemVer and git version management for Deno.![GitHub stars](https://img.shields.io/github/stars/lucascaro/denoversion?style=plastic) (Tools / Online Playgrounds)
- awesome-deno - denoversion - SemVer and git version management for Deno. (Tools / XML)
README
# denoversion
Deno cli to manage and bump release versions.
`denoversion` helps you keep track of your project's [SemVer](https://semver.org/) version in a `VERSION` file, including creating and pushing git tags.
## Installation
Install it as a local command via [denoget](https://github.com/syumai/deno-libs/tree/master/denoget):
```bash
$ denoget https://denopkg.com/lucascaro/denoversion.ts
```or run it directly:
```bash
$ deno https://denopkg.com/lucascaro/denoversion.ts
```If you do not use `denoget` to install locally, replace `denoversion` below with `deno -A https://denopkg.com/lucascaro/denoversion.ts`
## Usage
`denoversion` has different subcommands: `init`, `current`, `set`, and `bump`.
### `version`
`denoversion version` as well as without arguments, `denoversion` shows it's own version.
### `init`
Use `denoversion init` to get started versioning your repository.
```bash
$ denoversion init 1.0.0
v1.0.0
```This will create a file named `VERSION` containing your version string. The command will also create a new commit and tag with the version string.
Optionally, you can pass `--push` to instruct the program to push changes to the configured git remote.
The command will not allow to initialize an already initialized directory, you can pass `-f` or `--force` to disable this safety check.
### `current`
Running `denoversion current` will print the current version to the console.
### `set`
Use `denoversion set` to set the version manually.
```
$ denoversion set 1.2.3
v1.2.3
```### `bump`
Bumps the current version. It will also create a git commit and annotated tag. Run with `--push` to also push the changes to your configured remote and create a release.
By default `denoversion bump` will bump the `patch` (3rd) number in the version. You can pass another argument to specify which segment to bump:
```
$ denoversion current
v1.2.3
$ denoversion bump
v1.2.4
$ denoversion bump patch
v1.2.5
$ denoversion bump minor
v1.3.0
$ denoversion bump major
v2.0.0
```## Feedback
If you have comments, feature requests, or have found a bug, leave an issue in the issue tracker!