Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_wcms_gesso
Commits
4452f34f
Commit
4452f34f
authored
Oct 15, 2021
by
Eric Bremner
Browse files
Merge remote-tracking branch 'origin/test-stored-css' into 3.0.x
parents
50e6de50
6a1dd96b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
.gitignore
.gitignore
+1
-5
gulpfile.js
gulpfile.js
+28
-1
No files found.
.gitignore
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/
gulpfile.js
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment