aboutsummaryrefslogtreecommitdiff
path: root/composer.json
blob: 9bb9bc13cba5a63aeb267fb3d5df96fd5b7cfba9 (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
60
61
62
63
64
65
{
  "name": "pablotron/zipstream",
  "description": "Dynamically generate streamed zip archives.",
  "homepage": "https://github.com/pablotron/zipstream-php",
  "license": "MIT",

  "authors": [{
    "name": "Paul Duncan",
    "email": "zipstream@pablotron.org",
    "homepage": "https://pablotron.org/",
    "role": "developer"
  }],

  "require": {
    "php": "^7"
  },

  "require-dev": {
    "phpunit/phpunit": "^7",
    "phan/phan": "^1.0"
  },

  "autoload": {
    "psr-4": {
      "Pablotron\\ZipStream\\": "src/"
    }
  },

  "autoload-dev": {
    "psr-4": {
      "Pablotron\\ZipStream\\Tests\\": "tests/"
    }
  },

  "scripts": {
    "test-unit": [
      "phpunit --bootstrap vendor/autoload.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 src/*php"
    ],

    "test": [
      "@test-unit",
      "@test-static"
    ],

    "docs": [
      "phpdoc -d src -t docs --template=responsive-twig --title=ZipStream"
    ]
  },

  "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."
  }
}