|
1 | 1 | { |
2 | | - "name": "overtrue/laravel-package", |
3 | | - "description": "Laravel package template", |
4 | | - "license": "MIT", |
5 | | - "authors": [ |
6 | | - { |
7 | | - "name": "overtrue", |
8 | | - |
9 | | - } |
10 | | - ], |
11 | | - "require": { |
12 | | - "laravel/framework": "^9.4", |
13 | | - "phpstan/phpstan": "^1.4" |
14 | | - }, |
15 | | - "autoload": { |
16 | | - "psr-4": { |
17 | | - "Overtrue\\LaravelPackage\\": "src" |
18 | | - } |
19 | | - }, |
20 | | - "autoload-dev": { |
21 | | - "psr-4": { |
22 | | - "Tests\\": "tests" |
23 | | - } |
24 | | - }, |
25 | | - "require-dev": { |
26 | | - "mockery/mockery": "^1.2", |
27 | | - "phpunit/phpunit": "^9.0", |
28 | | - "orchestra/testbench": "^7.1", |
29 | | - "friendsofphp/php-cs-fixer": "^3.0", |
30 | | - "vimeo/psalm": "^4.10", |
31 | | - "jetbrains/phpstorm-attributes": "^1.0" |
32 | | - }, |
33 | | - "extra": { |
34 | | - "laravel": { |
35 | | - "providers": [ |
36 | | - "\\Overtrue\\LaravelPackage\\PackageServiceProvider" |
37 | | - ] |
38 | | - }, |
39 | | - "hooks": { |
40 | | - "pre-commit": [ |
41 | | - "composer check-style", |
42 | | - "composer phpstan", |
43 | | - "composer test" |
44 | | - ], |
45 | | - "pre-push": [ |
46 | | - "composer check-style" |
47 | | - ] |
48 | | - } |
49 | | - }, |
50 | | - "scripts": { |
51 | | - "post-update-cmd": [ |
52 | | - "cghooks remove", |
53 | | - "cghooks add --ignore-lock", |
54 | | - "cghooks update" |
55 | | - ], |
56 | | - "post-merge": "composer install", |
57 | | - "post-install-cmd": [ |
58 | | - "cghooks remove", |
59 | | - "cghooks add --ignore-lock", |
60 | | - "cghooks update" |
61 | | - ], |
62 | | - "cghooks": "vendor/bin/cghooks", |
63 | | - "check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi", |
64 | | - "fix-style": "php-cs-fixer fix --using-cache=no --ansi", |
65 | | - "test": "phpunit --colors", |
66 | | - "phpstan": "phpstan analyse", |
67 | | - "psalm": "psalm --show-info=true --no-cache", |
68 | | - "psalm-fix": "psalm --no-cache --alter --issues=MissingReturnType,MissingParamType" |
69 | | - }, |
70 | | - "scripts-descriptions": { |
71 | | - "test": "Run all tests.", |
72 | | - "check-style": "Run style checks (only dry run - no fixing!).", |
73 | | - "fix-style": "Run style checks and fix violations." |
| 2 | + "name": "overtrue/laravel-package", |
| 3 | + "description": "Laravel package template", |
| 4 | + "license": "MIT", |
| 5 | + "authors": [ |
| 6 | + { |
| 7 | + "name": "overtrue", |
| 8 | + |
| 9 | + } |
| 10 | + ], |
| 11 | + "require": { |
| 12 | + "laravel/framework": "^9.4", |
| 13 | + "phpstan/phpstan": "^1.4" |
| 14 | + }, |
| 15 | + "autoload": { |
| 16 | + "psr-4": { |
| 17 | + "Overtrue\\LaravelPackage\\": "src" |
| 18 | + } |
| 19 | + }, |
| 20 | + "autoload-dev": { |
| 21 | + "psr-4": { |
| 22 | + "Tests\\": "tests" |
| 23 | + } |
| 24 | + }, |
| 25 | + "require-dev": { |
| 26 | + "mockery/mockery": "^1.2", |
| 27 | + "phpunit/phpunit": "^9.0", |
| 28 | + "orchestra/testbench": "^7.1", |
| 29 | + "vimeo/psalm": "^4.10", |
| 30 | + "jetbrains/phpstorm-attributes": "^1.0", |
| 31 | + "brainmaestro/composer-git-hooks": "dev-master", |
| 32 | + "laravel/pint": "^1.1" |
| 33 | + }, |
| 34 | + "extra": { |
| 35 | + "laravel": { |
| 36 | + "providers": [ |
| 37 | + "\\Overtrue\\LaravelPackage\\PackageServiceProvider" |
| 38 | + ] |
74 | 39 | }, |
75 | | - "config": { |
76 | | - "allow-plugins": { |
77 | | - "composer/package-versions-deprecated": true |
78 | | - } |
| 40 | + "hooks": { |
| 41 | + "pre-commit": [ |
| 42 | + "composer check-style", |
| 43 | + "composer phpstan", |
| 44 | + "composer test" |
| 45 | + ], |
| 46 | + "pre-push": [ |
| 47 | + "composer check-style" |
| 48 | + ] |
| 49 | + } |
| 50 | + }, |
| 51 | + "scripts": { |
| 52 | + "post-update-cmd": [ |
| 53 | + "cghooks remove", |
| 54 | + "cghooks add --ignore-lock", |
| 55 | + "cghooks update" |
| 56 | + ], |
| 57 | + "post-merge": "composer install", |
| 58 | + "post-install-cmd": [ |
| 59 | + "cghooks remove", |
| 60 | + "cghooks add --ignore-lock", |
| 61 | + "cghooks update" |
| 62 | + ], |
| 63 | + "cghooks": "vendor/bin/cghooks", |
| 64 | + "check-style": "vendor/bin/pint --test", |
| 65 | + "fix-style": "vendor/bin/pint", |
| 66 | + "test": "phpunit --colors", |
| 67 | + "phpstan": "phpstan analyse", |
| 68 | + "psalm": "psalm --show-info=true --no-cache", |
| 69 | + "psalm-fix": "psalm --no-cache --alter --issues=MissingReturnType,MissingParamType" |
| 70 | + }, |
| 71 | + "scripts-descriptions": { |
| 72 | + "test": "Run all tests.", |
| 73 | + "check-style": "Run style checks (only dry run - no fixing!).", |
| 74 | + "fix-style": "Run style checks and fix violations." |
| 75 | + }, |
| 76 | + "config": { |
| 77 | + "allow-plugins": { |
| 78 | + "composer/package-versions-deprecated": true |
79 | 79 | } |
| 80 | + } |
80 | 81 | } |
0 commit comments