-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
98 lines (98 loc) · 3.96 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
{
"name": "mozodev/drupal-project",
"description": "Another project template for Drupal 9+ projects with a relocated document root",
"type": "project",
"license": "MIT",
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "path",
"url": "web/profiles/*/*"
}
],
"require": {
"php": ">=8.1",
"composer/installers": "^2",
"cweagans/composer-patches": "^1.7",
"drupal/core-composer-scaffold": "^10.2",
"drupal/core-recommended": "^10.2",
"drush/drush": "^12",
"mozodev/standard_gin": "@dev"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"classmap": ["scripts/composer/ScriptHandler.php"]
},
"scripts": {
"workspace": ["DrupalProject\\composer\\ScriptHandler::addWorkspace"],
"set-env:apache2": ["scripts/project/add-env-apache2.sh"],
"add-settings-local": ["DrupalProject\\composer\\ScriptHandler::addSettingsLocal"],
"site-install": [
"drush -y si standard_gin install_configure_form.date_default_country=KR install_configure_form.date_default_timezone=Asia/Seoul install_configure_form.enable_update_status_emails=NULL",
"mkdir -p web/sites/default/files/translations",
"chmod -R 777 web/sites/default/files",
"@add-settings-local"
],
"site-install:mariadb": [
"drush -y --db-url=mysql://db:db@db/db si standard_gin install_configure_form.date_default_country=KR install_configure_form.date_default_timezone=Asia/Seoul install_configure_form.enable_update_status_emails=NULL",
"mkdir -p web/sites/default/files/translations",
"chmod -R 777 web/sites/default/files",
"@add-settings-local"
],
"start": [
"Composer\\Config::disableProcessTimeout",
"drush rs 0.0.0.0:8888"
],
"site-uninstall": [
"drush sql:drop -y",
"chmod +w web/sites/default",
"rm -rf web/sites/default/files web/sites/default/settings*"
],
"pull:public": "drush -y -v rsync @prod:%files @local:%files",
"pull:private": "drush -y -v rsync @prod:%private @local:%private",
"pull:files": ["@pull:public", "@pull:private"],
"pull:db": "drush -y -v sql:sync @prod @local",
"pull": ["@pull:files", "@pull:db"],
"check:prod": "drush -v @prod ssh 'cd ../ && drush st && drush cst && git status && composer outdated --direct && du -sch'",
"deploy": "drush -v @prod ssh 'cd ../ && git pull && composer update -o && drush deploy && git checkout -- ./'"
},
"config": {
"discard-changes": true,
"sort-packages": true,
"process-timeout": 0,
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true
}
},
"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"],
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
"web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"web/themes/custom/{$name}": ["type:drupal-custom-theme"]
}
},
"require-dev": {
"drupal/coder": "^8.3",
"drupal/devel": "^5",
"kint-php/kint": "^5"
}
}