forked from qury/phpdoc-to-rst
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcomposer.json
executable file
·71 lines (63 loc) · 2.1 KB
/
composer.json
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
66
67
68
69
70
71
{
"name": "abbadon1334/phpdoc-to-rst",
"description": "Generate Sphinx/ReStructured documentation from PHPDoc",
"type": "library",
"require": {
"phpdocumentor/reflection": "~4.0",
"nikic/php-parser": "^4.0",
"symfony/console": "^4.0"
},
"require-dev": {
"codacy/coverage": "dev-master",
"phpunit/phpunit": "*"
},
"license": "AGPL-3.0-or-later",
"authors": [
{
"name": "Francesco Danti",
"email": "[email protected]"
},
{
"name": "Julius Härtl",
"email": "[email protected]"
},
{
"name": "Ferenc Kurucz",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"JuliusHaertl\\PHPDocToRst\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"JuliusHaertl\\PHPDocToRst\\Test\\": "tests/"
}
},
"bin": ["bin/phpdoc-to-rst"],
"scripts": {
"build-phar" : [
"# START BUILD",
"# STEP 1 - Clear OLD BUILD -----",
"rm -rf build",
"# STEP 2 - SETUP NEW ENV -----",
"mkdir -p build",
"# STEP 3 - DOWNLOAD GIT REPO FOR BUILD -----",
"wget -P build https://github.com/abbadon1334/phpdoc-to-rst/archive/master.zip",
"# STEP 4 - UNZIP REPO FOR BUILD -----",
"cd build && unzip master.zip",
"# STEP 5 - INSTALL COMPOSER WITHOUT DEV TO OPTIMIZE FINAL SIZE -----",
"cd build/phpdoc-to-rst-master && composer install --no-dev",
"# STEP 6 - DOWNLOAD PHAR-COMPOSER -----",
"wget -P build https://github.com/clue/phar-composer/releases/download/v1.0.0/phar-composer.phar",
"chmod +x build/phar-composer.phar",
"# STEP 7 - BUILD PHAR FOR REPO -----",
"cd build && php -d phar.readonly=off phar-composer.phar build phpdoc-to-rst-master ../master.phar",
"# END BUILD - ALL OK"
],
"test-win": "vendor\\bin\\phpunit",
"test": "vendor/bin/phpunit"
}
}