aboutsummaryrefslogtreecommitdiff
path: root/composer.json
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-10-05 08:02:43 -0400
committerPaul Duncan <pabs@pablotron.org>2018-10-05 08:02:43 -0400
commit94cdff518f29d6556df043292607983b9823de35 (patch)
tree1facc472ef65c36756c7579f6cc27395416fac12 /composer.json
parentc0fa4e7ded7c3dee6de16292985249af7d716f41 (diff)
downloadluigi-template-94cdff518f29d6556df043292607983b9823de35.tar.bz2
luigi-template-94cdff518f29d6556df043292607983b9823de35.zip
add top-level README.mkd
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..14fad1c
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,59 @@
+{
+ "name": "pablotron/luigi-template",
+ "description": "String emplate library.",
+ "homepage": "https://github.com/pablotron/luigi-template",
+ "license": "MIT",
+
+ "authors": [{
+ "name": "Paul Duncan",
+ "email": "luigi-template@pablotron.org",
+ "homepage": "https://pablotron.org/",
+ "role": "developer"
+ }],
+
+ "require": {
+ "php": "^7"
+ },
+
+ "require-dev": {
+ "phpunit/phpunit": "^7",
+ "phan/phan": "^1.0"
+ },
+
+ "autoload": {
+ "psr-4": {
+ "Pablotron\\Luigi\\": "php/src/"
+ }
+ },
+
+ "scripts": {
+ "test-unit": [
+ "phpunit --bootstrap vendor/autoload.php php/tests"
+ ],
+
+ "test-xml": [
+ "phpunit --bootstrap vendor/autoload.php --log-junit test-results-$(date +%Y%m%d%H%M%S).xml tests"
+ ],
+
+ "test-static": [
+ "phan php/src/*.php"
+ ],
+
+ "test": [
+ "@test-unit",
+ "@test-static"
+ ],
+
+ "docs": [
+ "phpdoc -d php/src -t docs --template=responsive-twig --title=LuigiTemplate"
+ ]
+ },
+
+ "scripts-descriptions": {
+ "test": "Run all unit tests and the static analyzer.",
+ "test-unit": "Run all unit tests.",
+ "test-xml": "Run all unit tests and export the results as XML.",
+ "test-phan": "Run the static analyzer.",
+ "docs": "Generate the API documentation."
+ }
+}