@pc360/chlog 0.1.10 โ 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +145 -31
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Changelog
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
@@ -10,6 +10,18 @@ The format is based on Keep a Changelog, and this project follows Semantic Versi
|
|
|
10
10
|
|
|
11
11
|
- No changes yet.
|
|
12
12
|
|
|
13
|
+
## [0.1.11] - 2026-02-15
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Added explicit terminal environment requirements in README (macOS Terminal, iTerm2, Git Bash for Windows, WSL2, Linux)
|
|
18
|
+
- Added detailed Git Bash login shell configuration guide
|
|
19
|
+
- Added cross-platform npm global PATH setup instructions
|
|
20
|
+
- Added structured shell setup section per environment
|
|
21
|
+
- Improved documentation clarity for Windows users
|
|
22
|
+
- Standardized installation and verification steps
|
|
23
|
+
- Refined README structure for better onboarding experience
|
|
24
|
+
|
|
13
25
|
## [0.1.10] - 2026-02-15
|
|
14
26
|
|
|
15
27
|
### Changed
|
package/README.md
CHANGED
|
@@ -11,13 +11,21 @@ Each entry is automatically:
|
|
|
11
11
|
- Named with Asia/Manila timestamp (`YYYYMMDDHHmmss`)
|
|
12
12
|
- Placed in the correct type directory
|
|
13
13
|
- Written as one clean line
|
|
14
|
-
- Prefixed with scope and layer (`Back-End` or `Front-End`)
|
|
14
|
+
- Prefixed with scope and layer (`[Back-End]` or `[Front-End]`)
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# 1. Installation
|
|
17
19
|
|
|
18
|
-
Requirements
|
|
20
|
+
## Requirements
|
|
19
21
|
|
|
20
22
|
- Node.js `>= 18`
|
|
23
|
+
- One of the following terminals:
|
|
24
|
+
- macOS Terminal
|
|
25
|
+
- iTerm2 (macOS)
|
|
26
|
+
- Git Bash (Windows)
|
|
27
|
+
- Linux bash/zsh
|
|
28
|
+
- WSL2 (Windows Subsystem for Linux)
|
|
21
29
|
|
|
22
30
|
Install globally:
|
|
23
31
|
|
|
@@ -31,7 +39,9 @@ Alternative (without global install):
|
|
|
31
39
|
npx @pc360/chlog --type <added|changed|fixed|removed> --scope <scope> --message "<description>"
|
|
32
40
|
```
|
|
33
41
|
|
|
34
|
-
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
# 2. First-Time Usage (Dry Run Recommended)
|
|
35
45
|
|
|
36
46
|
For first use, always run a dry run to preview output without creating a file:
|
|
37
47
|
|
|
@@ -51,42 +61,140 @@ If the preview is correct, run the actual command:
|
|
|
51
61
|
chlog --type added --scope JES-99 --message "Test entry"
|
|
52
62
|
```
|
|
53
63
|
|
|
54
|
-
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
# 3. If `chlog` Is Not Found
|
|
55
67
|
|
|
56
68
|
If you see `command not found: chlog` after installation, add npm global `bin` to your `PATH`.
|
|
57
69
|
|
|
58
|
-
|
|
70
|
+
Check npm prefix:
|
|
59
71
|
|
|
60
72
|
```bash
|
|
61
73
|
npm get prefix
|
|
62
74
|
```
|
|
63
75
|
|
|
64
|
-
|
|
76
|
+
Then follow the setup instructions below depending on your environment.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# ๐ฅ Shell Setup Per Environment
|
|
81
|
+
|
|
82
|
+
If `chlog` is installed globally but not found, ensure your npm global `bin` directory is included in your `PATH`.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## ๐ macOS Terminal / iTerm2
|
|
87
|
+
|
|
88
|
+
If using **zsh** (default on macOS):
|
|
65
89
|
|
|
66
90
|
```bash
|
|
67
|
-
export PATH="$PATH
|
|
91
|
+
echo 'export PATH="$PATH:$(npm get prefix)/bin"' >> ~/.zshrc
|
|
92
|
+
source ~/.zshrc
|
|
68
93
|
```
|
|
69
94
|
|
|
70
|
-
|
|
95
|
+
If using **bash**:
|
|
71
96
|
|
|
72
|
-
|
|
73
|
-
|
|
97
|
+
```bash
|
|
98
|
+
echo 'export PATH="$PATH:$(npm get prefix)/bin"' >> ~/.bashrc
|
|
99
|
+
source ~/.bashrc
|
|
100
|
+
```
|
|
74
101
|
|
|
75
|
-
|
|
102
|
+
Verify:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
chlog --version
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## ๐ช Git Bash (Windows)
|
|
111
|
+
|
|
112
|
+
Git Bash runs as a **login shell**, which means it loads:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
~/.bash_profile
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
If `.bash_profile` exists, it may NOT automatically load `.bashrc`.
|
|
119
|
+
|
|
120
|
+
### Recommended Setup
|
|
121
|
+
|
|
122
|
+
### Step 1: Ensure `.bash_profile` Loads `.bashrc`
|
|
123
|
+
|
|
124
|
+
Open Git Bash:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
nano ~/.bash_profile
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Add:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Load .bashrc if it exists
|
|
134
|
+
if [ -f ~/.bashrc ]; then
|
|
135
|
+
. ~/.bashrc
|
|
136
|
+
fi
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Save and exit.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### Step 2: Add npm Global Path to `.bashrc`
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
nano ~/.bashrc
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Add:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
export PATH="$PATH:$(npm get prefix)/bin"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Save and restart Git Bash.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### Verify
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
chlog --version
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
If the version prints, setup is successful.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## ๐ง WSL2 / Linux
|
|
170
|
+
|
|
171
|
+
Add npm global path to:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
~/.bashrc
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Add:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
export PATH="$PATH:$(npm get prefix)/bin"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Reload:
|
|
76
184
|
|
|
77
185
|
```bash
|
|
78
|
-
source ~/.zshrc
|
|
79
|
-
# or
|
|
80
186
|
source ~/.bashrc
|
|
81
187
|
```
|
|
82
188
|
|
|
83
|
-
|
|
189
|
+
Verify:
|
|
84
190
|
|
|
85
191
|
```bash
|
|
86
192
|
chlog --version
|
|
87
193
|
```
|
|
88
194
|
|
|
89
|
-
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
# Usage
|
|
90
198
|
|
|
91
199
|
```bash
|
|
92
200
|
chlog --type <added|changed|fixed|removed> \
|
|
@@ -101,7 +209,9 @@ Short form:
|
|
|
101
209
|
chlog -t <added|changed|fixed|removed> -s <scope> -m "<description>" [-f]
|
|
102
210
|
```
|
|
103
211
|
|
|
104
|
-
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
# Parameters
|
|
105
215
|
|
|
106
216
|
| Flag | Required | Description |
|
|
107
217
|
| ---------------- | -------- | --------------------------------------------------- |
|
|
@@ -113,27 +223,31 @@ chlog -t <added|changed|fixed|removed> -s <scope> -m "<description>" [-f]
|
|
|
113
223
|
| `-h, --help` | No | Show help |
|
|
114
224
|
| `-v, --version` | No | Show CLI version |
|
|
115
225
|
|
|
116
|
-
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
# Examples
|
|
117
229
|
|
|
118
|
-
Back-End (default)
|
|
230
|
+
### Back-End (default)
|
|
119
231
|
|
|
120
232
|
```bash
|
|
121
233
|
chlog --type added --scope JES-33 --message "Add daily consolidated JE job"
|
|
122
234
|
```
|
|
123
235
|
|
|
124
|
-
Front-End
|
|
236
|
+
### Front-End
|
|
125
237
|
|
|
126
238
|
```bash
|
|
127
239
|
chlog --type fixed --scope JES-45 --frontend --message "Fix table pagination issue"
|
|
128
240
|
```
|
|
129
241
|
|
|
130
|
-
Module
|
|
242
|
+
### Module Scope
|
|
131
243
|
|
|
132
244
|
```bash
|
|
133
245
|
chlog --type changed --scope "Credit Validation" --message "Improve credit limit computation"
|
|
134
246
|
```
|
|
135
247
|
|
|
136
|
-
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
# Output Structure
|
|
137
251
|
|
|
138
252
|
```text
|
|
139
253
|
changelog/
|
|
@@ -152,7 +266,9 @@ YYYYMMDDHHmmss
|
|
|
152
266
|
|
|
153
267
|
Timezone used: `Asia/Manila`
|
|
154
268
|
|
|
155
|
-
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
# CLI Rules
|
|
156
272
|
|
|
157
273
|
- `--type` is required
|
|
158
274
|
- `--scope` is required
|
|
@@ -162,25 +278,23 @@ Timezone used: `Asia/Manila`
|
|
|
162
278
|
|
|
163
279
|
---
|
|
164
280
|
|
|
165
|
-
|
|
281
|
+
# ๐งช Running Unit Tests
|
|
166
282
|
|
|
167
283
|
This project uses Node.js built-in test runner (`node:test`). No external test framework is required.
|
|
168
284
|
|
|
169
|
-
|
|
285
|
+
## Run Tests
|
|
170
286
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
```
|
|
287
|
+
```bash
|
|
174
288
|
npm test
|
|
175
289
|
```
|
|
176
290
|
|
|
177
|
-
Or directly
|
|
291
|
+
Or directly:
|
|
178
292
|
|
|
179
|
-
```
|
|
293
|
+
```bash
|
|
180
294
|
node --test
|
|
181
295
|
```
|
|
182
296
|
|
|
183
|
-
|
|
297
|
+
## What Is Tested
|
|
184
298
|
|
|
185
299
|
- Argument parsing (`parseArgs`)
|
|
186
300
|
- Required flag validation (`validateArgs`)
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pc360/chlog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "PC360 Changelog CLI Tool",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"changelog",
|
|
7
|
+
"cli"
|
|
8
|
+
],
|
|
9
|
+
"author": "almerleoalmazan@gmail.com",
|
|
6
10
|
"bin": {
|
|
7
11
|
"chlog": "bin/chlog.js"
|
|
8
12
|
},
|