This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
composer.json
101 lines (101 loc) · 3.19 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"name": "pantheon-systems/example-wordpress-composer",
"description": "",
"version": "0.1.0",
"type": "project",
"keywords": [],
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "vcs",
"url": "https://github.com/pantheon-systems/wordpress-composer"
}
],
"require": {
"php": ">=7.2",
"composer/installers": "v1.5.0",
"pantheon-systems/wordpress-composer": "4.*",
"roots/wp-password-bcrypt": "^1.0.0",
"rvtraveller/qs-composer-installer": "^1.1",
"vlucas/phpdotenv": "2.*",
"wpackagist-plugin/lh-hsts": "^1.24",
"wpackagist-plugin/pantheon-advanced-page-cache": "*",
"wpackagist-plugin/wp-native-php-sessions": "0.*",
"wpackagist-theme/twentyseventeen": "1.*",
"wpackagist-theme/twentynineteen": "1.*"
},
"require-dev": {
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.3",
"brain/monkey": "~2.2.0",
"dealerdirect/phpcodesniffer-composer-installer": "~0.4.4",
"pantheon-systems/quicksilver-pushback": "~1",
"paulgibbs/behat-wordpress-extension": "3.*",
"phpunit/phpunit": "~6.5.4",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3",
"wp-coding-standards/wpcs": "^2"
},
"config": {
"vendor-dir": "vendor",
"preferred-install": "dist",
"optimize-autoloader": true,
"sort-packages": true
},
"extra": {
"wordpress-install-dir": "web/wp",
"build-env": {
"install-cms": [
"wp core install --title={site-name} --url={site-url} --admin_user={account-name} --admin_email={account-mail} --admin_password={account-pass}",
"wp option update permalink_structure '/%postname%/'"
]
},
"installer-paths": {
"web/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"web/wp-content/themes/{$name}/": ["type:wordpress-theme"],
"web/private/scripts/quicksilver/{$name}/": ["type:quicksilver-script"]
}
},
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
]
},
"scripts": {
"build-assets": [
"@prepare-for-pantheon",
"composer install --no-dev --no-ansi --no-interaction --optimize-autoloader --no-progress"
],
"prepare-for-pantheon": "WordPressProject\\composer\\ScriptHandler::prepareForPantheon",
"cleanup": [
"./scripts/composer/cleanup-composer"
],
"post-install-cmd": [
"@cleanup",
"WordPressProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"@cleanup",
"WordPressProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-create-project-cmd": [
"@cleanup",
"WordPressProject\\composer\\ScriptHandler::createRequiredFiles"
],
"code-sniff": [
"./vendor/bin/phpcs --extensions=php --runtime-set ignore_warnings_on_exit true --ignore=./web/wp-content/plugins/lh-hsts/* ./web/wp-content"
],
"unit-test": [
"./vendor/bin/phpunit tests/unit/*"
],
"wordhat-scenarios": [
"./vendor/bin/behat -dl --config=tests/behat/behat-lando.yml --strict"
],
"local-behat": [
"./vendor/bin/behat --config=tests/behat/behat-lando.yml --strict"
]
}
}