-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
31 lines (26 loc) · 1.25 KB
/
package.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
{
"name": "tomkyle-repository-persistence",
"author": "Carsten Witt <[email protected]>",
"private": true,
"devDependencies": {
"chokidar-cli": "^3.0.0",
"@mermaid-js/mermaid-cli": "^10.8",
"npm-run-all": "^4.1.5"
},
"scripts": {
"watch": "npm-run-all -p watch:*",
"watch:src": "chokidar \"src/**/*.php\" -c \"./vendor/bin/frt {path} && npm run phpstan {path} && npm run rector {path}\"",
"watch:tests": "chokidar \"tests/**/*.php\" -c \"npm run phpunit {path}\"",
"watch:mermaid": "chokidar \"**/*.mmd\" -c \"mmdc -e svg -i {path}\"",
"phpcs" : "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
"phpcs:apply" : "./vendor/bin/php-cs-fixer fix --verbose --diff",
"phpstan": "./vendor/bin/phpstan --no-progress analyse",
"rector": "./vendor/bin/rector process --dry-run",
"rector:apply": "./vendor/bin/rector process",
"phpunit": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration phpunit.npm.xml",
"phpunit:short": "npm run phpunit -- --no-coverage",
"phpunit:filter": "npm run phpunit -- --testsuite unit --filter",
"phpunit:unit": "npm run phpunit -- --testsuite unit",
"phpunit:integration": "npm run phpunit -- --testsuite integration"
}
}