-
Notifications
You must be signed in to change notification settings - Fork 50
/
composer.json
72 lines (72 loc) · 1.9 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
{
"name": "woocommerce/wc-smooth-generator",
"description": "A smooth product, order, customer, and coupon generator for WooCommerce.",
"homepage": "https://woocommerce.com/",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": "^7.4 || ^8.0",
"psr/container": "1.0.0",
"composer/installers": "~1.2",
"fakerphp/faker": "^1.24.0",
"jdenticon/jdenticon": "^0.10.0",
"mbezhanov/faker-provider-collection": "^2.0.1",
"symfony/deprecation-contracts": "^2.2"
},
"require-dev": {
"woocommerce/woocommerce-sniffs": "*",
"sirbrillig/phpcs-changed": "^2.10.2"
},
"autoload": {
"psr-4": {"WC\\SmoothGenerator\\": "includes/"}
},
"scripts": {
"phpcs": [
"vendor/bin/phpcs"
],
"phpcbf": [
"vendor/bin/phpcbf"
],
"lint": [
"chg=$(git diff --relative --name-only -- '*.php'); [[ -z $chg ]] || phpcs-changed -s --git --git-unstaged $chg"
],
"lint-staged": [
"chg=$(git diff HEAD --relative --name-only -- '*.php'); [[ -z $chg ]] || phpcs-changed -s --git $chg"
],
"lint-branch": [
"sh ./bin/lint-branch.sh"
]
},
"extra": {
"scripts-description": {
"phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer",
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier"
}
},
"archive": {
"exclude": [
"/.github",
"/.husky",
"/bin",
"/node_modules",
"composer.*",
"package*.json",
"phpcs*",
".*",
"!vendor/autoload.php",
"!vendor/composer",
"!vendor/fakerphp",
"!vendor/jdenticon",
"!vendor/mbezhanov",
"!vendor/symfony"
]
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}