pipecraft 0.29.3 → 0.36.14
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 +128 -54
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +68 -25
- 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 +214 -108
- 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 -36
- 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 +49 -23
- 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 +14 -8
- 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 +16 -11
- 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 +13 -9
- package/dist/templates/actions/create-tag.yml.tpl.js.map +1 -1
- package/dist/templates/actions/detect-changes.yml.tpl.d.ts +17 -51
- package/dist/templates/actions/detect-changes.yml.tpl.d.ts.map +1 -1
- package/dist/templates/actions/detect-changes.yml.tpl.js +130 -110
- 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 +13 -9
- 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 +39 -92
- package/dist/templates/actions/promote-branch.yml.tpl.js.map +1 -1
- 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 +38 -29
- 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.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 +337 -84
- 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 +4 -2
- package/dist/templates/workflows/shared/index.d.ts.map +1 -1
- package/dist/templates/workflows/shared/index.js +4 -2
- package/dist/templates/workflows/shared/index.js.map +1 -1
- package/dist/templates/workflows/shared/managed-workflow.d.ts +32 -0
- package/dist/templates/workflows/shared/managed-workflow.d.ts.map +1 -0
- package/dist/templates/workflows/shared/managed-workflow.js +51 -0
- package/dist/templates/workflows/shared/managed-workflow.js.map +1 -0
- package/dist/templates/workflows/shared/operations-changes.d.ts +13 -3
- package/dist/templates/workflows/shared/operations-changes.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-changes.js +42 -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 +142 -17
- package/dist/templates/workflows/shared/operations-domain-jobs.js.map +1 -1
- package/dist/templates/workflows/shared/operations-gate.d.ts +6 -0
- package/dist/templates/workflows/shared/operations-gate.d.ts.map +1 -0
- package/dist/templates/workflows/shared/operations-gate.js +116 -0
- package/dist/templates/workflows/shared/operations-gate.js.map +1 -0
- package/dist/templates/workflows/shared/operations-header.d.ts +11 -1
- package/dist/templates/workflows/shared/operations-header.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-header.js +66 -7
- package/dist/templates/workflows/shared/operations-header.js.map +1 -1
- package/dist/templates/workflows/shared/operations-tag-promote.d.ts +4 -3
- package/dist/templates/workflows/shared/operations-tag-promote.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-tag-promote.js +144 -33
- package/dist/templates/workflows/shared/operations-tag-promote.js.map +1 -1
- package/dist/templates/workflows/shared/operations-version.d.ts +3 -2
- package/dist/templates/workflows/shared/operations-version.d.ts.map +1 -1
- package/dist/templates/workflows/shared/operations-version.js +17 -16
- 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 +1 -5
- package/dist/templates/yaml-format-utils.js.map +1 -1
- package/dist/types/index.d.ts +65 -53
- 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 +16 -5
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +69 -12
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/github-setup.d.ts +7 -7
- package/dist/utils/github-setup.d.ts.map +1 -1
- package/dist/utils/github-setup.js +84 -63
- 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 +2 -2
- package/dist/utils/messaging.d.ts.map +1 -1
- package/dist/utils/messaging.js +12 -8
- 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/dist/utils/workflow-semantics.d.ts +61 -0
- package/dist/utils/workflow-semantics.d.ts.map +1 -0
- package/dist/utils/workflow-semantics.js +230 -0
- package/dist/utils/workflow-semantics.js.map +1 -0
- package/package.json +12 -4
- package/src/generators/init.tpl.ts +275 -128
- package/src/generators/workflows.tpl.ts +54 -57
- 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/templates/workflows/pipeline-nx.yml.tpl.d.ts +0 -22
- package/dist/templates/workflows/pipeline-nx.yml.tpl.d.ts.map +0 -1
- package/dist/templates/workflows/pipeline-nx.yml.tpl.js +0 -196
- package/dist/templates/workflows/pipeline-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
|
|
|
@@ -125,46 +136,108 @@ Then add npm scripts to your package.json:
|
|
|
125
136
|
|
|
126
137
|
## Simple Example
|
|
127
138
|
|
|
128
|
-
Create a `.pipecraftrc
|
|
139
|
+
Create a `.pipecraftrc` configuration describing your project:
|
|
140
|
+
|
|
141
|
+
```yaml
|
|
142
|
+
# PipeCraft Configuration
|
|
143
|
+
ciProvider: github
|
|
144
|
+
mergeStrategy: fast-forward
|
|
145
|
+
requireConventionalCommits: true
|
|
146
|
+
|
|
147
|
+
# Branch flow configuration
|
|
148
|
+
initialBranch: develop
|
|
149
|
+
finalBranch: main
|
|
150
|
+
|
|
151
|
+
# Promotion flow: develop → staging → main
|
|
152
|
+
branchFlow:
|
|
153
|
+
- develop
|
|
154
|
+
- staging
|
|
155
|
+
- main
|
|
156
|
+
|
|
157
|
+
# Domain definitions - what parts of your codebase trigger which jobs
|
|
158
|
+
domains:
|
|
159
|
+
api:
|
|
160
|
+
description: 'API services and core logic'
|
|
161
|
+
paths:
|
|
162
|
+
- apps/api/**
|
|
163
|
+
- libs/api-core/**
|
|
164
|
+
|
|
165
|
+
web:
|
|
166
|
+
description: 'Web application and UI'
|
|
167
|
+
paths:
|
|
168
|
+
- apps/web/**
|
|
169
|
+
- libs/ui-components/**
|
|
170
|
+
```
|
|
129
171
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
172
|
+
Run `pipecraft generate` and you get workflow scaffolding with:
|
|
173
|
+
|
|
174
|
+
- **Change detection job** - Outputs `api: true/false` and `web: true/false` based on what changed
|
|
175
|
+
- **Conditional test job structure** - `test-api` and `test-web` jobs with `if:` conditions, ready for your test commands
|
|
176
|
+
- **Version calculation job** - Reads conventional commits, outputs semantic version
|
|
177
|
+
- **Tag/promote/release jobs** - Handle git operations after tests pass
|
|
178
|
+
|
|
179
|
+
**What you add**:
|
|
180
|
+
|
|
181
|
+
- Test commands in each `test-*` job (e.g., `npm run test:api`)
|
|
182
|
+
- Deploy commands in custom jobs for each branch (staging deploy, production deploy)
|
|
183
|
+
- Remote test commands if you need post-deployment testing
|
|
184
|
+
|
|
185
|
+
**Example of what a generated test job looks like**:
|
|
186
|
+
|
|
187
|
+
```yaml
|
|
188
|
+
test-api:
|
|
189
|
+
needs: [changes, version]
|
|
190
|
+
if: ${{ needs.changes.outputs.api == 'true' }}
|
|
191
|
+
runs-on: ubuntu-latest
|
|
192
|
+
steps:
|
|
193
|
+
- uses: actions/checkout@v4
|
|
194
|
+
# <--START CUSTOM TEST STEPS-->
|
|
195
|
+
# Add your test commands here:
|
|
196
|
+
# - run: npm install
|
|
197
|
+
# - run: npm run test:api
|
|
198
|
+
# <--END CUSTOM TEST STEPS-->
|
|
149
199
|
```
|
|
150
200
|
|
|
151
|
-
|
|
201
|
+
You fill in the custom sections with your actual test logic.
|
|
152
202
|
|
|
153
|
-
|
|
154
|
-
- Parallel test jobs for api and web (conditional on changes)
|
|
155
|
-
- Semantic versioning based on conventional commits
|
|
156
|
-
- Automatic branch promotion through your flow
|
|
157
|
-
- Version tagging and changelog generation
|
|
203
|
+
## What Gets Generated
|
|
158
204
|
|
|
159
|
-
|
|
205
|
+
**Managed sections** (PipeCraft controls these):
|
|
160
206
|
|
|
161
|
-
|
|
207
|
+
- `changes` job - Detects which domains changed using path patterns or Nx graph
|
|
208
|
+
- `version` job - Calculates semantic version from conventional commits
|
|
209
|
+
- `tag` job - Creates git tags for new versions
|
|
210
|
+
- `promote` job - Merges code through your branch flow (develop → staging → main)
|
|
211
|
+
- `release` job - Creates GitHub releases
|
|
212
|
+
- Domain test job structure with conditional execution
|
|
213
|
+
|
|
214
|
+
**Custom sections** (you control these):
|
|
215
|
+
|
|
216
|
+
- Test commands inside each `test-*` job
|
|
217
|
+
- Deploy jobs for each environment (staging-deploy, production-deploy)
|
|
218
|
+
- Remote test jobs for post-deployment testing
|
|
219
|
+
- Any additional jobs you need (e.g., security scanning, notifications)
|
|
162
220
|
|
|
163
|
-
|
|
221
|
+
**Example workflow structure**:
|
|
164
222
|
|
|
165
|
-
|
|
223
|
+
```yaml
|
|
224
|
+
changes: # Managed - detects what changed
|
|
225
|
+
version: # Managed - calculates version
|
|
226
|
+
test-api: # Managed structure, you add test commands
|
|
227
|
+
test-web: # Managed structure, you add test commands
|
|
228
|
+
|
|
229
|
+
# <--START CUSTOM JOBS-->
|
|
230
|
+
deploy-staging: # You create this
|
|
231
|
+
remote-test-api: # You create this
|
|
232
|
+
deploy-prod: # You create this
|
|
233
|
+
# <--END CUSTOM JOBS-->
|
|
234
|
+
|
|
235
|
+
tag: # Managed - creates git tags
|
|
236
|
+
promote: # Managed - merges branches
|
|
237
|
+
release: # Managed - creates GitHub release
|
|
238
|
+
```
|
|
166
239
|
|
|
167
|
-
See the [Getting Started guide](https://pipecraft.thecraftlab.dev/docs/intro) for a complete walkthrough
|
|
240
|
+
Regeneration preserves everything in custom sections. See the [Getting Started guide](https://pipecraft.thecraftlab.dev/docs/intro) for a complete walkthrough.
|
|
168
241
|
|
|
169
242
|
## Next Steps
|
|
170
243
|
|
|
@@ -182,9 +255,9 @@ See the [Getting Started guide](https://pipecraft.thecraftlab.dev/docs/intro) fo
|
|
|
182
255
|
|
|
183
256
|
If you encounter issues, the [Troubleshooting guide](https://pipecraft.thecraftlab.dev/docs/troubleshooting) covers common problems with detailed solutions.
|
|
184
257
|
|
|
185
|
-
For questions and discussions, visit [GitHub Discussions](https://github.com/
|
|
258
|
+
For questions and discussions, visit [GitHub Discussions](https://github.com/pipecraft-lab/pipecraft/discussions).
|
|
186
259
|
|
|
187
|
-
To report bugs or request features, open an issue on [GitHub Issues](https://github.com/
|
|
260
|
+
To report bugs or request features, open an issue on [GitHub Issues](https://github.com/pipecraft-lab/pipecraft/issues).
|
|
188
261
|
|
|
189
262
|
## Contributing
|
|
190
263
|
|
|
@@ -198,7 +271,7 @@ We welcome contributions! See the [Contributing guide](https://pipecraft.thecraf
|
|
|
198
271
|
Quick development setup:
|
|
199
272
|
|
|
200
273
|
```bash
|
|
201
|
-
git clone https://github.com/
|
|
274
|
+
git clone https://github.com/pipecraft-lab/pipecraft.git
|
|
202
275
|
cd pipecraft
|
|
203
276
|
npm install
|
|
204
277
|
npm test
|
|
@@ -214,6 +287,7 @@ MIT License - see the [LICENSE](LICENSE) file for details.
|
|
|
214
287
|
|
|
215
288
|
**Built with ❤️ for trunk-based development teams**
|
|
216
289
|
|
|
217
|
-
[Documentation](https://pipecraft.thecraftlab.dev) · [Report Bug](https://github.com/
|
|
290
|
+
[Documentation](https://pipecraft.thecraftlab.dev) · [Report Bug](https://github.com/pipecraft-lab/pipecraft/issues) · [Request Feature](https://github.com/pipecraft-lab/pipecraft/issues)
|
|
218
291
|
|
|
219
292
|
</div>
|
|
293
|
+
# 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,27 +183,27 @@ 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('');
|
|
191
190
|
}
|
|
192
191
|
logger.verbose(`📖 Reading config from: ${configPath}`);
|
|
193
192
|
logger.verbose(`📖 Reading pipeline from: ${pipelinePath}`);
|
|
194
|
-
// Load configuration
|
|
193
|
+
// Load and validate configuration
|
|
195
194
|
const config = loadConfig(configPath);
|
|
196
|
-
|
|
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
|
-
}
|
|
195
|
+
validateConfig(config);
|
|
205
196
|
if (globalOptions.dryRun) {
|
|
206
197
|
logger.info('🔍 Dry run mode - would generate workflows');
|
|
207
198
|
return;
|
|
208
199
|
}
|
|
200
|
+
// Display mode message
|
|
201
|
+
if (globalOptions.force) {
|
|
202
|
+
logger.info('🔄 Force mode: Complete rebuild of all workflows');
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
logger.info('✨ Additive mode: Merging with existing workflows');
|
|
206
|
+
}
|
|
209
207
|
await runModule(join(__dirname, '../generators/workflows.tpl.js'), {
|
|
210
208
|
cwd: process.cwd(),
|
|
211
209
|
argv: process.argv,
|
|
@@ -230,9 +228,6 @@ program
|
|
|
230
228
|
}
|
|
231
229
|
}
|
|
232
230
|
});
|
|
233
|
-
// Update idempotency cache
|
|
234
|
-
const idempotencyManager = new IdempotencyManager(config);
|
|
235
|
-
await idempotencyManager.updateCache();
|
|
236
231
|
logger.success(`✅ Generated workflows in: ${options.output}`);
|
|
237
232
|
// Display next steps if available
|
|
238
233
|
if (options._nextSteps) {
|
|
@@ -263,6 +258,54 @@ program
|
|
|
263
258
|
process.exit(1);
|
|
264
259
|
}
|
|
265
260
|
});
|
|
261
|
+
// Get-config command - Get configuration value
|
|
262
|
+
program
|
|
263
|
+
.command('get-config')
|
|
264
|
+
.description('Get a configuration value by key path (supports JSON, YAML, JS, etc.)')
|
|
265
|
+
.argument('<key>', 'key path to retrieve (e.g., "branchFlow" or "autoPromote.staging")')
|
|
266
|
+
.option('--format <format>', 'output format: json, space-separated, or raw', 'raw')
|
|
267
|
+
.action(async (key, options) => {
|
|
268
|
+
try {
|
|
269
|
+
const globalOptions = program.opts();
|
|
270
|
+
const configPath = globalOptions.config;
|
|
271
|
+
const config = loadConfig(configPath);
|
|
272
|
+
validateConfig(config);
|
|
273
|
+
// Parse nested key path (e.g., "autoPromote.staging")
|
|
274
|
+
const getValue = (obj, path) => {
|
|
275
|
+
return path.split('.').reduce((current, key) => {
|
|
276
|
+
return current?.[key];
|
|
277
|
+
}, obj);
|
|
278
|
+
};
|
|
279
|
+
const value = getValue(config, key);
|
|
280
|
+
if (value === undefined) {
|
|
281
|
+
console.error(`Key "${key}" not found in configuration`);
|
|
282
|
+
process.exit(1);
|
|
283
|
+
}
|
|
284
|
+
// Output value based on format
|
|
285
|
+
if (options.format === 'json') {
|
|
286
|
+
console.log(JSON.stringify(value));
|
|
287
|
+
}
|
|
288
|
+
else if (options.format === 'space-separated' && Array.isArray(value)) {
|
|
289
|
+
console.log(value.join(' '));
|
|
290
|
+
}
|
|
291
|
+
else if (Array.isArray(value)) {
|
|
292
|
+
// Default for arrays: space-separated
|
|
293
|
+
console.log(value.join(' '));
|
|
294
|
+
}
|
|
295
|
+
else if (typeof value === 'object' && value !== null) {
|
|
296
|
+
// Default for objects: JSON
|
|
297
|
+
console.log(JSON.stringify(value));
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
// Default for primitives: raw value
|
|
301
|
+
console.log(value);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
catch (error) {
|
|
305
|
+
console.error(`❌ Failed to get config value: ${error.message}`);
|
|
306
|
+
process.exit(1);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
266
309
|
// Verify command - Check if setup is correct
|
|
267
310
|
program
|
|
268
311
|
.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AAEH,O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CAAC,KAAK,CAAC,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;AA0Q1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,QAAQ,GAAU,KAAK,aAAa,iBAuLhD,CAAA"}
|