@sfdxy/mule-build 1.0.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.
Files changed (82) hide show
  1. package/README.md +301 -0
  2. package/dist/bin/mule-build.d.ts +8 -0
  3. package/dist/bin/mule-build.d.ts.map +1 -0
  4. package/dist/bin/mule-build.js +12 -0
  5. package/dist/bin/mule-build.js.map +1 -0
  6. package/dist/src/api/enforce.d.ts +11 -0
  7. package/dist/src/api/enforce.d.ts.map +1 -0
  8. package/dist/src/api/enforce.js +58 -0
  9. package/dist/src/api/enforce.js.map +1 -0
  10. package/dist/src/api/index.d.ts +12 -0
  11. package/dist/src/api/index.d.ts.map +1 -0
  12. package/dist/src/api/index.js +12 -0
  13. package/dist/src/api/index.js.map +1 -0
  14. package/dist/src/api/package.d.ts +15 -0
  15. package/dist/src/api/package.d.ts.map +1 -0
  16. package/dist/src/api/package.js +242 -0
  17. package/dist/src/api/package.js.map +1 -0
  18. package/dist/src/api/release.d.ts +11 -0
  19. package/dist/src/api/release.d.ts.map +1 -0
  20. package/dist/src/api/release.js +102 -0
  21. package/dist/src/api/release.js.map +1 -0
  22. package/dist/src/api/run.d.ts +11 -0
  23. package/dist/src/api/run.d.ts.map +1 -0
  24. package/dist/src/api/run.js +44 -0
  25. package/dist/src/api/run.js.map +1 -0
  26. package/dist/src/api/strip.d.ts +11 -0
  27. package/dist/src/api/strip.d.ts.map +1 -0
  28. package/dist/src/api/strip.js +57 -0
  29. package/dist/src/api/strip.js.map +1 -0
  30. package/dist/src/cli.d.ts +15 -0
  31. package/dist/src/cli.d.ts.map +1 -0
  32. package/dist/src/cli.js +174 -0
  33. package/dist/src/cli.js.map +1 -0
  34. package/dist/src/config/ConfigLoader.d.ts +19 -0
  35. package/dist/src/config/ConfigLoader.d.ts.map +1 -0
  36. package/dist/src/config/ConfigLoader.js +84 -0
  37. package/dist/src/config/ConfigLoader.js.map +1 -0
  38. package/dist/src/config/SystemChecker.d.ts +29 -0
  39. package/dist/src/config/SystemChecker.d.ts.map +1 -0
  40. package/dist/src/config/SystemChecker.js +85 -0
  41. package/dist/src/config/SystemChecker.js.map +1 -0
  42. package/dist/src/config/defaults.d.ts +17 -0
  43. package/dist/src/config/defaults.d.ts.map +1 -0
  44. package/dist/src/config/defaults.js +37 -0
  45. package/dist/src/config/defaults.js.map +1 -0
  46. package/dist/src/engine/LocalRuntime.d.ts +41 -0
  47. package/dist/src/engine/LocalRuntime.d.ts.map +1 -0
  48. package/dist/src/engine/LocalRuntime.js +132 -0
  49. package/dist/src/engine/LocalRuntime.js.map +1 -0
  50. package/dist/src/engine/MavenBuilder.d.ts +49 -0
  51. package/dist/src/engine/MavenBuilder.d.ts.map +1 -0
  52. package/dist/src/engine/MavenBuilder.js +126 -0
  53. package/dist/src/engine/MavenBuilder.js.map +1 -0
  54. package/dist/src/engine/PomParser.d.ts +53 -0
  55. package/dist/src/engine/PomParser.d.ts.map +1 -0
  56. package/dist/src/engine/PomParser.js +175 -0
  57. package/dist/src/engine/PomParser.js.map +1 -0
  58. package/dist/src/engine/XmlProcessor.d.ts +47 -0
  59. package/dist/src/engine/XmlProcessor.d.ts.map +1 -0
  60. package/dist/src/engine/XmlProcessor.js +213 -0
  61. package/dist/src/engine/XmlProcessor.js.map +1 -0
  62. package/dist/src/index.d.ts +11 -0
  63. package/dist/src/index.d.ts.map +1 -0
  64. package/dist/src/index.js +13 -0
  65. package/dist/src/index.js.map +1 -0
  66. package/dist/src/types/index.d.ts +209 -0
  67. package/dist/src/types/index.d.ts.map +1 -0
  68. package/dist/src/types/index.js +16 -0
  69. package/dist/src/types/index.js.map +1 -0
  70. package/dist/src/utils/exec.d.ts +20 -0
  71. package/dist/src/utils/exec.d.ts.map +1 -0
  72. package/dist/src/utils/exec.js +57 -0
  73. package/dist/src/utils/exec.js.map +1 -0
  74. package/dist/src/utils/git.d.ts +26 -0
  75. package/dist/src/utils/git.d.ts.map +1 -0
  76. package/dist/src/utils/git.js +71 -0
  77. package/dist/src/utils/git.js.map +1 -0
  78. package/dist/src/utils/logger.d.ts +21 -0
  79. package/dist/src/utils/logger.d.ts.map +1 -0
  80. package/dist/src/utils/logger.js +59 -0
  81. package/dist/src/utils/logger.js.map +1 -0
  82. package/package.json +80 -0
