pipecraft 0.45.2 → 0.45.4

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 (2) hide show
  1. package/README.md +66 -39
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,13 +2,69 @@
2
2
 
3
3
  # PipeCraft
4
4
 
5
+ **Your CI/CD decisions, already made.**
6
+
7
+ Nx and Turbo hand the pipeline decisions back to you. How branches promote, when a version
8
+ is cut, which tests run for which change, what stops a bad push reaching production — every
9
+ team works those out again, and makes the same mistakes doing it.
10
+
11
+ PipeCraft has made those decisions. It generates GitHub Actions workflows into your
12
+ repository that encode them, and the workflows are yours from the moment they land.
13
+
14
+ ```bash
15
+ npx pipecraft init --yes
16
+ npx pipecraft generate
17
+ ```
18
+
19
+ Two commands, and you have this:
20
+
21
+ ```
22
+ changes which domains changed, from your path globs
23
+ version next semantic version, from your conventional commits
24
+ test-api ─┐
25
+ test-web ├─ one job per domain, run only when that domain changed
26
+ test-cicd ─┘
27
+ gate every prerequisite passed
28
+ tag the version tag, on the commit that earned it
29
+ promote a PR to the next branch in your flow
30
+ release the GitHub release, on your final branch
31
+ ```
32
+
33
+ The domain jobs are placeholders holding your test commands. Everything else works on the
34
+ first push.
35
+
36
+ ## What it decides for you
37
+
38
+ **Only merged pull requests cut releases.** A commit pushed straight to your branch runs
39
+ your tests and reports the version it would have used, then stops. A hotfix typed on the
40
+ wrong branch cannot ship.
41
+
42
+ **Promotion is a pull request.** Code moves along `develop → staging → main` through PRs
43
+ that Pipecraft opens. Set `autoPromote` per branch to say which hops merge themselves and
44
+ which wait for a person.
45
+
46
+ **Versions come from commits, in one place.** Conventional commits decide the bump, the
47
+ pipeline resolves it, and no local command can produce a tag CI disagrees with.
48
+
49
+ **Tests run for what changed.** Domains are path globs; the `changes` job turns them into
50
+ flags your jobs are gated on.
51
+
52
+ Disagree with any of it? The workflows are in your repository. Edit them, or change the
53
+ config and regenerate — custom jobs are preserved.
54
+
55
+ ## Documentation
56
+
57
+ **[pipecraft.thecraftlab.dev](https://pipecraft.thecraftlab.dev)** — guides, configuration
58
+ reference, examples, and troubleshooting.
59
+
60
+ Working in this repo with an AI agent? See [AGENTS.md](AGENTS.md).
61
+
5
62
  [![npm version](https://badge.fury.io/js/pipecraft.svg)](https://www.npmjs.com/package/pipecraft)
6
63
  [![NPM downloads](https://img.shields.io/npm/dm/pipecraft.svg)](https://www.npmjs.com/package/pipecraft)
7
64
  [![License](https://img.shields.io/npm/l/pipecraft.svg)](https://github.com/the-craftlab/pipecraft/blob/main/LICENSE)
8
65
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org/en/)
9
66
  [![Documentation](https://img.shields.io/badge/docs-pipecraft.thecraftlab.dev-blue)](https://pipecraft.thecraftlab.dev)
10
67
  [![codecov](https://codecov.io/gh/the-craftlab/pipecraft/branch/main/graph/badge.svg)](https://codecov.io/gh/the-craftlab/pipecraft)
11
- [![GitHub issues](https://img.shields.io/github/issues/the-craftlab/pipecraft)](https://github.com/the-craftlab/pipecraft/issues)
12
68
  [![GitHub stars](https://img.shields.io/github/stars/the-craftlab/pipecraft)](https://github.com/the-craftlab/pipecraft/stargazers)
13
69
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
14
70
 
@@ -17,52 +73,23 @@
17
73
  [![staging](https://img.shields.io/github/actions/workflow/status/the-craftlab/pipecraft/pipeline.yml?branch=staging&label=staging)](https://github.com/the-craftlab/pipecraft/actions/workflows/pipeline.yml?query=branch%3Astaging)
18
74
  [![main](https://img.shields.io/github/actions/workflow/status/the-craftlab/pipecraft/pipeline.yml?branch=main&label=main)](https://github.com/the-craftlab/pipecraft/actions/workflows/pipeline.yml?query=branch%3Amain)
19
75
 
20
- Skip the debugging cycles. Generate battle-tested CI/CD workflows into your repository with best practices built in. Fully customizable, completely yours.
21
-
22
- ---
23
-
24
- ## 📚 Complete Documentation
25
-
26
- **[Read the full documentation at pipecraft.thecraftlab.dev →](https://pipecraft.thecraftlab.dev)**
27
-
28
- The documentation site includes comprehensive guides, real-world examples, configuration references, and troubleshooting help.
29
-
30
- ---
31
-
32
- ## What is PipeCraft?
33
-
34
- Debugging CI/CD pipelines is tedious. You push a change, wait 10 minutes for the pipeline to run, discover a tiny YAML syntax error, fix it, wait another 10 minutes, find another issue. Repeat until you've wasted hours on what should be simple workflow setup.
35
-
36
- PipeCraft solves this by providing battle-tested CI/CD templates that you generate into your own repository. Instead of writing GitHub Actions workflows from scratch and debugging them through trial and error, you start with proven patterns that handle common scenarios: domain-based testing for monorepos, semantic versioning, branch promotion flows, and deployment automation.
37
-
38
- The generated workflows live in your repository—you own them completely. Customize them as much as you need: add deployment steps, integrate with your tools, modify job configurations. When customizations get complex or you want to start fresh, regenerate from templates. PipeCraft preserves your customizations while updating the core workflow structure.
39
-
40
- This approach means you get a fully functional CI/CD pipeline with best practices built in from day one, without the debugging cycles and without the maintenance burden of keeping workflows synchronized across projects.
41
-
42
76
  ## Quick Start
43
77
 
44
- Get a working pipeline in three commands:
45
-
46
78
  ```bash
47
- # Initialize PipeCraft in your project
48
- npx pipecraft init
79
+ # Create .pipecraftrc. Prompts unless you pass --yes.
80
+ npx pipecraft init --yes
49
81
 
50
- # Edit the generated .pipecraftrc to customize:
51
- # - Branch names (branchFlow, initialBranch, finalBranch)
52
- # - Domain paths and configurations
53
- # - CI provider and merge strategy
54
- # (Supports .pipecraftrc, .json, .yml, .yaml, or .js formats)
82
+ # See what would be generated, including the domain jobs your config produces
83
+ npx pipecraft generate --dry-run
55
84
 
56
- # Generate your CI/CD workflows
85
+ # Write the workflows
57
86
  npx pipecraft generate
58
87
 
59
- # Commit the generated files
60
- git add .github/workflows .github/actions .pipecraftrc
61
- git commit -m "chore: add PipeCraft workflows"
62
- git push
88
+ git add .github .pipecraftrc && git commit -m "chore: add PipeCraft workflows"
63
89
  ```
64
90
 
65
- That's it. You now have a structured CI/CD workflow with change detection. Add your test commands to the generated jobs.
91
+ Then edit `.pipecraftrc` to match your repository the branch names in `branchFlow`, and
92
+ the path globs and `prefixes` for each domain — and regenerate.
66
93
 
67
94
  ## Key Features
68
95
 
@@ -101,7 +128,7 @@ test-api:
101
128
  No installation required—just run commands directly:
102
129
 
103
130
  ```bash
104
- npx pipecraft init
131
+ npx pipecraft init --yes # drop --yes to answer the prompts
105
132
  npx pipecraft generate
106
133
  ```
107
134
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipecraft",
3
- "version": "0.45.2",
3
+ "version": "0.45.4",
4
4
  "description": "Automated CI/CD pipeline generator for trunk-based development. Generates intelligent GitHub Actions workflows with domain-based change detection, semantic versioning, and branch flow management. Full documentation: https://pipecraft.thecraftlab.dev",
5
5
  "license": "MIT",
6
6
  "type": "module",