aboutsummaryrefslogtreecommitdiff
path: root/composer.json
blob: 14fad1c106a174b55936ef6925cd631d79aa073b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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."
  }
}