package/README.md ADDED
@@ -0,0 +1,301 @@
1
+ # Mule-Build
2
+
3
+ A type-safe CLI and library for MuleSoft application build automation.
4
+
5
+ [![npm version](https://badge.fury.io/js/mule-build.svg)](https://badge.fury.io/js/mule-build)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ## Features
9
+
10
+ - 🔒 **Safe by Default** - Properties are never modified unless explicitly requested
11
+ - 📦 **Flexible Builds** - Support for normal, local dev, and production builds
12
+ - 🚀 **Local Development** - One command to build and deploy locally
13
+ - 🏷️ **Release Automation** - Semantic versioning and git tagging
14
+ - 🔌 **Dual Interface** - Both CLI and programmatic API (MCP-ready)
15
+ - 📝 **TypeScript** - Full type safety and exported types
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ # Global installation
21
+ npm install -g @sfdxy/mule-build
22
+
23
+ # Local installation
24
+ npm install @sfdxy/mule-build
25
+
26
+ # Or use npx directly
27
+ npx @sfdxy/mule-build --help
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ ```bash
33
+ # Normal build (properties untouched)
34
+ mule-build package
35
+
36
+ # Build with stripped secure:: prefixes for local development
37
+ mule-build package --strip-secure
38
+
39
+ # Build for production (enforces secure:: prefixes)
40
+ mule-build package -e production
41
+
42
+ # Check for unsecured sensitive properties
43
+ mule-build enforce
44
+ ```
45
+
46
+ ## CLI Commands
47
+
48
+ ### `package`
49
+
50
+ Build the MuleSoft application package.
51
+
52
+ ```bash
53
+ mule-build package [options]
54
+
55
+ Options:
56
+ --strip-secure Strip secure:: prefixes for local development (explicit opt-in)
57
+ -e, --env <environment> Target environment: production (enforces secure::)
58
+ -s, --with-source Include source code in package (Studio importable)
59
+ -S, --skip-tests Skip MUnit tests
60
+ --version <version> Override version from pom.xml
61
+ ```
62
+
63
+ **Examples:**
64
+
65
+ ```bash
66
+ # Normal build - properties are NOT modified (safe default)
67
+ mule-build package
68
+
69
+ # Build with secure:: prefixes stripped for local Anypoint Studio
70
+ mule-build package --strip-secure --skip-tests
71
+
72
+ # Production build - validates all sensitive properties have secure::
73
+ mule-build package -e production
74
+ ```
75
+
76
+ ### Build Modes
77
+
78
+ | Command | Behavior | Use Case |
79
+ |---------|----------|----------|
80
+ | `mule-build package` | Normal build, no modifications | General purpose |
81
+ | `mule-build package --strip-secure` | Strips `secure::` prefixes | Local dev / Studio |
82
+ | `mule-build package -e production` | Enforces `secure::` present | CloudHub / RTF |
83
+
84
+ > **Important:** The `--strip-secure` flag is mutually exclusive with `-e production`.
85
+
86
+ ### `run`
87
+
88
+ Build and deploy to local Mule runtime. Automatically strips `secure::` prefixes.
89
+
90
+ ```bash
91
+ mule-build run [options]
92
+
93
+ Options:
94
+ -d, --debug Enable remote debugging on port 5005
95
+ -c, --clean Run mvn clean before building
96
+ ```
97
+
98
+ > **Note:** Requires `MULE_HOME` environment variable to be set.
99
+
100
+ ### `release`
101
+
102
+ Bump version and create a release.
103
+
104
+ ```bash
105
+ mule-build release -b <type> [options]
106
+
107
+ Options:
108
+ -b, --bump <type> Version bump type: major | minor | patch (required)
109
+ --no-tag Skip git tag creation
110
+ --no-push Skip git push
111
+ ```
112
+
113
+ **Examples:**
114
+
115
+ ```bash
116
+ # Minor version bump with tag and push
117
+ mule-build release -b minor
118
+
119
+ # Patch release without pushing
120
+ mule-build release -b patch --no-push
121
+ ```
122
+
123
+ ### `strip`
124
+
125
+ Strip `secure::` prefixes from XML files. Use this for manual stripping.
126
+
127
+ ```bash
128
+ mule-build strip [options]
129
+
130
+ Options:
131
+ -f, --file <path> Process single file
132
+ -d, --dir <path> Process all XML files in directory (default: src/main/mule)
133
+ --dry-run Show changes without modifying files
134
+ ```
135
+
136
+ This transforms:
137
+ - `${secure::db.password}` → `${db.password}`
138
+ - `Mule::p('secure::api.key')` → `Mule::p('api.key')`
139
+
140
+ ### `enforce`
141
+
142
+ Check for unsecured sensitive properties.
143
+
144
+ ```bash
145
+ mule-build enforce [options]
146
+
147
+ Options:
148
+ -f, --file <path> Check single file
149
+ -d, --dir <path> Check all XML files in directory (default: src/main/mule)
150
+ ```
151
+
152
+ ## Programmatic API
153
+
154
+ All commands are available as typed async functions:
155
+
156
+ ```typescript
157
+ import { packageProject, stripSecure, enforceSecure, releaseVersion } from 'mule-build';
158
+
159
+ // Normal build (no property modifications)
160
+ const result = await packageProject({
161
+ skipTests: true,
162
+ });
163
+
164
+ // Build with stripped secure:: prefixes
165
+ const localResult = await packageProject({
166
+ stripSecure: true,
167
+ withSource: true,
168
+ });
169
+
170
+ // Production build with enforcement
171
+ const prodResult = await packageProject({
172
+ environment: 'production',
173
+ });
174
+
175
+ if (result.success) {
176
+ console.log(`Built: ${result.data.jarPath}`);
177
+ }
178
+
179
+ // Strip secure prefixes manually
180
+ const stripResult = await stripSecure({
181
+ directory: 'src/main/mule',
182
+ dryRun: true,
183
+ });
184
+
185
+ // Enforce security
186
+ const enforceResult = await enforceSecure({
187
+ directory: 'src/main/mule',
188
+ });
189
+
190
+ if (!enforceResult.data.valid) {
191
+ console.error('Violations:', enforceResult.data.violations);
192
+ }
193
+ ```
194
+
195
+ ## Configuration
196
+
197
+ Create an optional `mule-build.yaml` in your project root:
198
+
199
+ ```yaml
200
+ project:
201
+ name: "my-api" # Optional, defaults to pom.xml name
202
+
203
+ profiles:
204
+ production:
205
+ description: "CI/CD Artifacts"
206
+ mavenProfile: "prod"
207
+ secureProperties: "enforce"
208
+ includeSource: false
209
+ enforceGitClean: true
210
+ ```
211
+
212
+ ### Default Behavior
213
+
214
+ Without a config file, sensible defaults are used:
215
+
216
+ | Command | Maven Profile | Secure Props | Include Source |
217
+ |---------|---------------|--------------|----------------|
218
+ | `package` | none | unchanged | false |
219
+ | `package --strip-secure` | none | stripped | false |
220
+ | `package -e production` | prod | enforced | false |
221
+
222
+ ## TypeScript Support
223
+
224
+ All types are exported:
225
+
226
+ ```typescript
227
+ import type {
228
+ PackageOptions,
229
+ PackageResult,
230
+ StripOptions,
231
+ StripResult,
232
+ EnforceOptions,
233
+ EnforceResult,
234
+ ReleaseOptions,
235
+ ReleaseResult,
236
+ Result,
237
+ BuildEnvironment,
238
+ BumpType,
239
+ } from 'mule-build';
240
+ ```
241
+
242
+ ## Requirements
243
+
244
+ - Node.js >= 18
245
+ - Maven (for build operations)
246
+ - Git (for release operations)
247
+ - MULE_HOME environment variable (for run command)
248
+
249
+ ## Development
250
+
251
+ ```bash
252
+ # Install dependencies
253
+ npm install
254
+
255
+ # Build
256
+ npm run build
257
+
258
+ # Run tests
259
+ npm test
260
+
261
+ # Lint
262
+ npm run lint
263
+
264
+ # Format
265
+ npm run format
266
+ ```
267
+
268
+ ## Architecture
269
+
270
+ ```
271
+ mule-build/
272
+ ├── src/
273
+ │ ├── index.ts # Package exports
274
+ │ ├── cli.ts # CLI implementation
275
+ │ ├── api/ # Public API functions
276
+ │ ├── engine/ # Core logic
277
+ │ ├── config/ # Configuration
278
+ │ ├── types/ # TypeScript types
279
+ │ └── utils/ # Utilities
280
+ ├── test/ # Tests and fixtures
281
+ └── docs/ # Documentation
282
+ ```
283
+
284
+ See [docs/design.md](docs/design.md) for detailed technical documentation.
285
+
286
+ ## Migration from Bash Script
287
+
288
+ | Bash Script | CLI Equivalent |
289
+ |------------|----------------|
290
+ | `./build.sh sandbox` | `mule-build package --strip-secure` |
291
+ | `./build.sh production` | `mule-build package -e production` |
292
+
293
+ ## License
294
+
295
+ MIT
296
+
297
+ ---
298
+
299
+ <p align="center">
300
+ <sub>Built with 🚀 <a href="https://github.com/google-deepmind/antigravity">Antigravity</a></sub>
301
+ </p>
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Mule-Build CLI Entry Point
4
+ *
5
+ * This file is the entry point for the `npx mule-build` command.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=mule-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mule-build.d.ts","sourceRoot":"","sources":["../../bin/mule-build.ts"],"names":[],"mappings":";AAEA;;;;GAIG"}
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Mule-Build CLI Entry Point
4
+ *
5
+ * This file is the entry point for the `npx mule-build` command.
6
+ */
7
+ import { run } from '../src/cli.js';
8
+ run().catch((error) => {
9
+ console.error(`Fatal error: ${error.message}`);
10
+ process.exit(1);
11
+ });
12
+ //# sourceMappingURL=mule-build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mule-build.js","sourceRoot":"","sources":["../../bin/mule-build.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAClB,OAAO,CAAC,KAAK,CAAC,gBAAgB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Enforce API
3
+ *
4
+ * Programmatic interface for validating secure:: enforcement.
5
+ */
6
+ import { Result, EnforceOptions, EnforceResult } from '../types/index.js';
7
+ /**
8
+ * Check files for unsecured sensitive properties
9
+ */
10
+ export declare function enforceSecure(options?: EnforceOptions): Promise<Result<EnforceResult>>;
11
+ //# sourceMappingURL=enforce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enforce.d.ts","sourceRoot":"","sources":["../../../src/api/enforce.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,MAAM,EAAW,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAInF;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAgDhG"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Enforce API
3
+ *
4
+ * Programmatic interface for validating secure:: enforcement.
5
+ */
6
+ import { join } from 'path';
7
+ import { existsSync } from 'fs';
8
+ import { ok, err } from '../types/index.js';
9
+ import { enforceSecure as enforceSecureEngine } from '../engine/XmlProcessor.js';
10
+ import { logger } from '../utils/logger.js';
11
+ /**
12
+ * Check files for unsecured sensitive properties
13
+ */
14
+ export async function enforceSecure(options = {}) {
15
+ const cwd = options.cwd ?? process.cwd();
16
+ // Determine target
17
+ let target;
18
+ if (options.file) {
19
+ target = options.file.startsWith('/') ? options.file : join(cwd, options.file);
20
+ if (!existsSync(target)) {
21
+ return err(new Error(`File not found: ${target}`));
22
+ }
23
+ }
24
+ else if (options.directory) {
25
+ target = options.directory.startsWith('/') ? options.directory : join(cwd, options.directory);
26
+ if (!existsSync(target)) {
27
+ return err(new Error(`Directory not found: ${target}`));
28
+ }
29
+ }
30
+ else {
31
+ // Default to src/main/mule
32
+ target = join(cwd, 'src', 'main', 'mule');
33
+ if (!existsSync(target)) {
34
+ return err(new Error(`Default directory not found: ${target}`));
35
+ }
36
+ }
37
+ const result = await enforceSecureEngine(target, {
38
+ sensitivePatterns: options.sensitivePatterns,
39
+ cwd,
40
+ });
41
+ if (!result.success || !result.data) {
42
+ return err(result.error ?? new Error('Enforce operation failed'));
43
+ }
44
+ const data = result.data;
45
+ logger.info(`Checked ${data.filesChecked.length} files`);
46
+ if (data.valid) {
47
+ logger.success('All sensitive properties are properly secured');
48
+ }
49
+ else {
50
+ logger.error(`Found ${data.violations.length} unsecured sensitive properties:`);
51
+ for (const v of data.violations) {
52
+ logger.error(` ${v.file}:${v.line} - ${v.value}`);
53
+ logger.info(` Suggestion: ${v.suggestion}`);
54
+ }
55
+ }
56
+ return ok(data);
57
+ }
58
+ //# sourceMappingURL=enforce.js.map
@@ -0,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AAU,EAAE,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;AAClB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Public API Exports
3
+ *
4
+ * All programmatic functions for MCP and direct library usage.
5
+ */
6
+ export { packageProject } from './package.js';
7
+ export { runLocal } from './run.js';
8
+ export { releaseVersion } from './release.js';
9
+ export { stripSecure } from './strip.js';
10
+ export { enforceSecure } from './enforce.js';
11
+ export type { PackageOptions, PackageResult, RunOptions, RunResult, ReleaseOptions, ReleaseResult, StripOptions, StripResult, EnforceOptions, EnforceResult, DeploymentInfo, BuildEnvironment, BumpType, } from '../types/index.js';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,YAAY,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACT,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Public API Exports
3
+ *
4
+ * All programmatic functions for MCP and direct library usage.
5
+ */
6
+ // API Functions
7
+ export { packageProject } from './package.js';
8
+ export { runLocal } from './run.js';
9
+ export { releaseVersion } from './release.js';
10
+ export { stripSecure } from './strip.js';
11
+ export { enforceSecure } from './enforce.js';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,gBAAgB;AAChB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Package API
3
+ *
4
+ * Programmatic interface for building MuleSoft projects.
5
+ */
6
+ import { Result, PackageOptions, PackageResult } from '../types/index.js';
7
+ /**
8
+ * Build a MuleSoft project package
9
+ *
10
+ * By default, builds without modifying any files.
11
+ * Use `stripSecure: true` to strip secure:: prefixes for local development.
12
+ * Use `environment: 'production'` to enforce secure:: prefixes.
13
+ */
14
+ export declare function packageProject(options?: PackageOptions): Promise<Result<PackageResult>>;
15
+ //# sourceMappingURL=package.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../../src/api/package.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAAE,MAAM,EAAW,cAAc,EAAE,aAAa,EAAkB,MAAM,mBAAmB,CAAC;AAuEnG;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CA6MjG"}