diff --git a/scripts/create-release-tarball b/scripts/create-release-tarball index b7ff22c36..8ca26c596 100755 --- a/scripts/create-release-tarball +++ b/scripts/create-release-tarball @@ -50,16 +50,10 @@ echo "==> Checking out code box version [${box_version}] into ${bundle_dir}" (cd "${SOURCE_DIR}" && git archive --format=tar ${box_version} | (cd "${bundle_dir}" && tar xf -)) echo "${version}" > "${bundle_dir}/VERSION" -echo "==> Installing modules for dashboard asset generation" -(cd "${bundle_dir}/dashboard" && npm install --omit=dev) - echo "==> Building dashboard assets" +(cd "${bundle_dir}/dashboard" && npm install --omit=dev) (cd "${bundle_dir}/dashboard" && ./node_modules/.bin/gulp --revision ${box_version}) - -echo "==> Move built dashboard assets into destination" -mv "${bundle_dir}/dashboard/dist" "${bundle_dir}/dashboard.dist" -rm -rf "${bundle_dir}/dashboard" -mv "${bundle_dir}/dashboard.dist" "${bundle_dir}/dashboard" +rm -rf "${bundle_dir}/dashboard/node_modules" echo "==> Installing toplevel node modules" (cd "${bundle_dir}" && npm install --omit=dev --no-optional)