Skip to content

Commit

Permalink
b1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Nov 2, 2023
1 parent 66030e3 commit cd7fff3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/drevops/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,14 @@ echo
# are already compiled as a part of the Docker build.
if [ -n "${DRUPAL_THEME:-}" ] && [ -z "${CI:-}" ]; then
info "Installing front-end dependencies."
docker compose exec ${dcopts[@]} cli bash -c 'npm --prefix ${DREVOPS_WEBROOT}/themes/custom/${DRUPAL_THEME} install' >"${npm_verbose_output}"
docker compose exec ${dcopts[@]} cli bash -c 'npm --prefix ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME}/civictheme_library install' >"${npm_verbose_output}"
docker compose exec ${dcopts[@]} cli bash -c 'npm --prefix ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME} install' >"${npm_verbose_output}"
pass "Installed front-end dependencies."

docker compose exec ${dcopts[@]} cli bash -c 'cd ${DREVOPS_WEBROOT}/themes/custom/${DRUPAL_THEME} && npm run build' >"${npm_verbose_output}"
docker compose exec ${dcopts[@]} cli bash -c 'cd ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME}/civictheme_library && npm run build' >"${npm_verbose_output}"
docker compose exec ${dcopts[@]} cli bash -c 'cd ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME} && npm run build' >"${npm_verbose_output}"
pass "Compiled front-end dependencies."

mkdir -p "${DREVOPS_WEBROOT}/sites/default/files"
docker compose port cli 35729 | cut -d : -f 2 | xargs -I{} docker compose exec ${dcopts[@]} cli bash -c 'echo {} > /app/${DREVOPS_WEBROOT}/sites/default/files/livereload.sock'
pass "Created Livereload socket."
echo
fi

Expand Down

0 comments on commit cd7fff3

Please sign in to comment.