mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
This PR reduces user-site publish time by sharing CLI startup between sync and build, reducing asset downloads when hosted builds do not need them, and testing smaller publish artifacts. The paired [SaaS PR #685](https://github.com/webstudio-is/webstudio-saas/pull/685) uses the combined CLI path when the Builder artifact advertises support; older artifacts keep the existing split path. The paired staging publish served HTML and JavaScript successfully. The combined CLI step took 4 s versus about 8 s for the previous split steps in that run; total publish time remained about 40 s. This is one observation, not a controlled benchmark or a large-site measurement. Local artifact pruning reduced the compressed archive from 119 MiB to 111 MiB (6.7%); it was not adopted. The full artifact is still downloaded and extracted on every publish. ## Checklist - [x] Preserve standalone sync/build behavior and gate combined sync/build with an artifact capability marker. - [x] Skip hosted asset downloads only when content indexing does not need them; preserve static and MDX-required downloads. - [x] Test CLI startup, synthetic build, and artifact-size opportunities; record why no riskier change was adopted. - [x] Verify the paired staging publish and review Builder documentation. - [x] Keep only the E2E schema snapshot matching current inputs; no migration source or migration was added. - [x] Retry the failing `pages-drag` shard: all 17 tests passed, including the drag-and-nest test. - [x] Resolve the two outdated review threads; current code retains finding details and closes diagnostics on element navigation. - [x] Required CI on the cleanup commit passed, including all Builder E2E shards, visual regression, and the existing migration-chain check. - [ ] Run the agent evaluation suite only after separate approval; remind the user before merging. No large-site publish or production release has been tested.
65 lines
2.3 KiB
JSON
65 lines
2.3 KiB
JSON
{
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "node ./node_modules/@react-router/dev/bin.js build",
|
|
"dev": "node ./node_modules/@react-router/dev/bin.js dev",
|
|
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
|
|
"cli:local": "node ../../packages/cli/local.js",
|
|
"fixtures:link": "pnpm cli:local link --link https://p-cddc1d44-af37-4cb6-a430-d300cf6f932d-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=1cdc6026-dd5b-4624-b89b-9bd45e9bcc3d'",
|
|
"fixtures:sync": "pnpm cli:local sync --buildId 1b66ee06-8ea5-4420-9a0e-e0d3a67aca32 && oxfmt ./.webstudio/",
|
|
"fixtures:build": "pnpm cli:local build --template react-router --template ./.template && oxfmt ./app/ ./package.json ./tsconfig.json",
|
|
"start": "node ./node_modules/@react-router/serve/bin.js ./build/server/index.js"
|
|
},
|
|
"private": true,
|
|
"sideEffects": false,
|
|
"dependencies": {
|
|
"@miniflare/html-rewriter": "^2.14.4",
|
|
"@react-router/dev": "^7.5.3",
|
|
"@react-router/fs-routes": "^7.5.3",
|
|
"@react-router/node": "^7.5.3",
|
|
"@webstudio-is/image": "workspace:*",
|
|
"@webstudio-is/react-sdk": "workspace:*",
|
|
"@webstudio-is/sdk": "workspace:*",
|
|
"@webstudio-is/sdk-components-animation": "workspace:*",
|
|
"@webstudio-is/sdk-components-react": "workspace:*",
|
|
"@webstudio-is/sdk-components-react-radix": "workspace:*",
|
|
"@webstudio-is/sdk-components-react-router": "workspace:*",
|
|
"isbot": "^5.1.25",
|
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
"react-router": "^7.5.3",
|
|
"vite": "^6.3.4",
|
|
"webstudio": "workspace:*",
|
|
"@webstudio-is/wsauth": "workspace:*",
|
|
"@react-router/serve": "^7.5.3",
|
|
"@shikijs/langs": "4.4.1",
|
|
"@shikijs/themes": "4.4.1",
|
|
"shiki": "4.4.1",
|
|
"lightningcss": "1.31.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.2.70",
|
|
"@types/react-dom": "^18.2.25",
|
|
"fast-glob": "^3.3.2",
|
|
"typescript": "7.0.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.12.0"
|
|
},
|
|
"name": "webstudio-features",
|
|
"version": "0.0.1",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "AGPL-3.0-or-later",
|
|
"devEngines": {
|
|
"runtime": {
|
|
"name": "node",
|
|
"version": ">=22.12.0",
|
|
"onFail": "error"
|
|
}
|
|
}
|
|
}
|