-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
executable file
·60 lines (59 loc) · 1.93 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
{
"name": "karneaud/wp-scaffold",
"description": "scaffold for developing a WordPress plugin",
"type":"wordpress-plugin",
"extra": {
"installer-paths": {
"${WP_PATH}/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"${WP_PATH}/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
},
"name": "wp-scaffold",
"WP_PATH": "www/"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"vendor-dir":"$name/vendor"
},
"require-dev": {
"squizlabs/php_codesniffer": "3.7.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"phpcompatibility/phpcompatibility-wp": "*",
"wp-coding-standards/wpcs": "^2.3",
"phpunit/phpunit": "^9.6",
"yoast/phpunit-polyfills": "^2.0"
},
"scripts":{
"install-wp-cli":[
"curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && mv wp-cli.phar /usr/local/bin/wp"
],
"create-archive":[
"zip -x \"*.git*\" -x \"*.scss\" -x \"bin/*\" -x \"*.xml\" -x \"**/composer.*\" -x \"*.yml\" -x \"*Test*\" -x \"**/tests/*\" -x \"gulpfile.js\" -x \"scss/*\""
],
"install-plugin":[
"wp plugin install"
],
"activate-plugin":[
"wp plugin activate"
],
"install-wp-test":[
"wp scaffold plugin-tests $name",
"bin/install-wp-tests.sh wordpress_test root $MYSQL_USER_PASSWORD $MYSQL_HOST latest"
],
"scaffold-wp-plugin": [
"wp scaffold plugin $name --prompt"
],
"scaffold-hlashbrooke-plugin":[
"bash bin/scaffold-hlashbrooke-plugin.sh"
],
"tests": [
"phpunit"
]
}
}