@webflow/webflow-cli 2.4.0-next.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cloud-scaffolds/registry.ts +13 -12
- package/dist/index.js +181 -181
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/cloud-scaffolds/astro/.vscode/extensions.json +0 -4
- package/dist/cloud-scaffolds/astro/.vscode/launch.json +0 -11
- package/dist/cloud-scaffolds/astro/.vscode/settings.json +0 -5
- package/dist/cloud-scaffolds/astro/public/.assetsignore +0 -2
- package/dist/cloud-scaffolds/nextjs/.vscode/settings.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @webflow/webflow-cli
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5b82244: `webflow cloud init` now scaffolds Astro 7 on stable builds. Both Astro scaffolds — standalone (`--new`) and site-attached (`--site-id`) — resolve to the `v3` branch of their example repo, so `@webflow/webflow-cli@next` is no longer needed to get Astro 7.
|
|
8
|
+
|
|
9
|
+
The site-attached scaffold also moves to the current DevLink export contract: `webflow.json` uses the `devlink-export` block writing to `./webflow`, and the layout imports the provider, font tags, and global stylesheet from there. Previously it pointed at the legacy `./devlink` output and imported `_Builtin` modules that current exports no longer emit.
|
|
10
|
+
|
|
11
|
+
Existing Astro 5 and Astro 6 projects are unaffected — the CLI keeps detecting and building them, and older CLI installs continue pulling the `v2` scaffold.
|
|
12
|
+
|
|
13
|
+
- b7037b0: Add support for deploying no-framework static apps (plain HTML/CSS/JS) to Webflow Cloud. A project with a root `index.html` and no `package.json` is auto-detected as `static` and deployed assets-only — no build, no worker — matching cosmic-builder's behavior. An explicit `{ "cloud": { "framework": "static" } }` in `webflow.json` also selects it. Framework projects are unaffected.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 5612b91: Fix Astro 6/7 Webflow Cloud apps serving static assets one mount-path segment too deep. On any non-root mount (including the default `/app`), CSS, JS, favicons, and other static assets 404'd because the deploy copied the already mount-nested `dist/client/<mount>/` build output under the mount path a second time (e.g. HTML referenced `/app/_astro/…` but the asset was served at `/app/app/_astro/…`). The asset copy now strips the exact mount path — for any nesting depth, including multi-segment mounts — so Astro 6/7 assets resolve where the generated HTML references them. Astro 5 and Next.js are unaffected.
|
|
18
|
+
|
|
19
|
+
The underlying cause is a since-fixed `@astrojs/cloudflare` bug ([withastro/astro#16276](https://github.com/withastro/astro/issues/16276), fixed in `13.3.1`), so Astro 6 now requires `@astrojs/cloudflare@^13.3.1` and upgrades a declared older `13.x` adapter automatically (with a warning). Astro 7 already ships a fixed `14.x` adapter.
|
|
20
|
+
|
|
21
|
+
- 266ff5c: Fix `webflow library bundle`/`webflow library share` resolving paths against `process.cwd()` instead of the library's root directory. `dirname(manifestPath)` is now the single source of truth for the library root, so `--manifest` works correctly when invoked from outside the library directory (e.g. a monorepo root): tsconfig path aliases, bundler context, manifest-relative fields (`globals`, `bundleConfig`, `renderer`), type checking, source map package lookups, bundle output, and Module Federation exposes are all resolved relative to the manifest's directory.
|
|
22
|
+
- b055972: Recognize upload-backed deployments.
|
|
23
|
+
|
|
3
24
|
## 2.3.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -23,15 +23,18 @@ import { ScaffoldError } from "./types";
|
|
|
23
23
|
* 3. Bump every `ref` below from `vN` to `vN+1` in the CLI release that
|
|
24
24
|
* ships the breaking change.
|
|
25
25
|
*
|
|
26
|
-
* Old `vN` branches stay frozen — we don't backport fixes.
|
|
26
|
+
* Old `vN` branches stay frozen — we don't backport fixes. Published CLIs pin
|
|
27
|
+
* the branch name they were built with, so a `vN` branch can never be deleted
|
|
28
|
+
* or force-pushed once it ships.
|
|
27
29
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
30
|
+
* Note that `main` is not just a showcase: the Dashboard scaffold wizard always
|
|
31
|
+
* serves it. Step 2 above is what keeps the wizard and the CLI in agreement, so
|
|
32
|
+
* skipping it leaves the two handing out different scaffolds.
|
|
33
|
+
*
|
|
34
|
+
* An entry may also set `betaRef` to stage the next contract on the pre-release
|
|
35
|
+
* channel: it replaces `ref` only on beta (`@next`) builds — see `isBetaBuild()`
|
|
36
|
+
* and `fetcher.ts` — letting a scaffold move ahead for testers while stable keeps
|
|
37
|
+
* pulling `ref`. Promote by moving the branch to `ref` and dropping `betaRef`.
|
|
35
38
|
*/
|
|
36
39
|
export const FRAMEWORK_REGISTRY: Record<string, FrameworkDefinition> = {
|
|
37
40
|
"astro-minimal": {
|
|
@@ -40,8 +43,7 @@ export const FRAMEWORK_REGISTRY: Record<string, FrameworkDefinition> = {
|
|
|
40
43
|
source: {
|
|
41
44
|
type: "github",
|
|
42
45
|
repo: "Webflow-Examples/hello-world-astro",
|
|
43
|
-
ref: "
|
|
44
|
-
betaRef: "astro7",
|
|
46
|
+
ref: "v3",
|
|
45
47
|
},
|
|
46
48
|
},
|
|
47
49
|
"nextjs-minimal": {
|
|
@@ -59,8 +61,7 @@ export const FRAMEWORK_REGISTRY: Record<string, FrameworkDefinition> = {
|
|
|
59
61
|
source: {
|
|
60
62
|
type: "github",
|
|
61
63
|
repo: "Webflow-Examples/hello-world-astro-devlink",
|
|
62
|
-
ref: "
|
|
63
|
-
betaRef: "astro7",
|
|
64
|
+
ref: "v3",
|
|
64
65
|
},
|
|
65
66
|
},
|
|
66
67
|
nextjs: {
|