@programinglive/commiter 1.1.11 β†’ 1.2.0

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.2.0](https://github.com/programinglive/commiter/compare/v1.1.11...v1.2.0) (2025-11-26)
6
+
7
+
8
+ ### 🧹 Chores
9
+
10
+ * **project:** update documentation and release scripts ([88d02c6](https://github.com/programinglive/commiter/commit/88d02c6f527cd4dc63bcecfca4538867fe8d5c96))
11
+
5
12
  ### [1.1.11](https://github.com/programinglive/commiter/compare/v1.1.10...v1.1.11) (2025-11-26)
6
13
 
7
14
 
package/PRD.md CHANGED
@@ -28,8 +28,13 @@ Growing teams often struggle to keep release processes consistent: commit messag
28
28
  - Detects release type from CLI args or npm context.
29
29
  - Runs project tests via detected package manager before releasing.
30
30
  - Invokes `standard-version` with additional flags (e.g., preload patch for deprecated APIs).
31
+ - **[NEW]** Automatically updates website version in `web/index.html`.
31
32
  - **Preload Patching (`scripts/preload/fs-f-ok.cjs`)**
32
33
  - Hooks Node’s module loader to transparently replace deprecated `fs.F_OK` usages in `standard-version` without altering `node_modules`.
34
+ - **Website & Documentation**
35
+ - Professional landing page in `web/` directory.
36
+ - Automated GitHub Releases generation.
37
+ - Open Graph social media preview support.
33
38
  - **Testing**
34
39
  - Suite executed via `node --test` covers setup utilities, release argument parsing, and the preload patch.
35
40
 
package/README.md CHANGED
@@ -186,7 +186,21 @@ To see what would happen without making changes:
186
186
  npm run release -- --dry-run
187
187
  ```
188
188
 
189
- ## Contributing
189
+ ## Website
190
+
191
+ The project includes a professional landing page in the `web/` directory.
192
+
193
+ ### Local Development
194
+
195
+ To run the website locally:
196
+
197
+ ```bash
198
+ npm run web
199
+ ```
200
+
201
+ This will serve the website at `http://localhost:3000`.
202
+
203
+ ## Contributing
190
204
 
191
205
  Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
192
206
 
@@ -4,6 +4,7 @@ This document summarizes every published version of `@programinglive/commiter`.
4
4
 
5
5
  | Version | Date | Highlights |
6
6
  |---------|------|------------|
7
+ | 1.2.0 | 2025-11-26 | See CHANGELOG for details. |
7
8
  | 1.1.11 | 2025-11-26 | **website:** add open graph social media preview (7a2f911) |
8
9
  | 1.1.10 | 2025-11-26 | **website:** add professional landing page and release tools (ec53e2d) |
9
10
  | 1.1.9 | 2025-11-24 | convert release scripts to CJS to support ESM projects (842da02) |
@@ -40,6 +41,13 @@ This document summarizes every published version of `@programinglive/commiter`.
40
41
 
41
42
 
42
43
 
44
+
45
+ ## 1.2.0
46
+
47
+ Released on **2025-11-26**.
48
+
49
+ - See CHANGELOG for details.
50
+
43
51
  ## 1.1.11 – πŸ“ Documentation
44
52
 
45
53
  Released on **2025-11-26**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@programinglive/commiter",
3
- "version": "1.1.11",
3
+ "version": "1.2.0",
4
4
  "description": "Commiter keeps repositories release-ready by enforcing conventional commits, generating icon-rich changelog entries, and orchestrating semantic version bumps without manual toil. It bootstraps Husky hooks, commitlint rules, and release scripts that inspect history, detect framework-specific test commands, run them automatically, tag git releases, coordinate npm publishing, surface release metrics, enforce project-specific checks, and give maintainers observability across distributed teams. Plus!",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -12,7 +12,9 @@
12
12
  "release": "node scripts/release.cjs",
13
13
  "release:major": "node scripts/release.cjs major",
14
14
  "release:minor": "node scripts/release.cjs minor",
15
- "release:patch": "node scripts/release.cjs patch"
15
+ "release:patch": "node scripts/release.cjs patch",
16
+ "web": "npx serve web",
17
+ "update:web": "node scripts/update-web-version.js"
16
18
  },
17
19
  "keywords": [
18
20
  "commit",
@@ -188,9 +188,21 @@ function runRelease({
188
188
  }
189
189
  }
190
190
 
191
+ // Update website version
192
+ try {
193
+ console.log('🌐 Updating website version...');
194
+ const updateWebResult = spawnSync('npm', ['run', 'update:web'], { stdio: 'inherit', cwd });
195
+ if (updateWebResult.status === 0) {
196
+ spawnSync('git', ['add', 'web/index.html'], { stdio: 'inherit', cwd });
197
+ } else {
198
+ console.warn('⚠️ Failed to update website version');
199
+ }
200
+ } catch (error) {
201
+ console.warn(`⚠️ Skipping website version update: ${error.message}`);
202
+ }
203
+
191
204
  return releaseResult;
192
205
  }
193
-
194
206
  if (require.main === module) {
195
207
  try {
196
208
  const result = runRelease();
@@ -0,0 +1,26 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ // Get current version from package.json
5
+ const packageJson = require('../package.json');
6
+ const version = packageJson.version;
7
+
8
+ const indexPath = path.join(__dirname, '../web/index.html');
9
+ let content = fs.readFileSync(indexPath, 'utf8');
10
+
11
+ // Update version in the badge
12
+ // Matches: <span>v1.1.9 - Latest Release</span>
13
+ content = content.replace(
14
+ /<span>v\d+\.\d+\.\d+ - Latest Release<\/span>/,
15
+ `<span>v${version} - Latest Release</span>`
16
+ );
17
+
18
+ // Update version in the stats
19
+ // Matches: <div class="stat-value">1.1.9</div>
20
+ content = content.replace(
21
+ /<div class="stat-value">\d+\.\d+\.\d+<\/div>(\s*<div class="stat-label">Latest Version<\/div>)/,
22
+ `<div class="stat-value">${version}</div>$1`
23
+ );
24
+
25
+ fs.writeFileSync(indexPath, content);
26
+ console.log(`βœ… Updated website to version ${version}`);
package/web/index.html CHANGED
@@ -66,7 +66,7 @@
66
66
  <div class="hero-content">
67
67
  <div class="hero-badge">
68
68
  <span class="badge-dot"></span>
69
- <span>v1.1.9 - Latest Release</span>
69
+ <span>v1.2.0 - Latest Release</span>
70
70
  </div>
71
71
  <h1 class="hero-title">
72
72
  Ship Releases with <span class="gradient-text">Confidence</span>
@@ -90,7 +90,7 @@
90
90
  </div>
91
91
  <div class="hero-stats">
92
92
  <div class="stat-item">
93
- <div class="stat-value">1.1.9</div>
93
+ <div class="stat-value">1.2.0</div>
94
94
  <div class="stat-label">Latest Version</div>
95
95
  </div>
96
96
  <div class="stat-item">