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
e14323b3
Commit
e14323b3
authored
3 years ago
by
Eric Bremner
Committed by
Liam Morland
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix rebuild script, build option 2
parent
01baaf08
No related branches found
No related tags found
1 merge request
!102
Fixing the build gesso script to correctly handle build option 2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build_gesso.sh
+63
-49
63 additions, 49 deletions
build_gesso.sh
gulpfile.js
+7
-0
7 additions, 0 deletions
gulpfile.js
with
70 additions
and
49 deletions
build_gesso.sh
+
63
−
49
View file @
e14323b3
...
...
@@ -31,65 +31,66 @@ if [ "$?" != 0 ]; then
exit
2
;
fi
if
[[
$build_option
==
1
||
$build_option
==
3
]]
;
then
if
[
-f
"gulpfile.js"
]
;
then
cp
gulpfile.js gesso
fi
if
[
-f
"
packag
e.js
on
"
]
;
then
cp
packag
e.js
on
gesso
fi
if
[
-f
"
gulpfil
e.js"
]
;
then
cp
gulpfil
e.js gesso
fi
echo
"**************************************************************************************"
echo
"Removing Gesso files ..."
rm
gesso/gesso.layouts.yml
rm
gesso/gesso.info.yml
rm
gesso/gesso.libraries.yml
rm
gesso/gesso.breakpoints.yml
rm
gesso/Dockerfile
rm
gesso/screenshot.png
rm
-rf
gesso/templates
echo
"Done removing gesso theme files."
echo
"**************************************************************************************"
echo
""
if
[
-f
"package.json"
]
;
then
cp
package.json gesso
fi
echo
"**************************************************************************************"
echo
"Running npm install ..."
cd
gesso
npm
install
if
[
"
$?
"
!=
0
]
;
then
echo
"Error: npm install failed"
exit
2
;
fi
echo
"Done npm install."
echo
"**************************************************************************************"
echo
""
echo
"**************************************************************************************"
echo
"Removing Gesso files ..."
rm
gesso/gesso.layouts.yml
rm
gesso/gesso.info.yml
rm
gesso/gesso.libraries.yml
rm
gesso/gesso.breakpoints.yml
rm
gesso/Dockerfile
rm
gesso/screenshot.png
rm
-rf
gesso/templates
echo
"Done removing gesso theme files."
echo
"**************************************************************************************"
echo
""
echo
"**************************************************************************************"
echo
"Symbolic linking source directory"
if
[
-d
"source"
]
;
then
echo
""
echo
"**************************************************************************************"
echo
"Removing old source directory ..."
rm
-rf
source
echo
"Done removing old source directory."
echo
"**************************************************************************************"
echo
""
fi
ln
-fs
"../source"
source
echo
"Done symbolic linking source directory."
echo
"**************************************************************************************"
echo
""
echo
"**************************************************************************************"
echo
"Running npm install ..."
cd
gesso
npm
install
if
[
"
$?
"
!=
0
]
;
then
echo
"Error: npm install failed"
exit
2
;
fi
echo
"Done npm install."
echo
"**************************************************************************************"
echo
""
echo
"**************************************************************************************"
echo
"Symbolic linking source directory"
if
[
-d
"source"
]
;
then
echo
""
echo
"**************************************************************************************"
echo
"Removing style lint config and replacing with UW config ..."
rm
.stylelintrc.yml
cp
../.stylelintrc.yml
.
echo
"Done removing style lint config and replacing with UW config."
echo
"Removing old source directory ..."
rm
-rf
source
echo
"Done removing old source directory."
echo
"**************************************************************************************"
echo
""
fi
ln
-fs
"../source"
source
echo
"Done symbolic linking source directory."
echo
"**************************************************************************************"
echo
""
echo
"**************************************************************************************"
echo
"Removing style lint config and replacing with UW config ..."
rm
.stylelintrc.yml
cp
../.stylelintrc.yml
.
echo
"Done removing style lint config and replacing with UW config."
echo
"**************************************************************************************"
echo
""
if
[[
$build_option
==
1
||
$build_option
==
3
]]
;
then
echo
"**************************************************************************************"
echo
"Running gulp build ..."
gulp build
...
...
@@ -119,6 +120,19 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then
echo
""
else
echo
"**************************************************************************************"
echo
"Compiling CSS and JS ..."
gulp buildStyles
gulp buildScripts
cd
..
rm
css/styles.css
rm
css/pattern-lab.css
rm
css/uw-dashboards.css
echo
"Done compiling CSS and JS"
echo
"**************************************************************************************"
echo
""
echo
"**************************************************************************************"
echo
"Setting up gesso helper ..."
mv
gesso/gesso_helper
.
...
...
This diff is collapsed.
Click to expand it.
gulpfile.js
+
7
−
0
View file @
e14323b3
...
...
@@ -246,6 +246,13 @@ const build = (isProduction = true ) => {
parallel
(
task
(
'
bundleScripts
'
),
buildStyles
,
buildComponentScripts
,
buildPLStyle
,
buildPatternLab
));
}
const
buildCSSJS
=
(
isProduction
=
true
)
=>
{
return
series
(
parallel
(
buildStyles
,
buildComponentScripts
));
}
exports
.
build
=
build
(
true
);
exports
.
buildCSSJS
=
build
(
true
);
exports
.
default
=
series
(
build
(
false
),
watchFiles
);
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