pipecraft 0.29.2 → 0.36.2
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 +98 -34
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +66 -24
- package/dist/cli/index.js.map +1 -1
- package/dist/generators/init.tpl.d.ts +4 -4
- package/dist/generators/init.tpl.d.ts.map +1 -1
- package/dist/generators/init.tpl.js +369 -79
- package/dist/generators/init.tpl.js.map +1 -1
- package/dist/generators/workflows.tpl.d.ts +9 -9
- package/dist/generators/workflows.tpl.d.ts.map +1 -1
- package/dist/generators/workflows.tpl.js +33 -24
- package/dist/generators/workflows.tpl.js.map +1 -1
- package/dist/templates/actions/calculate-version.yml.tpl.d.ts +7 -4
- package/dist/templates/actions/calculate-version.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/calculate-version.yml.tpl.js +16 -9
- package/dist/templates/actions/calculate-version.yml.tpl.js.map +1 -1
- package/dist/templates/actions/create-pr.yml.tpl.d.ts +5 -2
- package/dist/templates/actions/create-pr.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/create-pr.yml.tpl.js +9 -6
- package/dist/templates/actions/create-pr.yml.tpl.js.map +1 -1
- package/dist/templates/actions/create-release.yml.tpl.d.ts +5 -2
- package/dist/templates/actions/create-release.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/create-release.yml.tpl.js +9 -6
- package/dist/templates/actions/create-release.yml.tpl.js.map +1 -1
- package/dist/templates/actions/create-tag.yml.tpl.d.ts +5 -2
- package/dist/templates/actions/create-tag.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/create-tag.yml.tpl.js +9 -6
- package/dist/templates/actions/create-tag.yml.tpl.js.map +1 -1
- package/dist/templates/actions/detect-changes.yml.tpl.d.ts +24 -52
- package/dist/templates/actions/detect-changes.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/detect-changes.yml.tpl.js +281 -108
- package/dist/templates/actions/detect-changes.yml.tpl.js.map +1 -1
- package/dist/templates/actions/manage-branch.yml.tpl.d.ts +5 -2
- package/dist/templates/actions/manage-branch.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/manage-branch.yml.tpl.js +9 -6
- package/dist/templates/actions/manage-branch.yml.tpl.js.map +1 -1
- package/dist/templates/actions/promote-branch.yml.tpl.d.ts +5 -2
- package/dist/templates/actions/promote-branch.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/promote-branch.yml.tpl.js +27 -76
- package/dist/templates/actions/promote-branch.yml.tpl.js.map +1 -1
- package/dist/templates/actions/run-nx-affected.yml.tpl.d.ts +33 -0
- package/dist/templates/actions/run-nx-affected.yml.tpl.d.ts.map +1 -0
- package/dist/templates/actions/run-nx-affected.yml.tpl.js +346 -0
- package/dist/templates/actions/run-nx-affected.yml.tpl.js.map +1 -0
- package/dist/templates/release-it.cjs.tpl.d.ts +1 -1
- package/dist/templates/release-it.cjs.tpl.d.ts.map +1 -1
- package/dist/templates/release-it.cjs.tpl.js +24 -26
- package/dist/templates/release-it.cjs.tpl.js.map +1 -1
- package/dist/templates/workflows/enforce-pr-target.yml.tpl.d.ts +1 -1
- package/dist/templates/workflows/enforce-pr-target.yml.tpl.d.ts.map +1 -1
- package/dist/templates/workflows/enforce-pr-target.yml.tpl.js +2 -3
- package/dist/templates/workflows/enforce-pr-target.yml.tpl.js.map +1 -1
- package/dist/templates/workflows/pipeline-nx.yml.tpl.d.ts +2 -2
- package/dist/templates/workflows/pipeline-nx.yml.tpl.d.ts.map +1 -1
- package/dist/templates/workflows/pipeline-nx.yml.tpl.js +300 -93
- package/dist/templates/workflows/pipeline-nx.yml.tpl.js.map +1 -1
- package/dist/templates/workflows/pipeline.yml.tpl.d.ts +2 -2
- package/dist/templates/workflows/pipeline.yml.tpl.d.ts.map +1 -1
- package/dist/templates/workflows/pipeline.yml.tpl.js +347 -74
- package/dist/templates/workflows/pipeline.yml.tpl.js.map +1 -1
- package/dist/templates/workflows/pr-title-check.yml.tpl.d.ts +1 -1
- package/dist/templates/workflows/pr-title-check.yml.tpl.d.ts.map +1 -1
- package/dist/templates/workflows/pr-title-check.yml.tpl.js +101 -22
- package/dist/templates/workflows/pr-title-check.yml.tpl.js.map +1 -1
- package/dist/templates/workflows/shared/index.d.ts +3 -2
- package/dist/templates/workflows/shared/index.d.ts.map +1 -1
- package/dist/templates/workflows/shared/index.js +3 -2
- package/dist/templates/workflows/shared/index.js.map +1 -1
- package/dist/templates/workflows/shared/operations-changes.d.ts +13 -2
- package/dist/templates/workflows/shared/operations-changes.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-changes.js +47 -16
- package/dist/templates/workflows/shared/operations-changes.js.map +1 -1
- package/dist/templates/workflows/shared/operations-domain-jobs.d.ts +18 -1
- package/dist/templates/workflows/shared/operations-domain-jobs.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-domain-jobs.js +143 -19
- package/dist/templates/workflows/shared/operations-domain-jobs.js.map +1 -1
- package/dist/templates/workflows/shared/operations-gate.d.ts +32 -0
- package/dist/templates/workflows/shared/operations-gate.d.ts.map +1 -0
- package/dist/templates/workflows/shared/operations-gate.js +77 -0
- package/dist/templates/workflows/shared/operations-gate.js.map +1 -0
- package/dist/templates/workflows/shared/operations-header.d.ts +1 -1
- package/dist/templates/workflows/shared/operations-header.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-header.js +46 -6
- package/dist/templates/workflows/shared/operations-header.js.map +1 -1
- package/dist/templates/workflows/shared/operations-tag-promote.d.ts +5 -1
- package/dist/templates/workflows/shared/operations-tag-promote.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-tag-promote.js +138 -31
- package/dist/templates/workflows/shared/operations-tag-promote.js.map +1 -1
- package/dist/templates/workflows/shared/operations-version.d.ts +3 -1
- package/dist/templates/workflows/shared/operations-version.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-version.js +18 -10
- package/dist/templates/workflows/shared/operations-version.js.map +1 -1
- package/dist/templates/yaml-format-utils.d.ts.map +1 -1
- package/dist/templates/yaml-format-utils.js.map +1 -1
- package/dist/types/index.d.ts +57 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/action-reference.d.ts +73 -0
- package/dist/utils/action-reference.d.ts.map +1 -0
- package/dist/utils/action-reference.js +120 -0
- package/dist/utils/action-reference.js.map +1 -0
- package/dist/utils/ast-path-operations.d.ts +3 -3
- package/dist/utils/ast-path-operations.d.ts.map +1 -1
- package/dist/utils/ast-path-operations.js +58 -17
- package/dist/utils/ast-path-operations.js.map +1 -1
- package/dist/utils/config.d.ts +11 -5
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +33 -8
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/github-setup.d.ts +4 -4
- package/dist/utils/github-setup.d.ts.map +1 -1
- package/dist/utils/github-setup.js +57 -36
- package/dist/utils/github-setup.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/messaging.d.ts.map +1 -1
- package/dist/utils/messaging.js +7 -3
- package/dist/utils/messaging.js.map +1 -1
- package/dist/utils/preflight.d.ts +2 -2
- package/dist/utils/preflight.d.ts.map +1 -1
- package/dist/utils/preflight.js +43 -41
- package/dist/utils/preflight.js.map +1 -1
- package/dist/utils/versioning.d.ts +1 -1
- package/dist/utils/versioning.d.ts.map +1 -1
- package/dist/utils/versioning.js +10 -10
- package/dist/utils/versioning.js.map +1 -1
- package/package.json +11 -4
- package/src/generators/init.tpl.ts +434 -96
- package/src/generators/workflows.tpl.ts +54 -45
- package/dist/templates/actions/detect-changes-nx.yml.tpl.d.ts +0 -32
- package/dist/templates/actions/detect-changes-nx.yml.tpl.d.ts.map +0 -1
- package/dist/templates/actions/detect-changes-nx.yml.tpl.js +0 -227
- package/dist/templates/actions/detect-changes-nx.yml.tpl.js.map +0 -1
- package/dist/utils/idempotency.d.ts +0 -187
- package/dist/utils/idempotency.d.ts.map +0 -1
- package/dist/utils/idempotency.js +0 -304
- package/dist/utils/idempotency.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<img src="https://raw.githubusercontent.com/
|
|
1
|
+
<img src="https://raw.githubusercontent.com/pipecraft-lab/pipecraft/main/assets/logo_banner.png" alt="PipeCraft Logo" width="auto">
|
|
2
2
|
|
|
3
3
|
# PipeCraft
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/pipecraft)
|
|
6
6
|
[](https://www.npmjs.com/package/pipecraft)
|
|
7
|
-
[](https://github.com/
|
|
7
|
+
[](https://github.com/pipecraft-lab/pipecraft/blob/main/LICENSE)
|
|
8
8
|
[](https://nodejs.org/en/)
|
|
9
9
|
[](https://pipecraft.thecraftlab.dev)
|
|
10
|
-
[](https://codecov.io/gh/pipecraft-lab/pipecraft)
|
|
11
|
+
[](https://github.com/pipecraft-lab/pipecraft/issues)
|
|
12
|
+
[](https://github.com/pipecraft-lab/pipecraft/stargazers)
|
|
13
13
|
[](CODE_OF_CONDUCT.md)
|
|
14
14
|
|
|
15
15
|
**Pipeline Status:**
|
|
16
|
-
[](https://github.com/pipecraft-lab/pipecraft/actions/workflows/pipeline.yml?query=branch%3Adevelop)
|
|
17
|
+
[](https://github.com/pipecraft-lab/pipecraft/actions/workflows/pipeline.yml?query=branch%3Astaging)
|
|
18
|
+
[](https://github.com/pipecraft-lab/pipecraft/actions/workflows/pipeline.yml?query=branch%3Amain)
|
|
19
19
|
|
|
20
20
|
Skip the debugging cycles. Generate battle-tested CI/CD workflows into your repository with best practices built in. Fully customizable, completely yours.
|
|
21
21
|
|
|
@@ -47,41 +47,52 @@ Get a working pipeline in three commands:
|
|
|
47
47
|
# Initialize PipeCraft in your project
|
|
48
48
|
npx pipecraft init
|
|
49
49
|
|
|
50
|
-
# Edit the generated .pipecraftrc
|
|
50
|
+
# Edit the generated .pipecraftrc to customize:
|
|
51
51
|
# - Branch names (branchFlow, initialBranch, finalBranch)
|
|
52
52
|
# - Domain paths and configurations
|
|
53
53
|
# - CI provider and merge strategy
|
|
54
|
+
# (Supports .pipecraftrc, .json, .yml, .yaml, or .js formats)
|
|
54
55
|
|
|
55
56
|
# Generate your CI/CD workflows
|
|
56
57
|
npx pipecraft generate
|
|
57
58
|
|
|
58
59
|
# Commit the generated files
|
|
59
|
-
git add .github/workflows .pipecraftrc
|
|
60
|
+
git add .github/workflows .github/actions .pipecraftrc
|
|
60
61
|
git commit -m "chore: add PipeCraft workflows"
|
|
61
62
|
git push
|
|
62
63
|
```
|
|
63
64
|
|
|
64
|
-
That's it.
|
|
65
|
+
That's it. You now have a structured CI/CD workflow with change detection. Add your test commands to the generated jobs.
|
|
65
66
|
|
|
66
67
|
## Key Features
|
|
67
68
|
|
|
68
|
-
**Smart change detection**
|
|
69
|
+
**Smart change detection** - PipeCraft generates workflows that detect which parts of your monorepo changed. The `changes` job outputs domain flags (`api: true`, `web: false`) that you use in conditional job execution. You write the test commands—PipeCraft handles running them only when needed.
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
```yaml
|
|
72
|
+
test-api:
|
|
73
|
+
needs: changes
|
|
74
|
+
if: ${{ needs.changes.outputs.api == 'true' }} # Only runs when API changed
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
steps:
|
|
77
|
+
# You add your test commands here:
|
|
78
|
+
- run: npm run test:api
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Semantic versioning scaffolding** - PipeCraft generates a `version` job that reads conventional commits and calculates version numbers. You get the version as an output to use in your deployment jobs. Tag creation and branch promotion workflows are generated—you add the deployment commands.
|
|
71
82
|
|
|
72
|
-
**
|
|
83
|
+
**Branch promotion structure** - PipeCraft generates `tag`, `promote`, and `release` jobs that run after your tests pass. These jobs handle git operations (creating tags, merging branches, creating releases). You add deploy steps to run when code reaches each branch.
|
|
73
84
|
|
|
74
|
-
**Safe workflow regeneration** preserves your
|
|
85
|
+
**Safe workflow regeneration** - PipeCraft preserves your custom jobs when you regenerate. The generated workflow has clearly marked sections (`<--START CUSTOM JOBS-->` / `<--END CUSTOM JOBS-->`) where your test, deploy, and custom logic lives. Regeneration updates the managed sections (changes detection, version calculation, tag/promote jobs) while keeping your customizations intact.
|
|
75
86
|
|
|
76
|
-
**
|
|
87
|
+
**Change detection works with both strategies** - For standard repos, PipeCraft uses path-based detection (you define glob patterns per domain). For Nx monorepos, it automatically uses Nx's dependency graph for precise change detection. Either way, you get domain-based conditional job execution.
|
|
77
88
|
|
|
78
89
|
## When to Use PipeCraft
|
|
79
90
|
|
|
80
|
-
**You're managing a monorepo** with multiple applications or services.
|
|
91
|
+
**You're managing a monorepo** with multiple applications or services. PipeCraft gives you the scaffolding for domain-based testing—change detection, conditional job execution, and the workflow structure. You add your actual test commands.
|
|
81
92
|
|
|
82
|
-
**You want
|
|
93
|
+
**You want a structured trunk-based workflow** with version calculation, tagging, and branch promotions. PipeCraft generates the git operations and flow control. You add your deployment steps at each stage.
|
|
83
94
|
|
|
84
|
-
**You
|
|
95
|
+
**You need smart change detection** that understands your monorepo structure. PipeCraft provides path-based detection (or Nx graph integration) so you can run `if: ${{ needs.changes.outputs.api == 'true' }}` in your jobs and test only what changed.
|
|
85
96
|
|
|
86
97
|
## Installation
|
|
87
98
|
|
|
@@ -148,23 +159,75 @@ Create a `.pipecraftrc.json` configuration describing your project:
|
|
|
148
159
|
}
|
|
149
160
|
```
|
|
150
161
|
|
|
151
|
-
Run `pipecraft generate` and you get
|
|
152
|
-
|
|
153
|
-
- Change detection
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
|
|
162
|
+
Run `pipecraft generate` and you get workflow scaffolding with:
|
|
163
|
+
|
|
164
|
+
- **Change detection job** - Outputs `api: true/false` and `web: true/false` based on what changed
|
|
165
|
+
- **Conditional test job structure** - `test-api` and `test-web` jobs with `if:` conditions, ready for your test commands
|
|
166
|
+
- **Version calculation job** - Reads conventional commits, outputs semantic version
|
|
167
|
+
- **Tag/promote/release jobs** - Handle git operations after tests pass
|
|
168
|
+
|
|
169
|
+
**What you add**:
|
|
170
|
+
|
|
171
|
+
- Test commands in each `test-*` job (e.g., `npm run test:api`)
|
|
172
|
+
- Deploy commands in custom jobs for each branch (staging deploy, production deploy)
|
|
173
|
+
- Remote test commands if you need post-deployment testing
|
|
174
|
+
|
|
175
|
+
**Example of what a generated test job looks like**:
|
|
176
|
+
|
|
177
|
+
```yaml
|
|
178
|
+
test-api:
|
|
179
|
+
needs: [changes, version]
|
|
180
|
+
if: ${{ needs.changes.outputs.api == 'true' }}
|
|
181
|
+
runs-on: ubuntu-latest
|
|
182
|
+
steps:
|
|
183
|
+
- uses: actions/checkout@v4
|
|
184
|
+
# <--START CUSTOM TEST STEPS-->
|
|
185
|
+
# Add your test commands here:
|
|
186
|
+
# - run: npm install
|
|
187
|
+
# - run: npm run test:api
|
|
188
|
+
# <--END CUSTOM TEST STEPS-->
|
|
189
|
+
```
|
|
158
190
|
|
|
159
|
-
|
|
191
|
+
You fill in the custom sections with your actual test logic.
|
|
160
192
|
|
|
161
193
|
## What Gets Generated
|
|
162
194
|
|
|
163
|
-
|
|
195
|
+
**Managed sections** (PipeCraft controls these):
|
|
196
|
+
|
|
197
|
+
- `changes` job - Detects which domains changed using path patterns or Nx graph
|
|
198
|
+
- `version` job - Calculates semantic version from conventional commits
|
|
199
|
+
- `tag` job - Creates git tags for new versions
|
|
200
|
+
- `promote` job - Merges code through your branch flow (develop → staging → main)
|
|
201
|
+
- `release` job - Creates GitHub releases
|
|
202
|
+
- Domain test job structure with conditional execution
|
|
203
|
+
|
|
204
|
+
**Custom sections** (you control these):
|
|
164
205
|
|
|
165
|
-
|
|
206
|
+
- Test commands inside each `test-*` job
|
|
207
|
+
- Deploy jobs for each environment (staging-deploy, production-deploy)
|
|
208
|
+
- Remote test jobs for post-deployment testing
|
|
209
|
+
- Any additional jobs you need (e.g., security scanning, notifications)
|
|
210
|
+
|
|
211
|
+
**Example workflow structure**:
|
|
212
|
+
|
|
213
|
+
```yaml
|
|
214
|
+
changes: # Managed - detects what changed
|
|
215
|
+
version: # Managed - calculates version
|
|
216
|
+
test-api: # Managed structure, you add test commands
|
|
217
|
+
test-web: # Managed structure, you add test commands
|
|
218
|
+
|
|
219
|
+
# <--START CUSTOM JOBS-->
|
|
220
|
+
deploy-staging: # You create this
|
|
221
|
+
remote-test-api: # You create this
|
|
222
|
+
deploy-prod: # You create this
|
|
223
|
+
# <--END CUSTOM JOBS-->
|
|
224
|
+
|
|
225
|
+
tag: # Managed - creates git tags
|
|
226
|
+
promote: # Managed - merges branches
|
|
227
|
+
release: # Managed - creates GitHub release
|
|
228
|
+
```
|
|
166
229
|
|
|
167
|
-
See the [Getting Started guide](https://pipecraft.thecraftlab.dev/docs/intro) for a complete walkthrough
|
|
230
|
+
Regeneration preserves everything in custom sections. See the [Getting Started guide](https://pipecraft.thecraftlab.dev/docs/intro) for a complete walkthrough.
|
|
168
231
|
|
|
169
232
|
## Next Steps
|
|
170
233
|
|
|
@@ -182,9 +245,9 @@ See the [Getting Started guide](https://pipecraft.thecraftlab.dev/docs/intro) fo
|
|
|
182
245
|
|
|
183
246
|
If you encounter issues, the [Troubleshooting guide](https://pipecraft.thecraftlab.dev/docs/troubleshooting) covers common problems with detailed solutions.
|
|
184
247
|
|
|
185
|
-
For questions and discussions, visit [GitHub Discussions](https://github.com/
|
|
248
|
+
For questions and discussions, visit [GitHub Discussions](https://github.com/pipecraft-lab/pipecraft/discussions).
|
|
186
249
|
|
|
187
|
-
To report bugs or request features, open an issue on [GitHub Issues](https://github.com/
|
|
250
|
+
To report bugs or request features, open an issue on [GitHub Issues](https://github.com/pipecraft-lab/pipecraft/issues).
|
|
188
251
|
|
|
189
252
|
## Contributing
|
|
190
253
|
|
|
@@ -198,7 +261,7 @@ We welcome contributions! See the [Contributing guide](https://pipecraft.thecraf
|
|
|
198
261
|
Quick development setup:
|
|
199
262
|
|
|
200
263
|
```bash
|
|
201
|
-
git clone https://github.com/
|
|
264
|
+
git clone https://github.com/pipecraft-lab/pipecraft.git
|
|
202
265
|
cd pipecraft
|
|
203
266
|
npm install
|
|
204
267
|
npm test
|
|
@@ -214,6 +277,7 @@ MIT License - see the [LICENSE](LICENSE) file for details.
|
|
|
214
277
|
|
|
215
278
|
**Built with ❤️ for trunk-based development teams**
|
|
216
279
|
|
|
217
|
-
[Documentation](https://pipecraft.thecraftlab.dev) · [Report Bug](https://github.com/
|
|
280
|
+
[Documentation](https://pipecraft.thecraftlab.dev) · [Report Bug](https://github.com/pipecraft-lab/pipecraft/issues) · [Request Feature](https://github.com/pipecraft-lab/pipecraft/issues)
|
|
218
281
|
|
|
219
282
|
</div>
|
|
283
|
+
# Testing change detection
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* ## Command Overview
|
|
16
16
|
*
|
|
17
17
|
* ### init
|
|
18
|
-
* Creates .pipecraftrc
|
|
18
|
+
* Creates .pipecraftrc configuration file with project settings.
|
|
19
19
|
* Can run interactively or accept flags for automation.
|
|
20
20
|
*
|
|
21
21
|
* ### generate
|
|
22
22
|
* Generates GitHub Actions workflows based on configuration:
|
|
23
23
|
* - Main pipeline workflow (.github/workflows/pipeline.yml)
|
|
24
|
-
* - Reusable actions (
|
|
24
|
+
* - Reusable actions (actions/*)
|
|
25
25
|
* - Idempotent regeneration (only when config/templates change)
|
|
26
26
|
*
|
|
27
27
|
* ### validate
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* - Auto-merge settings
|
|
38
38
|
*
|
|
39
39
|
* ## Global Options
|
|
40
|
-
* - `-c, --config <path>`: Path to config file (default: .pipecraftrc
|
|
40
|
+
* - `-c, --config <path>`: Path to config file (default: .pipecraftrc)
|
|
41
41
|
* - `-v, --verbose`: Verbose output
|
|
42
42
|
* - `--debug`: Debug output (maximum detail)
|
|
43
43
|
* - `--force`: Force regeneration even if unchanged
|
package/dist/cli/index.js
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* ## Command Overview
|
|
16
16
|
*
|
|
17
17
|
* ### init
|
|
18
|
-
* Creates .pipecraftrc
|
|
18
|
+
* Creates .pipecraftrc configuration file with project settings.
|
|
19
19
|
* Can run interactively or accept flags for automation.
|
|
20
20
|
*
|
|
21
21
|
* ### generate
|
|
22
22
|
* Generates GitHub Actions workflows based on configuration:
|
|
23
23
|
* - Main pipeline workflow (.github/workflows/pipeline.yml)
|
|
24
|
-
* - Reusable actions (
|
|
24
|
+
* - Reusable actions (actions/*)
|
|
25
25
|
* - Idempotent regeneration (only when config/templates change)
|
|
26
26
|
*
|
|
27
27
|
* ### validate
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* - Auto-merge settings
|
|
38
38
|
*
|
|
39
39
|
* ## Global Options
|
|
40
|
-
* - `-c, --config <path>`: Path to config file (default: .pipecraftrc
|
|
40
|
+
* - `-c, --config <path>`: Path to config file (default: .pipecraftrc)
|
|
41
41
|
* - `-v, --verbose`: Verbose output
|
|
42
42
|
* - `--debug`: Debug output (maximum detail)
|
|
43
43
|
* - `--force`: Force regeneration even if unchanged
|
|
@@ -68,19 +68,17 @@
|
|
|
68
68
|
*
|
|
69
69
|
* @module cli
|
|
70
70
|
*/
|
|
71
|
+
import { prompt, runModule } from '@featherscloud/pinion';
|
|
71
72
|
import { Command } from 'commander';
|
|
72
73
|
import { cosmiconfigSync } from 'cosmiconfig';
|
|
73
|
-
import {
|
|
74
|
-
import { join } from 'path';
|
|
74
|
+
import { readFileSync } from 'fs';
|
|
75
|
+
import { dirname, join } from 'path';
|
|
75
76
|
import { fileURLToPath } from 'url';
|
|
76
|
-
import { dirname } from 'path';
|
|
77
|
-
import { IdempotencyManager } from '../utils/idempotency.js';
|
|
78
|
-
import { VersionManager } from '../utils/versioning.js';
|
|
79
77
|
import { loadConfig, validateConfig } from '../utils/config.js';
|
|
80
78
|
import { setupGitHubPermissions } from '../utils/github-setup.js';
|
|
81
|
-
import { runPreflightChecks, formatPreflightResults } from '../utils/preflight.js';
|
|
82
79
|
import { logger } from '../utils/logger.js';
|
|
83
|
-
import {
|
|
80
|
+
import { formatPreflightResults, runPreflightChecks } from '../utils/preflight.js';
|
|
81
|
+
import { VersionManager } from '../utils/versioning.js';
|
|
84
82
|
const __filename = fileURLToPath(import.meta.url);
|
|
85
83
|
const __dirname = dirname(__filename);
|
|
86
84
|
// Read version from package.json
|
|
@@ -94,7 +92,7 @@ program
|
|
|
94
92
|
.version(version);
|
|
95
93
|
// Global options
|
|
96
94
|
program
|
|
97
|
-
.option('-c, --config <path>', 'path to config file', '.pipecraftrc
|
|
95
|
+
.option('-c, --config <path>', 'path to config file', '.pipecraftrc')
|
|
98
96
|
.option('-p, --pipeline <path>', 'path to existing pipeline file for merging', '.github/workflows/pipeline.yml')
|
|
99
97
|
.option('-o, --output-pipeline <path>', 'path to output pipeline file (for testing)', '.github/workflows/pipeline.yml')
|
|
100
98
|
.option('-v, --verbose', 'verbose output')
|
|
@@ -155,7 +153,7 @@ program
|
|
|
155
153
|
.command('generate')
|
|
156
154
|
.description('Generate CI/CD workflows from configuration')
|
|
157
155
|
.option('-o, --output <path>', 'output directory for generated workflows', '.github/workflows')
|
|
158
|
-
.option('--skip-unchanged',
|
|
156
|
+
.option('--skip-unchanged', "skip files that haven't changed")
|
|
159
157
|
.option('--skip-checks', 'skip pre-flight checks (not recommended)')
|
|
160
158
|
.action(async (options) => {
|
|
161
159
|
try {
|
|
@@ -185,6 +183,7 @@ program
|
|
|
185
183
|
logger.info('✅ All pre-flight checks passed!');
|
|
186
184
|
// Store next steps for later display (after successful generation)
|
|
187
185
|
if (nextSteps) {
|
|
186
|
+
;
|
|
188
187
|
options._nextSteps = nextSteps;
|
|
189
188
|
}
|
|
190
189
|
logger.info('');
|
|
@@ -193,19 +192,17 @@ program
|
|
|
193
192
|
logger.verbose(`📖 Reading pipeline from: ${pipelinePath}`);
|
|
194
193
|
// Load configuration
|
|
195
194
|
const config = loadConfig(configPath);
|
|
196
|
-
// Check idempotency if not forcing
|
|
197
|
-
if (!globalOptions.force && !globalOptions.dryRun) {
|
|
198
|
-
const idempotencyManager = new IdempotencyManager(config);
|
|
199
|
-
if (!(await idempotencyManager.hasChanges())) {
|
|
200
|
-
logger.info('ℹ️ No changes detected. Use --force to regenerate anyway.');
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
logger.verbose('🔄 Changes detected, regenerating workflows...');
|
|
204
|
-
}
|
|
205
195
|
if (globalOptions.dryRun) {
|
|
206
196
|
logger.info('🔍 Dry run mode - would generate workflows');
|
|
207
197
|
return;
|
|
208
198
|
}
|
|
199
|
+
// Display mode message
|
|
200
|
+
if (globalOptions.force) {
|
|
201
|
+
logger.info('🔄 Force mode: Complete rebuild of all workflows');
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
logger.info('✨ Additive mode: Merging with existing workflows');
|
|
205
|
+
}
|
|
209
206
|
await runModule(join(__dirname, '../generators/workflows.tpl.js'), {
|
|
210
207
|
cwd: process.cwd(),
|
|
211
208
|
argv: process.argv,
|
|
@@ -230,9 +227,6 @@ program
|
|
|
230
227
|
}
|
|
231
228
|
}
|
|
232
229
|
});
|
|
233
|
-
// Update idempotency cache
|
|
234
|
-
const idempotencyManager = new IdempotencyManager(config);
|
|
235
|
-
await idempotencyManager.updateCache();
|
|
236
230
|
logger.success(`✅ Generated workflows in: ${options.output}`);
|
|
237
231
|
// Display next steps if available
|
|
238
232
|
if (options._nextSteps) {
|
|
@@ -263,6 +257,54 @@ program
|
|
|
263
257
|
process.exit(1);
|
|
264
258
|
}
|
|
265
259
|
});
|
|
260
|
+
// Get-config command - Get configuration value
|
|
261
|
+
program
|
|
262
|
+
.command('get-config')
|
|
263
|
+
.description('Get a configuration value by key path (supports JSON, YAML, JS, etc.)')
|
|
264
|
+
.argument('<key>', 'key path to retrieve (e.g., "branchFlow" or "autoMerge.staging")')
|
|
265
|
+
.option('--format <format>', 'output format: json, space-separated, or raw', 'raw')
|
|
266
|
+
.action(async (key, options) => {
|
|
267
|
+
try {
|
|
268
|
+
const globalOptions = program.opts();
|
|
269
|
+
const configPath = globalOptions.config;
|
|
270
|
+
const config = loadConfig(configPath);
|
|
271
|
+
validateConfig(config);
|
|
272
|
+
// Parse nested key path (e.g., "autoMerge.staging")
|
|
273
|
+
const getValue = (obj, path) => {
|
|
274
|
+
return path.split('.').reduce((current, key) => {
|
|
275
|
+
return current?.[key];
|
|
276
|
+
}, obj);
|
|
277
|
+
};
|
|
278
|
+
const value = getValue(config, key);
|
|
279
|
+
if (value === undefined) {
|
|
280
|
+
console.error(`Key "${key}" not found in configuration`);
|
|
281
|
+
process.exit(1);
|
|
282
|
+
}
|
|
283
|
+
// Output value based on format
|
|
284
|
+
if (options.format === 'json') {
|
|
285
|
+
console.log(JSON.stringify(value));
|
|
286
|
+
}
|
|
287
|
+
else if (options.format === 'space-separated' && Array.isArray(value)) {
|
|
288
|
+
console.log(value.join(' '));
|
|
289
|
+
}
|
|
290
|
+
else if (Array.isArray(value)) {
|
|
291
|
+
// Default for arrays: space-separated
|
|
292
|
+
console.log(value.join(' '));
|
|
293
|
+
}
|
|
294
|
+
else if (typeof value === 'object' && value !== null) {
|
|
295
|
+
// Default for objects: JSON
|
|
296
|
+
console.log(JSON.stringify(value));
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
// Default for primitives: raw value
|
|
300
|
+
console.log(value);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
catch (error) {
|
|
304
|
+
console.error(`❌ Failed to get config value: ${error.message}`);
|
|
305
|
+
process.exit(1);
|
|
306
|
+
}
|
|
307
|
+
});
|
|
266
308
|
// Verify command - Check if setup is correct
|
|
267
309
|
program
|
|
268
310
|
.command('verify')
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC5B,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;AACH,CAAC,CAAC,CAAA;AAEJ,+BAA+B;AAC/B,OAAO,CAAC,KAAK,EAAE,CAAA;AAEf,mCAAmC;AACnC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,CAAC,UAAU,EAAE,CAAA;AACtB,CAAC;AACD,yCAAyC;AACzC,iCAAiC;AACjC,wEAAwE;AACxE,wEAAwE;AAExE,gDAAgD;AAChD,gDAAgD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Init Template Generator
|
|
3
3
|
*
|
|
4
|
-
* Generates the initial PipeCraft configuration file (.pipecraftrc
|
|
4
|
+
* Generates the initial PipeCraft configuration file (.pipecraftrc) with default settings.
|
|
5
5
|
* This generator is invoked by the `pipecraft init` command and prompts the user for
|
|
6
6
|
* basic project configuration preferences.
|
|
7
7
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* // Called by CLI with Pinion context
|
|
15
15
|
* await generate(pinionContext)
|
|
16
16
|
*
|
|
17
|
-
* // Creates .pipecraftrc
|
|
17
|
+
* // Creates .pipecraftrc with:
|
|
18
18
|
* // - CI provider (GitHub/GitLab)
|
|
19
19
|
* // - Merge strategy (fast-forward/merge)
|
|
20
20
|
* // - Branch flow configuration
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* for the initial release to ensure consistent behavior. Future versions will
|
|
28
28
|
* respect user input and allow customization.
|
|
29
29
|
*/
|
|
30
|
-
import { PinionContext } from '@featherscloud/pinion';
|
|
30
|
+
import type { PinionContext } from '@featherscloud/pinion';
|
|
31
31
|
/**
|
|
32
32
|
* Init generator main entry point.
|
|
33
33
|
*
|
|
@@ -69,5 +69,5 @@ import { PinionContext } from '@featherscloud/pinion';
|
|
|
69
69
|
* - Production branch name
|
|
70
70
|
* - Branch flow sequence
|
|
71
71
|
*/
|
|
72
|
-
export declare const generate: (ctx: PinionContext) => Promise<
|
|
72
|
+
export declare const generate: (ctx: PinionContext) => Promise<any>;
|
|
73
73
|
//# sourceMappingURL=init.tpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.tpl.d.ts","sourceRoot":"","sources":["../../src/generators/init.tpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"init.tpl.d.ts","sourceRoot":"","sources":["../../src/generators/init.tpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAuS1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,QAAQ,GAAU,KAAK,aAAa,iBAuRhD,CAAA"}
|