|
1 | 1 | { |
2 | | - "name": "overtrue/laravel-follow", |
3 | | - "description": "User follow unfollow system for Laravel.", |
4 | | - "license": "MIT", |
5 | | - "authors": [ |
6 | | - { |
7 | | - "name": "overtrue", |
8 | | - |
9 | | - } |
10 | | - ], |
11 | | - "require": { |
12 | | - "laravel/framework": "^8.0" |
13 | | - }, |
14 | | - "autoload": { |
15 | | - "psr-4": { |
16 | | - "Overtrue\\LaravelFollow\\": "src" |
17 | | - } |
18 | | - }, |
19 | | - "autoload-dev": { |
20 | | - "psr-4": { |
21 | | - "Tests\\": "tests" |
22 | | - } |
23 | | - }, |
24 | | - "require-dev": { |
25 | | - "mockery/mockery": "^1.2", |
26 | | - "phpunit/phpunit": "^9.0", |
27 | | - "orchestra/testbench": "^6.0", |
28 | | - "brainmaestro/composer-git-hooks": "^2.7", |
29 | | - "friendsofphp/php-cs-fixer": "^3.0" |
30 | | - }, |
31 | | - "extra": { |
32 | | - "laravel": { |
33 | | - "providers": ["Overtrue\\LaravelFollow\\FollowServiceProvider"] |
34 | | - }, |
35 | | - "hooks": { |
36 | | - "pre-commit": [ |
37 | | - "composer fix-style", |
38 | | - "composer test" |
39 | | - ], |
40 | | - "pre-push": [ |
41 | | - "composer test", |
42 | | - "composer check-style" |
43 | | - ] |
44 | | - } |
45 | | - }, |
46 | | - "scripts": { |
47 | | - "post-update-cmd": [ |
48 | | - "cghooks remove", |
49 | | - "cghooks add --ignore-lock", |
50 | | - "cghooks update" |
51 | | - ], |
52 | | - "post-merge": "composer install", |
53 | | - "post-install-cmd": [ |
54 | | - "cghooks remove", |
55 | | - "cghooks add --ignore-lock", |
56 | | - "cghooks update" |
57 | | - ], |
58 | | - "cghooks": "vendor/bin/cghooks", |
59 | | - "check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi", |
60 | | - "fix-style": "php-cs-fixer fix --using-cache=no --ansi", |
61 | | - "test": "phpunit --colors=always" |
| 2 | + "name": "overtrue/laravel-follow", |
| 3 | + "description": "User follow unfollow system for Laravel.", |
| 4 | + "license": "MIT", |
| 5 | + "authors": [ |
| 6 | + { |
| 7 | + "name": "overtrue", |
| 8 | + |
| 9 | + } |
| 10 | + ], |
| 11 | + "require": { |
| 12 | + "laravel/framework": "^9.0" |
| 13 | + }, |
| 14 | + "autoload": { |
| 15 | + "psr-4": { |
| 16 | + "Overtrue\\LaravelFollow\\": "src" |
| 17 | + } |
| 18 | + }, |
| 19 | + "autoload-dev": { |
| 20 | + "psr-4": { |
| 21 | + "Tests\\": "tests" |
| 22 | + } |
| 23 | + }, |
| 24 | + "require-dev": { |
| 25 | + "mockery/mockery": "^1.4", |
| 26 | + "phpunit/phpunit": "^9.5", |
| 27 | + "orchestra/testbench": "^7.0", |
| 28 | + "friendsofphp/php-cs-fixer": "^3.0" |
| 29 | + }, |
| 30 | + "extra": { |
| 31 | + "laravel": { |
| 32 | + "providers": [ |
| 33 | + "Overtrue\\LaravelFollow\\FollowServiceProvider" |
| 34 | + ] |
62 | 35 | }, |
63 | | - "scripts-descriptions": { |
64 | | - "test": "Run all tests.", |
65 | | - "check-style": "Run style checks (only dry run - no fixing!).", |
66 | | - "fix-style": "Run style checks and fix violations." |
| 36 | + "hooks": { |
| 37 | + "pre-commit": [ |
| 38 | + "composer fix-style", |
| 39 | + "composer test" |
| 40 | + ], |
| 41 | + "pre-push": [ |
| 42 | + "composer test", |
| 43 | + "composer check-style" |
| 44 | + ] |
67 | 45 | } |
| 46 | + }, |
| 47 | + "scripts": { |
| 48 | + "post-update-cmd": [ |
| 49 | + "cghooks remove", |
| 50 | + "cghooks add --ignore-lock", |
| 51 | + "cghooks update" |
| 52 | + ], |
| 53 | + "post-merge": "composer install", |
| 54 | + "post-install-cmd": [ |
| 55 | + "cghooks remove", |
| 56 | + "cghooks add --ignore-lock", |
| 57 | + "cghooks update" |
| 58 | + ], |
| 59 | + "cghooks": "vendor/bin/cghooks", |
| 60 | + "check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi", |
| 61 | + "fix-style": "php-cs-fixer fix --using-cache=no --ansi", |
| 62 | + "test": "phpunit --colors=always" |
| 63 | + }, |
| 64 | + "scripts-descriptions": { |
| 65 | + "test": "Run all tests.", |
| 66 | + "check-style": "Run style checks (only dry run - no fixing!).", |
| 67 | + "fix-style": "Run style checks and fix violations." |
| 68 | + } |
68 | 69 | } |
0 commit comments