You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update deps
* Add child pipeline visualization and fluent API support
* Refactor CI configuration and visualization examples; remove unused files and improve path handling
* add missing tests
-**Visualization tools**: Generate Mermaid diagrams, ASCII trees, and stage tables to visualize pipeline structure
18
+
-**Visualization tools**: Generate Mermaid diagrams, ASCII trees, and stage tables to visualize pipeline structure (including child pipelines)
17
19
-**Authentication support**: Access private repositories and includes with GitLab tokens
18
20
- Supports reusable template jobs (hidden jobs starting with `.`) with deep-merge semantics
19
21
- Dynamic TypeScript-based includes: import other files and apply their configuration functions
20
-
- Comprehensive test coverage (241 tests, 86%+ coverage)
21
22
- Small and dependency-light implementation
22
23
23
24
## Limitations
@@ -460,6 +461,156 @@ export default function (config: ConfigBuilder) {
460
461
461
462
**Note:** If both default and named exports are present, the default export takes precedence.
462
463
464
+
## Child Pipelines
465
+
466
+
Define child pipelines programmatically using a callback-based API. This eliminates the need to manually manage separate YAML files and automatically generates the trigger jobs.
467
+
468
+
### Basic Example
469
+
470
+
```ts
471
+
import { ConfigBuilder } from "@noxify/gitlab-ci-builder"
472
+
473
+
const config = new ConfigBuilder().stages("build", "test", "deploy").job("build", {
Child pipelines are automatically included in all visualization formats:
602
+
603
+
```ts
604
+
// Mermaid diagram shows child pipelines as subgraphs
605
+
const mermaid =config.generateMermaidDiagram()
606
+
607
+
// ASCII tree shows child pipelines with 🔀 indicator
608
+
const ascii =config.generateAsciiTree()
609
+
610
+
// Stage table separates child pipelines with headers
611
+
const table =config.generateStageTable()
612
+
```
613
+
463
614
## Visualization
464
615
465
616
The builder provides powerful visualization tools to help understand and document your pipeline structure. You can generate Mermaid diagrams, ASCII trees, and stage tables that show job relationships, inheritance chains, and stage organization.
0 commit comments