diff --git a/Makefile b/Makefile index dbc8e02..5bb30e0 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,4 @@ README.md: - doctoc README.md --github --notitle --maxlevel=3 \ No newline at end of file + doctoc README.md --github --notitle --maxlevel=3 +compile: + box compile diff --git a/README.md b/README.md index 252d6b7..57757ec 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,17 @@ In this case, it will be installed into the `./tools` folder of your current dir ./tools/typoscript-lint path/to/your.typoscript +### Setup (using [box](https://github.com/box-project/box)) + +You can build a stand-alone `typoscript-lint.phar` file using box: + + box compile + +You can then make this available system wide: + + sudo chmod a+x typoscript-lint.phar + sudo mv typoscript-lint.phar /usr/local/bin/typoscript-lint + ### Usage Call typo3-typoscript-lint as follows: diff --git a/box.json b/box.json new file mode 100644 index 0000000..8fb4f48 --- /dev/null +++ b/box.json @@ -0,0 +1,17 @@ +{ + "directories": [ + "src", + "vendor" + ], + "files": [ + "psalm.xml", + "services.yml", + "typoscript-lint.yml", + "LICENSE" + ], + "main": "typoscript-lint", + "output": "typoscript-lint.phar", + "compression": "GZ", + "chmod": "0775", + "stub": true +}