Skip to content

Commit e35ea8f

Browse files
committed
Update configs
1 parent f57a511 commit e35ea8f

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

composer.json

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@
1212
"require": {
1313
"composer/installers": "^2.1",
1414
"cweagans/composer-patches": "^1.7",
15+
"drupal/admin_toolbar": "^3.0",
16+
"drupal/config_split": "^1.7",
1517
"drupal/core-composer-scaffold": "^10.2.0",
1618
"drupal/core-recommended": "^10.2.0",
19+
"drupal/gin": "^3.0@alpha",
1720
"drush/drush": "^12.4.3",
18-
"oomphinc/composer-installers-extender": "^2.0",
1921
"vlucas/phpdotenv": "^5.1",
2022
"webflo/drupal-finder": "^1.3"
2123
},
2224
"require-dev": {
2325
"drupal/core-dev": "^10.2.0",
24-
"ergebnis/composer-normalize": "^2.42"
26+
"ergebnis/composer-normalize": "^2.42",
27+
"mglaman/drupal-check": "^1.2",
28+
"phpcompatibility/php-compatibility": "^9.3",
29+
"zaporylie/composer-drupal-optimizations": "^1.2"
2530
},
2631
"conflict": {
2732
"drupal/drupal": "*"
@@ -124,6 +129,38 @@
124129
],
125130
"post-update-cmd": [
126131
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
132+
],
133+
"build": [
134+
"drush site:install minimal --existing-config --db-url=mysql://root:password@mariadb:3306/drupal -y",
135+
"drush cr",
136+
"drush scr web/modules/custom/pmis_tests/scripts/install_test_users.php",
137+
"drush scr web/modules/custom/pmis_tests/scripts/install_test_content.php"
138+
],
139+
"run_tests": [
140+
"mkdir -p /tmp/b2b",
141+
"phpunit -c /var/www/html/drupal/phpunit.xml"
142+
],
143+
"run_single_test_class": [
144+
"mkdir -p /tmp/b2b",
145+
"phpunit -c /var/www/html/drupal/phpunit.xml web/modules/custom/awpid_core/tests/src/Functional/EventsAndParticipantsTest.php"
146+
],
147+
"php_compatibility": [
148+
"phpcs --config-set installed_paths /var/www/html/drupal/vendor/phpcompatibility/php-compatibility/PHPCompatibility",
149+
"phpcs -p --standard=PHPCompatibility --extensions=php,inc,module,install --runtime-set testVersion 7.4 /var/www/html/drupal/web/modules/custom",
150+
"phpcs -p --standard=PHPCompatibility --extensions=php,inc,theme,install --runtime-set testVersion 7.4 /var/www/html/drupal/web/themes/custom"
151+
],
152+
"coding_standards": [
153+
"phpcs --config-set installed_paths /var/www/html/drupal/vendor/drupal/coder/coder_sniffer",
154+
"phpcs --standard=Drupal --extensions=php,module,inc,install /var/www/html/drupal/web/modules/custom",
155+
"phpcs --standard=Drupal /var/www/html/drupal/web/themes/custom --ignore=*/node_modules/*,*.css,*.js,includes/*"
156+
],
157+
"coding_standards_fix": [
158+
"phpcs --config-set installed_paths /var/www/html/drupal/vendor/drupal/coder/coder_sniffer",
159+
"phpcbf --report=diff --extensions=php,module,inc,install --standard=Drupal /var/www/html/drupal/web/modules/custom",
160+
"phpcbf --report=diff --standard=Drupal /var/www/html/drupal/web/themes/custom --ignore=*/node_modules/*,*.css,*.js,includes/*"
161+
],
162+
"drupal_check": [
163+
"drupal-check /var/www/html/drupal/web/*/custom"
127164
]
128165
}
129166
}

0 commit comments

Comments
 (0)