Skip to content

Commit bb46b25

Browse files
committed
Pushed 2025-12-10 08:40:53
1 parent 201924e commit bb46b25

10 files changed

Lines changed: 5078 additions & 4832 deletions

README.md

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,72 @@
11
# [![eliware.org](https://eliware.org/logos/brand.png)](https://discord.gg/M6aTR9eTwN)
22

3-
## @eliware/tagit [![npm version](https://img.shields.io/npm/v/@eliware/tagit.svg)](https://www.npmjs.com/package/@eliware/tagit)[![license](https://img.shields.io/github/license/eliware/tagit.svg)](LICENSE)[![build status](https://github.com/eliware/tagit/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eliware/tagit/actions)
3+
## @eliware/tagit [![npm version](https://img.shields.io/npm/v/@eliware/tagit.svg)](https://www.npmjs.com/package/@eliware/tagit) [![license](https://img.shields.io/github/license/eliware/tagit.svg)](LICENSE) [![build status](https://github.com/eliware/tagit/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eliware/tagit/actions)
44

5-
A starter template for new Node.js projects. Use this as a foundation for your next application or service.
5+
Automated version management and Git operations for Node.js and PHP projects.
6+
7+
**Note:** `tagit` is intended for use on Linux systems only.
68

79
---
810

911
## Table of Contents
1012

13+
- [What is tagit?](#what-is-tagit)
1114
- [Features](#features)
12-
- [Getting Started](#getting-started)
13-
- [Development](#development)
14-
- [Testing](#testing)
15-
- [Customization](#customization)
15+
- [Usage](#usage)
1616
- [Support](#support)
1717
- [License](#license)
18+
- [Links](#links)
1819

19-
## Features
20-
21-
- Pre-configured for Node.js (ESM)
22-
- Environment variable support via dotenv
23-
- Logging and signal handling via `@eliware/common`
24-
- Jest for testing
25-
- MIT License
20+
## What is tagit?
2621

27-
## Getting Started
22+
`tagit` is a CLI utility that automates the process of incrementing your project version, updating version files (`package.json` and/or `composer.json`), committing the changes, tagging the commit, and pushing to your Git repository. It provides detailed logging and robust error handling for a smooth release workflow.
2823

29-
1. **Clone this template:**
30-
31-
```bash
32-
git clone https://github.com/eliware/tagit.git
33-
cd tagit
34-
rm -rf .git
35-
git init
36-
npm install
37-
```
24+
## Features
3825

39-
2. **Update project details:**
40-
- Edit `package.json` (name, description, author, etc.)
41-
- Update this `README.md` as needed
42-
- Change the license if required
26+
- Increments the semantic version in `package.json` and/or `composer.json`
27+
- Writes the new version back to the file(s)
28+
- Commits all changes with a message like: `Version <version> - MM-DD-YYYY`
29+
- Tags the commit with the new version
30+
- Pushes commits and tags to your remote repository
31+
- Logs each step for transparency
4332

44-
## Development
33+
## Installation
4534

46-
- Main entry: `tagit.mjs`
47-
- Start your app:
35+
Clone the repository (suggested location: `/opt`):
4836

49-
```bash
50-
node tagit.mjs
51-
```
37+
```bash
38+
sudo git clone https://github.com/eliware/tagit.git /opt/tagit
39+
cd /opt/tagit
40+
sudo npm install
41+
# (Optional) Run tests
42+
sudo npm test
43+
```
5244

53-
- Add your code in new files and import as needed.
45+
Create a symlink to make `tagit` available system-wide:
5446

55-
## Testing
47+
```bash
48+
sudo ln -s /opt/tagit/tagit.mjs /usr/bin/tagit
49+
```
5650

57-
- Run tests with:
51+
## Usage
5852

59-
```bash
60-
npm test
61-
```
53+
Switch to the root directory of the project you want to bump the version for, then run:
6254

63-
- Add your tests in the `__tests__` folder or alongside your code.
55+
```bash
56+
tagit
57+
```
6458

65-
## Customization
59+
If you have not created the symlink, you can run it directly with:
6660

67-
- Replace or extend the logging and signal handling as needed.
68-
- Add dependencies and scripts to fit your project.
69-
- Remove or modify template files and sections.
61+
```bash
62+
/opt/tagit/tagit.mjs
63+
```
7064

7165
## Support
7266

73-
For help, questions, or to chat with the author and community, visit:
74-
75-
[![Discord](https://eliware.org/logos/discord_96.png)](https://discord.gg/M6aTR9eTwN)[![eliware.org](https://eliware.org/logos/eliware_96.png)](https://discord.gg/M6aTR9eTwN)
67+
For help or questions, join the community and chat with the author:
7668

69+
[![Discord](https://eliware.org/logos/discord_96.png)](https://discord.gg/M6aTR9eTwN)
7770
**[eliware.org on Discord](https://discord.gg/M6aTR9eTwN)**
7871

7972
## License

0 commit comments

Comments
 (0)