forked from drupal-composer/drupal-project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
126 lines (126 loc) · 4.84 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 10 projects with Composer",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "",
"role": ""
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"php": ">=8.1",
"composer/installers": "^2.1",
"cweagans/composer-patches": "^1.7",
"drupal/admin_toolbar": "^3.0",
"drupal/config_split": "^1.7",
"drupal/core-composer-scaffold": "^10.2.0",
"drupal/core-recommended": "^10.2.0",
"drupal/gin": "^3.0@alpha",
"drush/drush": "^12.4.3",
"vlucas/phpdotenv": "^5.1",
"webflo/drupal-finder": "^1.2"
},
"require-dev": {
"drupal/core-dev": "^10.2.0",
"mglaman/drupal-check": "^1.2",
"phpcompatibility/php-compatibility": "^9.3"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"discard-changes": true,
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": true,
"phpstan/extension-installer": true
}
},
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
],
"files": ["load.environment.php"]
},
"scripts": {
"pre-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"pre-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"post-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"build": [
"drush site:install minimal --existing-config --db-url=mysql://root:password@mariadb:3306/drupal -y",
"drush cr",
"drush scr web/modules/custom/pmis_tests/scripts/install_test_users.php",
"drush scr web/modules/custom/pmis_tests/scripts/install_test_content.php"
],
"run_tests": [
"mkdir -p /tmp/b2b",
"phpunit -c /var/www/html/drupal/phpunit.xml"
],
"run_single_test_class": [
"mkdir -p /tmp/b2b",
"phpunit -c /var/www/html/drupal/phpunit.xml web/modules/custom/awpid_core/tests/src/Functional/EventsAndParticipantsTest.php"
],
"php_compatibility": [
"phpcs --config-set installed_paths /var/www/html/drupal/vendor/phpcompatibility/php-compatibility/PHPCompatibility",
"phpcs -p --standard=PHPCompatibility --extensions=php,inc,module,install --runtime-set testVersion 7.4 /var/www/html/drupal/web/modules/custom",
"phpcs -p --standard=PHPCompatibility --extensions=php,inc,theme,install --runtime-set testVersion 7.4 /var/www/html/drupal/web/themes/custom"
],
"coding_standards": [
"phpcs --config-set installed_paths /var/www/html/drupal/vendor/drupal/coder/coder_sniffer",
"phpcs --standard=Drupal --extensions=php,module,inc,install /var/www/html/drupal/web/modules/custom",
"phpcs --standard=Drupal /var/www/html/drupal/web/themes/custom --ignore=*/node_modules/*,*.css,*.js,includes/*"
],
"coding_standards_fix": [
"phpcs --config-set installed_paths /var/www/html/drupal/vendor/drupal/coder/coder_sniffer",
"phpcbf --report=diff --extensions=php,module,inc,install --standard=Drupal /var/www/html/drupal/web/modules/custom",
"phpcbf --report=diff --standard=Drupal /var/www/html/drupal/web/themes/custom --ignore=*/node_modules/*,*.css,*.js,includes/*"
],
"drupal_check": [
"drupal-check /var/www/html/drupal/web/*/custom"
]
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
},
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"patches": {
}
}
}