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
A third option to use the lean package validator is via [cpx](https://cpx.dev/).
47
-
48
-
```bash
49
-
cpx stolt/lean-package-validator validate
50
-
```
51
-
52
46
> [!TIP]
53
47
> As of release `v1.9.0` it's also possible to install and use the lean package validator
54
48
> via a PHAR [file](https://github.com/raphaelstolt/lean-package-validator/releases/tag/v1.9.0).
@@ -192,11 +186,10 @@ The `--overwrite|-o` option overwrites an existing `.lpv` file.
192
186
The `--preset` option allows to choose from a predefined set of glob pattern.
193
187
Available presets are `PHP`, `Python`, and `Go`. With `PHP` being the default.
194
188
195
-
## Utilisation via Composer scripts or it's dedicated GitHub Action
189
+
## Utilisation via Composer scripts, cpx, or it's dedicated GitHub Action
196
190
197
191
To avoid that changes coming from contributions or own modifications slip into release/dist archives it
198
-
might be helpful to use a guarding [Composer script](https://getcomposer.org/doc/articles/scripts.md),
199
-
which will be available at everyone's fingertips.
192
+
might be helpful to use a guarding [Composer script](https://getcomposer.org/doc/articles/scripts.md), which will be available at everyone's fingertips.
200
193
201
194
By adding the following to the project/micro-package its `composer.json` the `.gitattributes` file can
202
195
now be easily validated via `composer validate-gitattributes`.
@@ -208,6 +201,11 @@ now be easily validated via `composer validate-gitattributes`.
208
201
},
209
202
}
210
203
```
204
+
Another option to utilise the lean package validator is via [cpx](https://cpx.dev/).
205
+
206
+
```bash
207
+
cpx stolt/lean-package-validator validate
208
+
```
211
209
212
210
For utilising a dedicated GitHub Action have a look at the documentation over [here](https://github.com/raphaelstolt/lean-package-validator-action).
0 commit comments