Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_ohana
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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_ohana
Commits
79b3adeb
Commit
79b3adeb
authored
2 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5509: fixing patterns and css/js for different options
parent
e0ecd7c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build_ohana.sh
+22
-9
22 additions, 9 deletions
build_ohana.sh
with
22 additions
and
9 deletions
build_ohana.sh
+
22
−
9
View file @
79b3adeb
...
@@ -44,17 +44,17 @@ nvm install $version
...
@@ -44,17 +44,17 @@ nvm install $version
echo
"**************************************************************************************"
echo
"**************************************************************************************"
echo
"Done installing correct npm version."
echo
"Done installing correct npm version."
echo
"**************************************************************************************"
echo
"Setting up theming ..."
if
[[
$build_option
==
1
||
$build_option
==
3
]]
;
then
if
[[
$build_option
==
1
||
$build_option
==
3
]]
;
then
ln
-s
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/dist
echo
"**************************************************************************************"
rm
-rf
src/patterns
echo
"Setting up theming ..."
ln
-s
../../src/patterns src/patterns
if
[[
$build_option
==
1
||
$build_option
==
3
]]
;
then
else
ln
-s
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/dist
mv
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/
rm
-rf
src/patterns
ln
-s
../../src/patterns src/patterns
fi
echo
"**************************************************************************************"
echo
"Done setting up theming."
fi
fi
echo
"**************************************************************************************"
echo
"Done setting up theming."
echo
"**************************************************************************************"
echo
"**************************************************************************************"
echo
"Running npm install ..."
echo
"Running npm install ..."
...
@@ -71,6 +71,19 @@ npm run build
...
@@ -71,6 +71,19 @@ npm run build
echo
"**************************************************************************************"
echo
"**************************************************************************************"
echo
"Done running npm run build."
echo
"Done running npm run build."
if
[[
$build_option
!=
1
&&
$build_option
!=
3
]]
;
then
echo
"**************************************************************************************"
echo
"Setting up css/js and removing ohana ..."
mv
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/
cd
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist/css
ls
|
grep
-v
all.min.css | parallel
rm
cd
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist/js
ls
|
grep
-v
all.min.js | parallel
rm
cd
"
$DRUPAL_PATH
"
/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana
echo
"**************************************************************************************"
echo
"Done setting up css/js and removing ohana."
fi
if
[[
$env_option
==
1
]]
;
then
if
[[
$env_option
==
1
]]
;
then
echo
"**************************************************************************************"
echo
"**************************************************************************************"
echo
"Creating symlink for ohana ..."
echo
"Creating symlink for ohana ..."
...
...
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