From b6a49923dcb31edb6e96e1c366e31b6279bc4911 Mon Sep 17 00:00:00 2001 From: Daniil Bratukhin Date: Wed, 26 Aug 2026 17:50:00 -0300 Subject: [PATCH] build: add localdev CDN build scripts The localdev cdn-js container serves this repo's dist/cdn at https://cdn-js.foxy.test/elements@1/, alongside the v2 line served from the elements_beta submodule at /elements@2/. rollup -c already emits the CDN layout; these just name it. prepack still runs the same rollup step for the real build. --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index a5658ce8c..0902f6b46 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "generate-groups": "node \"./.scripts/generate-groups.js\" && prettier \"./web-test-runner.groups.js\" --write", "storybook": "wds --watch", "storybook:build": "NODE_OPTIONS=--openssl-legacy-provider build-storybook", + "localdev:build:cdn": "rollup -c", + "localdev:watch:cdn": "rollup -c --watch", "lint": "npm run lint:eslint && npm run lint:prettier", "lint:eslint": "eslint --ext .ts,.html . --ignore-path .gitignore", "lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --check --ignore-path .gitignore",