Skip to content

Commit

Permalink
develop also frontend addons if present
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Nov 21, 2024
1 parent 4cd35d9 commit 13d4377
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ FROM plone/frontend-builder:${VOLTO_VERSION} AS builder
COPY --chown=node packages/{{cookiecutter.frontend_addon_name}} /app/packages/{{cookiecutter.frontend_addon_name}}
COPY --chown=node volto.config.js /app/
COPY --chown=node package.json /app/package.json.temp
COPY --chown=node mrs.developer.json /app/

RUN --mount=type=cache,id=pnpm,target=/app/.pnpm-store,uid=1000 <<EOT
set -e
python3 -c "import json; orig_data = json.load(open('package.json.temp')); orig_deps = orig_data['dependencies']; data = json.load(open('package.json')); data['dependencies'].update(orig_deps); json.dump(data, open('package.json', 'w'), indent=2)"
rm package.json.temp
pnpm dlx mrs-developer missdev --no-config --fetch-https
pnpm install && pnpm build:deps
pnpm build
pnpm install --prod
Expand Down

0 comments on commit 13d4377

Please sign in to comment.