erikgaal / cx
Installs: 380 448
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 3
pkg:composer/erikgaal/cx
Requires
- php: ^8.3
- clue/graph: ^0.9
- graphp/algorithms: ^0.8.2
- graphp/graphviz: ^0.2.2
- illuminate/support: ^11.0|^12.0
- nunomaduro/termwind: ^2.3
- symfony/console: ^7.0
- symfony/filesystem: ^7.0
- symfony/finder: ^7.0
- symfony/process: ^7.0
- twig/html-extra: ^3.18
- twig/twig: ^3.18
Requires (Dev)
- composer/composer: ^2.8
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.5
README
Nx but for Composer
Installation
composer require --dev erikgaal/cx
Usage
Affected
Run tasks in projects affected by changes.
composer affected -t test
| Option | Description | 
|---|---|
| --bail | Stop on first error | 
| --base | Base of the current branch (usually main) | 
| --exclude | Exclude certain projects from being processed | 
| --graph | Show the task graph of the command | 
| --head | Latest commit of the current branch (usually HEAD) | 
| --project,-p | Filter certain projects from being processed | 
| --target,-t | Tasks to run for affected projects | 
| --uncommitted | Only uncommitted changes | 
| --untracked | Only untracked changes | 
Graph
Show the dependency graph of the project.
composer graph
| Option | Description | 
|---|---|
| --affected | Highlight affected projects | 
| --base | Base of the current branch (usually main) | 
| --head | Latest commit of the current branch (usually HEAD) | 
| --target,-t | Tasks to run for affected projects | 
| --uncommitted | Only uncommitted changes | 
| --untracked | Only untracked changes | 
Run many
Run tasks in multiple projects.
composer run-many [target]...
| Option | Description | 
|---|---|
| --project,-p | Projects to run | 
| --parallel | Run tasks in parallel | 
| --outputStyle | How task output should be displayed. dynamic: recommended for local development, overwrites previous outputstatic: recommended for CI, no output is overwritten |