Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal_cms
Merge requests
!321
Resolve
#3494353
"Olivero symlink"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3494353
"Olivero symlink"
issue/drupal_cms-3494353:3494353-olivero-symlink
into
1.x
Overview
0
Commits
3
Pipelines
8
Changes
5
Merged
Adam G-H
requested to merge
issue/drupal_cms-3494353:3494353-olivero-symlink
into
1.x
5 months ago
Overview
0
Commits
3
Pipelines
8
Changes
5
Expand
Closes
#3494353
0
0
Merge request reports
Compare
1.x
version 7
4c18e95d
5 months ago
version 6
fc65653c
5 months ago
version 5
e8cf6935
5 months ago
version 4
87e40490
5 months ago
version 3
0b6c3265
5 months ago
version 2
e1215699
5 months ago
version 1
87fe8c06
5 months ago
1.x (base)
and
latest version
latest version
4c18e95d
3 commits,
5 months ago
version 7
4c18e95d
3 commits,
5 months ago
version 6
fc65653c
3 commits,
5 months ago
version 5
e8cf6935
3 commits,
5 months ago
version 4
87e40490
3 commits,
5 months ago
version 3
0b6c3265
3 commits,
5 months ago
version 2
e1215699
3 commits,
5 months ago
version 1
87fe8c06
3 commits,
5 months ago
5 files
+
137
−
127
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
.ddev/homeadditions/bin/generate-composer-json
0 → 100755
+
33
−
0
Options
#!/usr/bin/env php
<?php
// Generates the development-ready `composer.json` file by merging our
// development requirements into the project template. This script must
// be run from the repository root.
$read_json
=
function
(
string
$file
):
array
{
$data
=
file_get_contents
(
$file
);
return
json_decode
(
$data
,
TRUE
,
flags
:
JSON_THROW_ON_ERROR
);
};
$data
=
array_merge_recursive
(
$read_json
(
'project_template/composer.json'
),
$read_json
(
'dev.composer.json'
),
);
// If in a CI environment, make all path repository URLs absolute.
if
(
getenv
(
'CI'
))
{
array_walk
(
$data
[
'repositories'
],
function
(
array
&
$repository
):
void
{
if
(
$repository
[
'type'
]
===
'path'
)
{
$repository
[
'url'
]
=
getcwd
()
.
'/'
.
$repository
[
'url'
];
}
});
}
// Make packages.drupal.org the lowest-priority repository, which will force the
// components' local path repositories to take precedence.
$repository
=
$data
[
'repositories'
][
'drupal'
];
unset
(
$data
[
'repositories'
][
'drupal'
]);
$data
[
'repositories'
][
'drupal'
]
=
$repository
;
echo
json_encode
(
$data
,
JSON_PRETTY_PRINT
|
JSON_UNESCAPED_SLASHES
);
Loading