Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal 8 SASS Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Composer
plugin
Drupal 8 SASS Theme
Commits
b4e79122
Commit
b4e79122
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#7
[WIP] Introduce a base theme settings
parent
97dade6e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Handler.php
+11
-9
11 additions, 9 deletions
src/Handler.php
templates/sass/_bower-assets.scss
+5
-0
5 additions, 0 deletions
templates/sass/_bower-assets.scss
with
16 additions
and
9 deletions
src/Handler.php
+
11
−
9
View file @
b4e79122
...
...
@@ -330,16 +330,18 @@ class Handler
$finder
=
new
Finder
();
$finder
->
ignoreDotFiles
(
FALSE
);
// Copy all files
$this
->
copyFiles
(
$fs
,
$finder
,
$pluginRoot
.
'/templates'
,
$destination
);
if
(
$this
->
getOption
(
'copy_starterkit'
))
{
// Copy Bootstrap base theme files
$bootstrapPackage
=
$this
->
getPackage
(
'drupal/bootstrap'
);
if
(
$bootstrapPackage
)
{
$bootstrapRoot
=
$this
->
getInstallationManager
()
->
getInstallPath
(
$bootstrapPackage
);
$this
->
copyFiles
(
$fs
,
$finder
,
$bootstrapRoot
.
'/starterkits/sass'
,
$destination
);
# TODO: Replace this with the base_theme settings from composer.json
# TODO: Those settings also need to go into default settings above
// Copy all files
$this
->
copyFiles
(
$fs
,
$finder
,
$pluginRoot
.
'/templates'
,
$destination
);
if
(
$this
->
getOption
(
'copy_starterkit'
))
{
// Copy Bootstrap base theme files
$bootstrapPackage
=
$this
->
getPackage
(
'drupal/bootstrap'
);
if
(
$bootstrapPackage
)
{
$bootstrapRoot
=
$this
->
getInstallationManager
()
->
getInstallPath
(
$bootstrapPackage
);
$this
->
copyFiles
(
$fs
,
$finder
,
$bootstrapRoot
.
'/starterkits/sass'
,
$destination
);
}
}
}
// Remove bower stuff if that's available globally
if
(
$this
->
getOption
(
'bower_assets'
)[
'global'
])
{
...
...
This diff is collapsed.
Click to expand it.
templates/sass/_bower-assets.scss
+
5
−
0
View file @
b4e79122
...
...
@@ -4,3 +4,8 @@
@import
'{{ import }}'
;
{
%
endfor
%
}
{
%
endfor
%
}
// ============== Using base theme {{ base_theme.package }}============================
{
%
for
import
in
base_theme
.import
%
}
@import
'{{ import }}'
;
{
%
endfor
%
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment