Skip to content

Commit

Permalink
Moves cpx part
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Nov 28, 2024
1 parent 7e1281d commit cb96f45
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ further utilisation via [Composer scripts](https://getcomposer.org/doc/articles/
composer require --dev stolt/lean-package-validator
```

A third option to use the lean package validator is via [cpx](https://cpx.dev/).

``` bash
cpx stolt/lean-package-validator validate
```

> [!TIP]
> As of release `v1.9.0` it's also possible to install and use the lean package validator
> via a PHAR [file](https://github.com/raphaelstolt/lean-package-validator/releases/tag/v1.9.0).
Expand Down Expand Up @@ -192,11 +186,10 @@ The `--overwrite|-o` option overwrites an existing `.lpv` file.
The `--preset` option allows to choose from a predefined set of glob pattern.
Available presets are `PHP`, `Python`, and `Go`. With `PHP` being the default.

## Utilisation via Composer scripts or it's dedicated GitHub Action
## Utilisation via Composer scripts, cpx, or it's dedicated GitHub Action

To avoid that changes coming from contributions or own modifications slip into release/dist archives it
might be helpful to use a guarding [Composer script](https://getcomposer.org/doc/articles/scripts.md),
which will be available at everyone's fingertips.
might be helpful to use a guarding [Composer script](https://getcomposer.org/doc/articles/scripts.md), which will be available at everyone's fingertips.

By adding the following to the project/micro-package its `composer.json` the `.gitattributes` file can
now be easily validated via `composer validate-gitattributes`.
Expand All @@ -208,6 +201,11 @@ now be easily validated via `composer validate-gitattributes`.
},
}
```
Another option to utilise the lean package validator is via [cpx](https://cpx.dev/).

``` bash
cpx stolt/lean-package-validator validate
```

For utilising a dedicated GitHub Action have a look at the documentation over [here](https://github.com/raphaelstolt/lean-package-validator-action).

Expand Down

0 comments on commit cb96f45

Please sign in to comment.