Skip to content
Snippets Groups Projects
Commit 79b3adeb authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5509: fixing patterns and css/js for different options

parent e0ecd7c4
No related branches found
No related tags found
No related merge requests found
...@@ -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 ..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment