forked from spell-checker/spell-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
108 lines (102 loc) · 4.46 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "spell-checker/spell-checker",
"type": "library",
"description": "Multi-language code and text spell checker in PHP",
"homepage": "https://github.com/spell-checker/spell-checker",
"license": ["BSD-3-Clause"],
"authors": [
{
"name": "Vlasta Neubauer",
"homepage": "https://www.paranoiq.cz"
}
],
"require": {
"php": "^7.2|^8.0",
"nette/neon": "~2.4|~3.0",
"symfony/finder": "~4.0|~5.0|~6.0|~7.0",
"tracy/tracy": "~2.4",
"dogma/dogma": "^0.2.0"
},
"require-dev": {
"dogma/dogma-dev": "0.1.29",
"phpstan/phpstan": "1.8.2"
},
"extra": {
"branch-alias": {
"dev-master": "0.3-dev"
}
},
"autoload": {
"classmap": ["source", "tests"]
},
"bin": [
"spell-checker"
],
"scripts": {
"da": "composer dump-autoload",
"build": [
"composer install",
"php -r \"@mkdir('log', 0777, true);\"",
"php -r \"@mkdir('temp/cache', 0777, true);\"",
"rm -rf temp/cache/*"
],
"check:run": [
"@tests:run",
"@phpstan:run",
"@phpcs:src",
"@phpcs:tests",
"@spell:check",
"@lint:run"
],
"check:all": [
"@tests:all",
"@phpstan:all",
"@lint:all",
"@spell:check",
"@phpcs:src",
"@phpcs:tests"
],
"tests:run": "php vendor/bin/tester tests -c tests --colors 1",
"tests:all": [
"php82 vendor/nette/tester/src/tester tests -c tests --colors 1",
"php81 vendor/nette/tester/src/tester tests -c tests --colors 1",
"php80 vendor/nette/tester/src/tester tests -c tests --colors 1",
"php74 vendor/nette/tester/src/tester tests -c tests --colors 1",
"php73 vendor/nette/tester/src/tester tests -c tests --colors 1",
"php72 vendor/nette/tester/src/tester tests -c tests --colors 1"
],
"tests:coverage": "php vendor/bin/tester tests -c tests --colors 1 -p phpdbg --coverage tests/coverage.html --coverage-src source",
"phpstan:run": "php vendor/bin/phpstan analyze --memory-limit 256M -c build/phpstan.neon",
"phpstan:all": [
"php82 vendor/phpstan/phpstan/phpstan analyze --memory-limit 256M -c build/phpstan.neon",
"php81 vendor/phpstan/phpstan/phpstan analyze --memory-limit 256M -c build/phpstan.neon",
"php80 vendor/phpstan/phpstan/phpstan analyze --memory-limit 256M -c build/phpstan.neon",
"php74 vendor/phpstan/phpstan/phpstan analyze --memory-limit 256M -c build/phpstan.neon",
"php73 vendor/phpstan/phpstan/phpstan analyze --memory-limit 256M -c build/phpstan.neon",
"php72 vendor/phpstan/phpstan/phpstan analyze --memory-limit 256M -c build/phpstan.neon"
],
"lint:run": "php vendor/bin/parallel-lint source tests",
"lint:all": [
"php82 vendor/php-parallel-lint/php-parallel-lint/parallel-lint source tests",
"php81 vendor/php-parallel-lint/php-parallel-lint/parallel-lint source tests",
"php80 vendor/php-parallel-lint/php-parallel-lint/parallel-lint source tests",
"php74 vendor/php-parallel-lint/php-parallel-lint/parallel-lint source tests",
"php73 vendor/php-parallel-lint/php-parallel-lint/parallel-lint source tests",
"php72 vendor/php-parallel-lint/php-parallel-lint/parallel-lint source tests"
],
"phpcs:all": [
"@phpcs:src",
"@phpcs:tests"
],
"phpcs:src": "php vendor/bin/phpcs --standard=vendor/dogma/dogma-dev/src/CodeSniffer/ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp source util",
"phpcs:tests": "php vendor/bin/phpcs --standard=vendor/dogma/dogma-dev/src/CodeSniffer/ruleset-tests.xml --extensions=php,phpt --encoding=utf-8 --tab-width=4 -sp tests",
"phpcs:fix": "php vendor/bin/phpcbf --standard=vendor/dogma/dogma-dev/src/CodeSniffer/ruleset-tests.xml --extensions=php,phpt --encoding=utf-8 --tab-width=4 source util tests",
"spell:check": "php spell-checker.php -c build/spell-checker.neon --checkDictionaryFiles --memoryLimit 1024M --noLogo"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"sllh/composer-versions-check": true
}
}
}