@muverse/cli 0.1.14 β†’ 0.2.1

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/README.md CHANGED
@@ -33,6 +33,7 @@ muverse
33
33
  ```
34
34
 
35
35
  This will:
36
+
36
37
  1. Detect your project type (Gradle, etc.)
37
38
  2. Analyze commits since the last version
38
39
  3. Calculate version bumps based on Conventional Commits
@@ -70,12 +71,13 @@ muverse --adapter gradle
70
71
  Calculate and apply semantic version changes.
71
72
 
72
73
  **Arguments:**
74
+
73
75
  - `REPOSITORYROOT` - Path to the repository root (default: `.`)
74
76
 
75
77
  **Flags:**
76
78
 
77
79
  | Flag | Description | Default |
78
- |------|-------------|---------|
80
+ | ------ | ------------- | --------- |
79
81
  | `--dry-run` | Run without writing or pushing changes | `false` |
80
82
  | `--adapter <value>` | Language adapter (e.g., gradle). Auto-detected if not provided | - |
81
83
  | `--push-tags` | Push tags to origin | `true` |
@@ -90,6 +92,7 @@ Calculate and apply semantic version changes.
90
92
  | `--no-push-changes` | Don't commit and push changes | - |
91
93
  | `--generate-changelog` | Generate or update changelog files for changed modules | `true` |
92
94
  | `--no-generate-changelog` | Don't generate changelogs | - |
95
+ | `--output-file <value>` | Write calculated versions to a file in JSON format | - |
93
96
 
94
97
  > πŸ“– **Detailed Pre-release Documentation**: See [@muverse/core PRERELEASE.md](../core/PRERELEASE.md) for comprehensive examples and use cases.
95
98
 
@@ -171,6 +174,7 @@ Then manually review, commit, and push.
171
174
  ### Configuration Example
172
175
 
173
176
  `.muverserc.json`:
177
+
174
178
  ```json
175
179
  {
176
180
  "defaultBump": "patch",
@@ -204,7 +208,7 @@ The CLI supports Gradle projects with:
204
208
 
205
209
  ### Example Project Structure
206
210
 
207
- ```
211
+ ```text
208
212
  myproject/
209
213
  β”œβ”€β”€ settings.gradle.kts
210
214
  β”œβ”€β”€ build.gradle.kts
@@ -230,7 +234,7 @@ api.version=1.5.0
230
234
 
231
235
  ΞΌVERSE uses [Conventional Commits](https://conventionalcommits.org/) to determine version bumps:
232
236
 
233
- ```
237
+ ```text
234
238
  <type>[optional scope]: <description>
235
239
 
236
240
  [optional body]
@@ -239,6 +243,7 @@ api.version=1.5.0
239
243
  ```
240
244
 
241
245
  **Examples:**
246
+
242
247
  - `feat(api): add new endpoint` β†’ **minor** bump
243
248
  - `fix(core): resolve memory leak` β†’ **patch** bump
244
249
  - `feat!: breaking API change` β†’ **major** bump
@@ -249,7 +254,8 @@ Breaking changes trigger **major** version bumps:
249
254
 
250
255
  1. Using `!` after the type: `feat!: remove deprecated API`
251
256
  2. Using `BREAKING CHANGE:` in the footer:
252
- ```
257
+
258
+ ```text
253
259
  feat: update API
254
260
 
255
261
  BREAKING CHANGE: The old API is removed
@@ -301,6 +307,7 @@ Add to your `package.json`:
301
307
  ```
302
308
 
303
309
  Then run:
310
+
304
311
  ```bash
305
312
  npm run version # Dry run
306
313
  npm run version:release # Actual release
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export default class Version extends Command {
19
19
  "append-snapshot": import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
20
  "push-changes": import("@oclif/core/interfaces").BooleanFlag<boolean>;
21
21
  "generate-changelog": import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
+ "output-file": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
22
23
  };
23
24
  run(): Promise<void>;
24
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAS,MAAM,aAAa,CAAC;AAInD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;IAC1C,OAAgB,WAAW,SAAkD;IAE7E,OAAgB,QAAQ,WAKtB;IAEF,MAAM,CAAC,IAAI;;;;MAMT;IAEF,OAAgB,KAAK;;;;;;;;;;;;MAoDnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA6B3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAS,MAAM,aAAa,CAAC;AAInD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;IAC1C,OAAgB,WAAW,SAAkD;IAE7E,OAAgB,QAAQ,WAKtB;IAEF,MAAM,CAAC,IAAI;;;;MAMT;IAEF,OAAgB,KAAK;;;;;;;;;;;;;MAwDnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8B3B"}
package/dist/index.js CHANGED
@@ -64,6 +64,10 @@ export default class Version extends Command {
64
64
  default: true,
65
65
  allowNo: true,
66
66
  }),
67
+ "output-file": Flags.string({
68
+ description: "Path to the output file for project information",
69
+ default: "project-information.json",
70
+ }),
67
71
  };
68
72
  async run() {
69
73
  const { flags, args } = await this.parse(Version);
@@ -82,6 +86,7 @@ export default class Version extends Command {
82
86
  appendSnapshot: flags["append-snapshot"],
83
87
  pushChanges: flags["push-changes"],
84
88
  generateChangelog: flags["generate-changelog"],
89
+ outputFile: flags["output-file"],
85
90
  };
86
91
  const runner = new VerseRunner(options);
87
92
  await runner.run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muverse/cli",
3
- "version": "0.1.14",
3
+ "version": "0.2.1",
4
4
  "description": "Version Engine for Repo Semantic Evolution (CLI)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "types": "dist/index.d.ts",
39
39
  "dependencies": {
40
40
  "@oclif/core": "^4.8.0",
41
- "@muverse/core": "^0.1.14",
41
+ "@muverse/core": "^0.2.1",
42
42
  "oclif": "^4.14.0"
43
43
  },
44
44
  "devDependencies": {