Skip to content

Commit 497308d

Browse files
committed
feat(migration): add initial Astro framework shim configuration and related files
1 parent 9ebcfd5 commit 497308d

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "migration-framework-shim-astro",
3+
"devDependencies": {
4+
"astro": "^4.0.0",
5+
"vite": "^7.0.0"
6+
}
7+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
> vp migrate --no-interactive --no-hooks # migration should add Astro shim when astro dependency is detected
2+
VITE+ - The Unified Toolchain for the Web
3+
4+
◇ Migrated . to Vite+<repeat>
5+
• Node <semver> pnpm <semver>
6+
✓ Dependencies installed in <variable>ms
7+
• 1 config update applied
8+
• TypeScript shim added for framework component files
9+
10+
> cat src/env.d.ts # check Astro shim was written
11+
/// <reference types="astro/client" />

packages/cli/snap-tests-global/migration-framework-shim-astro/src/.gitkeep

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ignoredPlatforms": ["win32"],
3+
"env": {
4+
"VITE_DISABLE_AUTO_INSTALL": "1",
5+
"CI": "",
6+
"VP_SKIP_INSTALL": ""
7+
},
8+
"commands": [
9+
"vp migrate --no-interactive --no-hooks # migration should add Astro shim when astro dependency is detected",
10+
"cat src/env.d.ts # check Astro shim was written"
11+
]
12+
}

0 commit comments

Comments
 (0)