Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pinto
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
pinto
Merge requests
!6
Issue
#3450404
by dpi: Fix CSS and JS assets with SingleDirectoryObjectListTrait, and make it work on Drupal Gitlab
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3450404
by dpi: Fix CSS and JS assets with SingleDirectoryObjectListTrait, and make it work on Drupal Gitlab
issue/pinto-3450404:3450404-single-directory-lib-fix
into
1.x
Overview
0
Commits
32
Pipelines
33
Changes
6
Merged
dpi
requested to merge
issue/pinto-3450404:3450404-single-directory-lib-fix
into
1.x
1 year ago
Overview
0
Commits
32
Pipelines
33
Changes
6
Expand
Closes
#3450404
0
0
Merge request reports
Compare
1.x
version 31
d79c7348
1 year ago
version 30
2debb349
1 year ago
version 29
780cbdb7
1 year ago
version 28
0b523ca7
1 year ago
version 27
14481eb8
1 year ago
version 26
22401746
1 year ago
version 25
a40389be
1 year ago
version 24
f4b79c26
1 year ago
version 23
ac471dda
1 year ago
version 22
e083af47
1 year ago
version 21
322ab017
1 year ago
version 20
7904631b
1 year ago
version 19
f375d3f6
1 year ago
version 18
9c482fd4
1 year ago
version 17
466a0f41
1 year ago
version 16
0d723584
1 year ago
version 15
29440416
1 year ago
version 14
26503234
1 year ago
version 13
68182dfc
1 year ago
version 12
c02d1f81
1 year ago
version 11
ab7d9a8e
1 year ago
version 10
5d60a36c
1 year ago
version 9
537eb3a7
1 year ago
version 8
3c033a21
1 year ago
version 7
129fcb72
1 year ago
version 6
31f2afb2
1 year ago
version 5
e3af208c
1 year ago
version 4
007597aa
1 year ago
version 3
362bc23d
1 year ago
version 2
4f0e86df
1 year ago
version 1
c44d88cb
1 year ago
1.x (base)
and
latest version
latest version
4b4ece2e
32 commits,
1 year ago
version 31
d79c7348
31 commits,
1 year ago
version 30
2debb349
30 commits,
1 year ago
version 29
780cbdb7
29 commits,
1 year ago
version 28
0b523ca7
28 commits,
1 year ago
version 27
14481eb8
27 commits,
1 year ago
version 26
22401746
26 commits,
1 year ago
version 25
a40389be
25 commits,
1 year ago
version 24
f4b79c26
24 commits,
1 year ago
version 23
ac471dda
23 commits,
1 year ago
version 22
e083af47
22 commits,
1 year ago
version 21
322ab017
21 commits,
1 year ago
version 20
7904631b
20 commits,
1 year ago
version 19
f375d3f6
19 commits,
1 year ago
version 18
9c482fd4
18 commits,
1 year ago
version 17
466a0f41
17 commits,
1 year ago
version 16
0d723584
16 commits,
1 year ago
version 15
29440416
15 commits,
1 year ago
version 14
26503234
14 commits,
1 year ago
version 13
68182dfc
13 commits,
1 year ago
version 12
c02d1f81
12 commits,
1 year ago
version 11
ab7d9a8e
11 commits,
1 year ago
version 10
5d60a36c
10 commits,
1 year ago
version 9
537eb3a7
9 commits,
1 year ago
version 8
3c033a21
8 commits,
1 year ago
version 7
129fcb72
7 commits,
1 year ago
version 6
31f2afb2
6 commits,
1 year ago
version 5
e3af208c
5 commits,
1 year ago
version 4
007597aa
4 commits,
1 year ago
version 3
362bc23d
3 commits,
1 year ago
version 2
4f0e86df
2 commits,
1 year ago
version 1
c44d88cb
1 commit,
1 year ago
6 files
+
152
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
.gitlab/custom_symlink_project.php
0 → 100644
+
71
−
0
Options
#!/usr/bin/env php
<?php
# Pinto custom:
# Originally at,
# https://git.drupalcode.org/project/gitlab_templates/-/blob/main/scripts/symlink_project.php
/**
* @file
* Symlink the files from this project into Drupal's modules/custom directory.
*
* Param 1 = Project name
* Param 2 = Path from webRoot to modules directory. This will vary depending on
* whether running a Drupal 7 or Drupal 10 pipeline. If none supplied
* then default to the Drupal 10 path.
*
* This script is also used for Drupal 7, which can go as low as PHP5.6, so do
* not use new PHP features and make sure that any change here is tested
* against PHP5.6. Therefore specific phpcs rules are disabled for this file.
*/
// phpcs:disable SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator
// phpcs:disable Drupal.Arrays.Array.CommaLastItem
use
Symfony\Component\Filesystem\Filesystem
;
require
__DIR__
.
'/vendor/autoload.php'
;
$project_name
=
isset
(
$argv
[
1
])
?
$argv
[
1
]
:
getenv
(
'CI_PROJECT_NAME'
);
$pathToModules
=
isset
(
$argv
[
2
])
?
$argv
[
2
]
:
'modules/custom'
;
if
(
empty
(
$project_name
))
{
throw
new
RuntimeException
(
'Unable to determine project name.'
);
}
$fs
=
new
Filesystem
();
// Directory where the root project is being created.
$projectRoot
=
getcwd
();
// Directory where the contrib module symlinks are to be created.
$webRoot
=
getenv
(
'_WEB_ROOT'
)
?:
'web'
;
$moduleRoot
=
$projectRoot
.
'/'
.
$webRoot
.
'/'
.
$pathToModules
.
'/'
.
$project_name
;
// Prepare directory for current module.
if
(
$fs
->
exists
(
$moduleRoot
))
{
$fs
->
remove
(
$moduleRoot
);
}
$fs
->
mkdir
(
$moduleRoot
);
echo
"CREATING COPIES OF FILES FROM
$projectRoot
to
$moduleRoot
\n
"
;
foreach
(
scandir
(
$projectRoot
)
as
$item
)
{
if
(
!
in_array
(
$item
,
[
'.'
,
'..'
,
'.git'
,
'.idea'
,
'drush'
,
'vendor'
,
$webRoot
,
'symlink_project.php'
,
'custom_symlink_project.php'
,
'expand_composer_json.php'
,
'composer.json.backup'
,
// PINTO:
'build.env'
,
]))
{
$source
=
sprintf
(
'%s/%s'
,
$projectRoot
,
$item
);
$target
=
sprintf
(
'%s/%s'
,
$moduleRoot
,
$item
);
\is_file
(
$source
)
?
$fs
->
copy
(
$source
,
$target
)
:
$fs
->
mirror
(
$source
,
$target
);
}
}
Loading