Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_gesso
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_wcms_gesso
Commits
4452f34f
Commit
4452f34f
authored
3 years ago
by
Eric Bremner
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/test-stored-css' into 3.0.x
parents
50e6de50
6a1dd96b
No related branches found
No related tags found
1 merge request
!100
Test stored css
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-5
1 addition, 5 deletions
.gitignore
gulpfile.js
+28
-1
28 additions, 1 deletion
gulpfile.js
with
29 additions
and
6 deletions
.gitignore
+
1
−
5
View file @
4452f34f
...
...
@@ -3,8 +3,4 @@
.DS_Store
gesso/
!gesso/gesso_helper
css/pattern-lab.css
css/pattern-lab.scss
css/styles.scss
css/styles.css
css/uw-dashboards.css
css/
This diff is collapsed.
Click to expand it.
gulpfile.js
+
28
−
1
View file @
4452f34f
...
...
@@ -42,6 +42,31 @@ const compileComponentScripts = () => {
const
cssSrc
=
path
.
join
(
__dirname
,
'
..
'
,
'
css
'
);
const
PLSrc
=
[
path
.
join
(
__dirname
,
'
/source/pattern-lab.scss
'
)
];
const
compilePLStyles
=
()
=>
{
return
src
(
PLSrc
)
.
pipe
(
sassGlob
())
.
pipe
(
sourcemaps
.
init
())
.
pipe
(
sass
({
includePaths
:
[
'
./node_modules/breakpoint-sass/stylesheets
'
],
precision
:
10
,
})
)
.
pipe
(
postcss
([
require
(
'
postcss-assets
'
)(),
require
(
'
autoprefixer
'
)({
remove
:
false
,
}),
])
)
.
pipe
(
dest
(
cssSrc
));
};
const
buildConfig
=
async
()
=>
{
const
scssDir
=
path
.
join
(
__dirname
,
'
/source/_patterns/00-config
'
);
const
ymlDir
=
path
.
join
(
__dirname
,
'
./source/_data
'
);
...
...
@@ -211,12 +236,14 @@ const buildComponentScripts = (exports.buildScripts = series(compileComponentScr
const
buildStyles
=
(
exports
.
buildStyles
=
series
(
lintStyles
,
compileStyles
,
minifyCSS
,
compileLayoutStyles
,
minifyLayoutsCSS
));
const
buildPLStyle
=
(
exports
.
buildPLStyles
=
series
(
compilePLStyles
));
const
build
=
(
isProduction
=
true
)
=>
{
const
scriptTask
=
isProduction
?
bundleScripts
:
bundleScriptsDev
;
task
(
'
bundleScripts
'
,
scriptTask
)
return
series
(
buildConfig
,
parallel
(
task
(
'
bundleScripts
'
),
buildStyles
,
buildComponentScripts
,
buildPatternLab
));
parallel
(
task
(
'
bundleScripts
'
),
buildStyles
,
buildComponentScripts
,
buildPLStyle
,
buildPatternLab
));
}
exports
.
build
=
build
(
true
);
...
...
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