chore: revert JSON changes with new options
This commit is contained in:
parent
3fd60556ac
commit
6a3ce6c738
115 changed files with 1316 additions and 1323 deletions
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://unpkg.com/@changesets/config@1.7.0/schema.json",
|
"$schema": "https://unpkg.com/@changesets/config@1.7.0/schema.json",
|
||||||
"changelog": ["@changesets/changelog-github", { "repo": "withastro/astro" }],
|
"changelog": ["@changesets/changelog-github", { "repo": "withastro/astro" }],
|
||||||
"commit": false,
|
"commit": false,
|
||||||
"linked": [],
|
"linked": [],
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"baseBranch": "main",
|
"baseBranch": "main",
|
||||||
"updateInternalDependencies": "patch",
|
"updateInternalDependencies": "patch",
|
||||||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
|
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
|
||||||
"onlyUpdatePeerDependentsWhenOutOfRange": true
|
"onlyUpdatePeerDependentsWhenOutOfRange": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Basics",
|
"name": "Basics",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/basics",
|
"workspaceFolder": "/workspaces/astro/examples/basics",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Blog",
|
"name": "Blog",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/blog",
|
"workspaceFolder": "/workspaces/astro/examples/blog",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
{
|
{
|
||||||
"name": "Component Template",
|
"name": "Component Template",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/component",
|
"workspaceFolder": "/workspaces/astro/examples/component",
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/MyComponent.astro"]
|
"openFiles": ["src/MyComponent.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Deno",
|
"name": "Deno",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.deno.Dockerfile"
|
"dockerfile": "../examples.deno.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/deno",
|
"workspaceFolder": "/workspaces/astro/examples/deno",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
{
|
{
|
||||||
"name": "Contribute to Astro",
|
"name": "Contribute to Astro",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/desktop-lite:1": {}
|
"ghcr.io/devcontainers/features/desktop-lite:1": {}
|
||||||
},
|
},
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && pnpm run build",
|
"postCreateCommand": "pnpm install && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Astro tests": "pnpm run test"
|
"Astro tests": "pnpm run test"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["README.md", "CONTRIBUTING.md"]
|
"openFiles": ["README.md", "CONTRIBUTING.md"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Docs Site",
|
"name": "Docs Site",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/docs",
|
"workspaceFolder": "/workspaces/astro/examples/docs",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Alpine",
|
"name": "Alpine",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-alpine",
|
"workspaceFolder": "/workspaces/astro/examples/framework-alpine",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Lit",
|
"name": "Lit",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-lit",
|
"workspaceFolder": "/workspaces/astro/examples/framework-lit",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Kitchen Sink (Multiple Frameworks)",
|
"name": "Kitchen Sink (Multiple Frameworks)",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-multiple",
|
"workspaceFolder": "/workspaces/astro/examples/framework-multiple",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Preact",
|
"name": "Preact",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-preact",
|
"workspaceFolder": "/workspaces/astro/examples/framework-preact",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "React",
|
"name": "React",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-react",
|
"workspaceFolder": "/workspaces/astro/examples/framework-react",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Solid",
|
"name": "Solid",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-solid",
|
"workspaceFolder": "/workspaces/astro/examples/framework-solid",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Svelte",
|
"name": "Svelte",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-svelte",
|
"workspaceFolder": "/workspaces/astro/examples/framework-svelte",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Vue",
|
"name": "Vue",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/framework-vue",
|
"workspaceFolder": "/workspaces/astro/examples/framework-vue",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Hackernews",
|
"name": "Hackernews",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/hackernews",
|
"workspaceFolder": "/workspaces/astro/examples/hackernews",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/[...stories].astro"]
|
"openFiles": ["src/pages/[...stories].astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
{
|
{
|
||||||
"name": "Integration Package",
|
"name": "Integration Package",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/integration",
|
"workspaceFolder": "/workspaces/astro/examples/integration",
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["index.ts"]
|
"openFiles": ["index.ts"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Minimal",
|
"name": "Minimal",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/minimal",
|
"workspaceFolder": "/workspaces/astro/examples/minimal",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Non-HTML Pages",
|
"name": "Non-HTML Pages",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/non-html-pages",
|
"workspaceFolder": "/workspaces/astro/examples/non-html-pages",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Portfolio",
|
"name": "Portfolio",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/portfolio",
|
"workspaceFolder": "/workspaces/astro/examples/portfolio",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "SSR",
|
"name": "SSR",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/ssr",
|
"workspaceFolder": "/workspaces/astro/examples/ssr",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Markdown with Plugins",
|
"name": "Markdown with Plugins",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins",
|
"workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.md"]
|
"openFiles": ["src/pages/index.md"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Markdown with Shiki",
|
"name": "Markdown with Shiki",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki",
|
"workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.md"]
|
"openFiles": ["src/pages/index.md"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "MDX",
|
"name": "MDX",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-mdx",
|
"workspaceFolder": "/workspaces/astro/examples/with-mdx",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.mdx"]
|
"openFiles": ["src/pages/index.mdx"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Nanostores",
|
"name": "Nanostores",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-nanostores",
|
"workspaceFolder": "/workspaces/astro/examples/with-nanostores",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Tailwind",
|
"name": "Tailwind",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-tailwindcss",
|
"workspaceFolder": "/workspaces/astro/examples/with-tailwindcss",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Vite PWA",
|
"name": "Vite PWA",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa",
|
"workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "Vitest",
|
"name": "Vitest",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "../examples.Dockerfile"
|
"dockerfile": "../examples.Dockerfile"
|
||||||
},
|
},
|
||||||
|
|
||||||
"workspaceFolder": "/workspaces/astro/examples/with-vitest",
|
"workspaceFolder": "/workspaces/astro/examples/with-vitest",
|
||||||
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
"label": "Application",
|
"label": "Application",
|
||||||
"onAutoForward": "openPreview"
|
"onAutoForward": "openPreview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"forwardPorts": [4321],
|
"forwardPorts": [4321],
|
||||||
|
|
||||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||||
|
|
||||||
"waitFor": "postCreateCommand",
|
"waitFor": "postCreateCommand",
|
||||||
|
|
||||||
"postAttachCommand": {
|
"postAttachCommand": {
|
||||||
"Server": "pnpm start --host"
|
"Server": "pnpm start --host"
|
||||||
},
|
},
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"codespaces": {
|
"codespaces": {
|
||||||
"openFiles": ["src/pages/index.astro"]
|
"openFiles": ["src/pages/index.astro"]
|
||||||
},
|
},
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
184
.eslintrc.cjs
184
.eslintrc.cjs
|
@ -1,98 +1,98 @@
|
||||||
const { builtinModules } = require('module');
|
const { builtinModules } = require('module');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:@typescript-eslint/recommended-type-checked',
|
'plugin:@typescript-eslint/recommended-type-checked',
|
||||||
'plugin:@typescript-eslint/stylistic-type-checked',
|
'plugin:@typescript-eslint/stylistic-type-checked',
|
||||||
'prettier',
|
'prettier',
|
||||||
],
|
],
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
|
project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests'],
|
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests'],
|
||||||
rules: {
|
rules: {
|
||||||
// These off/configured-differently-by-default rules fit well for us
|
// These off/configured-differently-by-default rules fit well for us
|
||||||
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
|
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
'error',
|
'error',
|
||||||
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
|
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
|
||||||
],
|
],
|
||||||
'no-only-tests/no-only-tests': 'error',
|
'no-only-tests/no-only-tests': 'error',
|
||||||
'@typescript-eslint/no-shadow': ['error'],
|
'@typescript-eslint/no-shadow': ['error'],
|
||||||
'no-console': 'warn',
|
'no-console': 'warn',
|
||||||
|
|
||||||
// Todo: do we want these?
|
// Todo: do we want these?
|
||||||
'@typescript-eslint/array-type': 'off',
|
'@typescript-eslint/array-type': 'off',
|
||||||
'@typescript-eslint/ban-ts-comment': 'off',
|
'@typescript-eslint/ban-ts-comment': 'off',
|
||||||
'@typescript-eslint/class-literal-property-style': 'off',
|
'@typescript-eslint/class-literal-property-style': 'off',
|
||||||
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
||||||
'@typescript-eslint/consistent-type-definitions': 'off',
|
'@typescript-eslint/consistent-type-definitions': 'off',
|
||||||
'@typescript-eslint/dot-notation': 'off',
|
'@typescript-eslint/dot-notation': 'off',
|
||||||
'@typescript-eslint/no-base-to-string': 'off',
|
'@typescript-eslint/no-base-to-string': 'off',
|
||||||
'@typescript-eslint/no-empty-function': 'off',
|
'@typescript-eslint/no-empty-function': 'off',
|
||||||
'@typescript-eslint/no-floating-promises': 'off',
|
'@typescript-eslint/no-floating-promises': 'off',
|
||||||
'@typescript-eslint/no-misused-promises': 'off',
|
'@typescript-eslint/no-misused-promises': 'off',
|
||||||
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
||||||
'@typescript-eslint/no-this-alias': 'off',
|
'@typescript-eslint/no-this-alias': 'off',
|
||||||
'@typescript-eslint/no-unsafe-argument': 'off',
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
||||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||||
'@typescript-eslint/no-unsafe-call': 'off',
|
'@typescript-eslint/no-unsafe-call': 'off',
|
||||||
'@typescript-eslint/no-unsafe-member-access': 'off',
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||||
'@typescript-eslint/no-unsafe-return': 'off',
|
'@typescript-eslint/no-unsafe-return': 'off',
|
||||||
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
||||||
'@typescript-eslint/prefer-optional-chain': 'off',
|
'@typescript-eslint/prefer-optional-chain': 'off',
|
||||||
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
|
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
|
||||||
'@typescript-eslint/require-await': 'off',
|
'@typescript-eslint/require-await': 'off',
|
||||||
'@typescript-eslint/restrict-plus-operands': 'off',
|
'@typescript-eslint/restrict-plus-operands': 'off',
|
||||||
'@typescript-eslint/restrict-template-expressions': 'off',
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
||||||
'@typescript-eslint/sort-type-constituents': 'off',
|
'@typescript-eslint/sort-type-constituents': 'off',
|
||||||
'@typescript-eslint/unbound-method': 'off',
|
'@typescript-eslint/unbound-method': 'off',
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
|
||||||
// These rules enabled by the preset configs don't work well for us
|
// These rules enabled by the preset configs don't work well for us
|
||||||
'@typescript-eslint/await-thenable': 'off',
|
'@typescript-eslint/await-thenable': 'off',
|
||||||
'prefer-const': 'off',
|
'prefer-const': 'off',
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
// Ensure Node builtins aren't included in Astro's server runtime
|
// Ensure Node builtins aren't included in Astro's server runtime
|
||||||
files: ['packages/astro/src/runtime/**/*.ts'],
|
files: ['packages/astro/src/runtime/**/*.ts'],
|
||||||
rules: {
|
rules: {
|
||||||
'no-restricted-imports': [
|
'no-restricted-imports': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
paths: [...builtinModules],
|
paths: [...builtinModules],
|
||||||
patterns: ['node:*'],
|
patterns: ['node:*'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['packages/**/test/*.js', 'packages/**/*.js'],
|
files: ['packages/**/test/*.js', 'packages/**/*.js'],
|
||||||
env: {
|
env: {
|
||||||
mocha: true,
|
mocha: true,
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
globalThis: false, // false means read-only
|
globalThis: false, // false means read-only
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': 'off',
|
'no-console': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['packages/integrations/**/*.ts'],
|
files: ['packages/integrations/**/*.ts'],
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': ['error', { allow: ['warn', 'error', 'info', 'debug'] }],
|
'no-console': ['error', { allow: ['warn', 'error', 'info', 'debug'] }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['benchmark/**/*.js'],
|
files: ['benchmark/**/*.js'],
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
'no-console': 'off',
|
'no-console': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,3 +21,4 @@ pnpm-lock.yaml
|
||||||
*.mjs
|
*.mjs
|
||||||
*.cjs
|
*.cjs
|
||||||
*.json
|
*.json
|
||||||
|
*.jsonc
|
||||||
|
|
14
.vscode/extensions.json
vendored
14
.vscode/extensions.json
vendored
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"astro-build.astro-vscode",
|
"astro-build.astro-vscode",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"editorconfig.editorconfig",
|
"editorconfig.editorconfig",
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint"
|
||||||
],
|
],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
52
.vscode/launch.json
vendored
52
.vscode/launch.json
vendored
|
@ -1,29 +1,29 @@
|
||||||
// A launch configuration that compiles the extension and then opens it inside a new window
|
// A launch configuration that compiles the extension and then opens it inside a new window
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Launch Client",
|
"name": "Launch Client",
|
||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": ["--extensionDevelopmentPath=${workspaceRoot}/tools/vscode"],
|
"args": ["--extensionDevelopmentPath=${workspaceRoot}/tools/vscode"],
|
||||||
"outFiles": ["${workspaceRoot}/tools/vscode/dist/**/*.js"]
|
"outFiles": ["${workspaceRoot}/tools/vscode/dist/**/*.js"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"name": "Attach to Server",
|
"name": "Attach to Server",
|
||||||
"port": 6040,
|
"port": 6040,
|
||||||
"restart": true,
|
"restart": true,
|
||||||
"outFiles": ["${workspaceRoot}/tools/languageserver/dist/**/*.js"],
|
"outFiles": ["${workspaceRoot}/tools/languageserver/dist/**/*.js"],
|
||||||
"skipFiles": ["<node_internals>/**"]
|
"skipFiles": ["<node_internals>/**"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compounds": [
|
"compounds": [
|
||||||
{
|
{
|
||||||
"name": "Launch Extension",
|
"name": "Launch Extension",
|
||||||
"configurations": ["Launch Client", "Attach to Server"]
|
"configurations": ["Launch Client", "Attach to Server"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
24
.vscode/tasks.json
vendored
24
.vscode/tasks.json
vendored
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "build:vscode",
|
"script": "build:vscode",
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"panel": "dedicated",
|
"panel": "dedicated",
|
||||||
"reveal": "never"
|
"reveal": "never"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
75
biome.json
75
biome.json
|
@ -1,38 +1,41 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
|
"$schema": "https://biomejs.dev/schemas/1.2.1/schema.json",
|
||||||
"organizeImports": {
|
"organizeImports": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"ignoreUnknown": true,
|
"ignoreUnknown": true,
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"examples/basics/src/layouts/**",
|
"examples/basics/src/layouts/**",
|
||||||
"examples/with-nanostores/src/layouts/**",
|
"examples/with-nanostores/src/layouts/**",
|
||||||
"benchmark/projects/**",
|
"benchmark/projects/**",
|
||||||
"benchmark/results/**",
|
"benchmark/results/**",
|
||||||
"**/dist",
|
"**/dist",
|
||||||
"**/smoke",
|
"**/smoke",
|
||||||
"**/node_modules",
|
"**/node_modules",
|
||||||
"**/fixtures",
|
"**/fixtures",
|
||||||
"**/vendor",
|
"**/vendor",
|
||||||
"**/.vercel"
|
"**/.vercel"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": false
|
"enabled": false
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"lineWidth": 100
|
"lineWidth": 100
|
||||||
},
|
},
|
||||||
"javascript": {
|
"javascript": {
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"quoteStyle": "single",
|
"quoteStyle": "single",
|
||||||
"trailingComma": "es5"
|
"trailingComma": "es5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"json": {
|
"json": {
|
||||||
"parser": {
|
"parser": {
|
||||||
"allowComments": true
|
"allowComments": true
|
||||||
}
|
},
|
||||||
}
|
"formatter": {
|
||||||
|
"indentStyle": "space"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
4
examples/basics/.vscode/extensions.json
vendored
4
examples/basics/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/basics/.vscode/launch.json
vendored
18
examples/basics/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/blog/.vscode/extensions.json
vendored
4
examples/blog/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/blog/.vscode/launch.json
vendored
18
examples/blog/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/deno/.vscode/extensions.json
vendored
4
examples/deno/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/deno/.vscode/launch.json
vendored
18
examples/deno/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-alpine/.vscode/launch.json
vendored
18
examples/framework-alpine/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-lit/.vscode/launch.json
vendored
18
examples/framework-lit/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-multiple/.vscode/launch.json
vendored
18
examples/framework-multiple/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-preact/.vscode/launch.json
vendored
18
examples/framework-preact/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-react/.vscode/launch.json
vendored
18
examples/framework-react/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-solid/.vscode/launch.json
vendored
18
examples/framework-solid/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-svelte/.vscode/launch.json
vendored
18
examples/framework-svelte/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/framework-vue/.vscode/launch.json
vendored
18
examples/framework-vue/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/hackernews/.vscode/extensions.json
vendored
4
examples/hackernews/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/hackernews/.vscode/launch.json
vendored
18
examples/hackernews/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/minimal/.vscode/extensions.json
vendored
4
examples/minimal/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/minimal/.vscode/launch.json
vendored
18
examples/minimal/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/non-html-pages/.vscode/launch.json
vendored
18
examples/non-html-pages/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/portfolio/.vscode/extensions.json
vendored
4
examples/portfolio/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/portfolio/.vscode/launch.json
vendored
18
examples/portfolio/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/ssr/.vscode/extensions.json
vendored
4
examples/ssr/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/ssr/.vscode/launch.json
vendored
18
examples/ssr/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
"products": [
|
"products": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "Cereal",
|
"name": "Cereal",
|
||||||
"price": 3.99,
|
"price": 3.99,
|
||||||
"image": "/images/products/cereal.jpg"
|
"image": "/images/products/cereal.jpg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"name": "Yogurt",
|
"name": "Yogurt",
|
||||||
"price": 3.97,
|
"price": 3.97,
|
||||||
"image": "/images/products/yogurt.jpg"
|
"image": "/images/products/yogurt.jpg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"name": "Rolled Oats",
|
"name": "Rolled Oats",
|
||||||
"price": 2.89,
|
"price": 2.89,
|
||||||
"image": "/images/products/oats.jpg"
|
"image": "/images/products/oats.jpg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 4,
|
"id": 4,
|
||||||
"name": "Muffins",
|
"name": "Muffins",
|
||||||
"price": 4.39,
|
"price": 4.39,
|
||||||
"image": "/images/products/muffins.jpg"
|
"image": "/images/products/muffins.jpg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode"],
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/with-markdoc/.vscode/launch.json
vendored
18
examples/with-markdoc/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
4
examples/with-mdx/.vscode/extensions.json
vendored
4
examples/with-mdx/.vscode/extensions.json
vendored
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
|
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
18
examples/with-mdx/.vscode/launch.json
vendored
18
examples/with-mdx/.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "./node_modules/.bin/astro dev",
|
"command": "./node_modules/.bin/astro dev",
|
||||||
"name": "Development server",
|
"name": "Development server",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal"
|
"type": "node-terminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
"dev": "turbo run dev --concurrency=40 --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
"dev": "turbo run dev --concurrency=40 --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
||||||
"format": "pnpm run format:code",
|
"format": "pnpm run format:code",
|
||||||
"format:ci": "pnpm run format:imports && pnpm run format:code",
|
"format:ci": "pnpm run format:imports && pnpm run format:code",
|
||||||
"format:code": "prettier -w \"**/*\" --ignore-unknown --cache",
|
"format:code": "biome check --apply-unsafe ./ && prettier -w \"**/*\" --ignore-unknown --cache",
|
||||||
"format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json",
|
|
||||||
"test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
|
"test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
|
||||||
"test:match": "cd packages/astro && pnpm run test:match",
|
"test:match": "cd packages/astro && pnpm run test:match",
|
||||||
"test:unit": "cd packages/astro && pnpm run test:unit",
|
"test:unit": "cd packages/astro && pnpm run test:unit",
|
||||||
|
@ -78,6 +77,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "^0.1.0",
|
"@astrojs/check": "^0.1.0",
|
||||||
|
"@biomejs/biome": "1.2.1",
|
||||||
"@changesets/changelog-github": "^0.4.8",
|
"@changesets/changelog-github": "^0.4.8",
|
||||||
"@changesets/cli": "^2.26.2",
|
"@changesets/cli": "^2.26.2",
|
||||||
"@types/node": "^18.17.8",
|
"@types/node": "^18.17.8",
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import type { OutgoingHttpHeaders } from 'node:http';
|
||||||
|
import type { AddressInfo } from 'node:net';
|
||||||
import type {
|
import type {
|
||||||
MarkdownHeading,
|
MarkdownHeading,
|
||||||
MarkdownMetadata,
|
MarkdownMetadata,
|
||||||
|
@ -8,8 +10,6 @@ import type {
|
||||||
ShikiConfig,
|
ShikiConfig,
|
||||||
} from '@astrojs/markdown-remark';
|
} from '@astrojs/markdown-remark';
|
||||||
import type * as babel from '@babel/core';
|
import type * as babel from '@babel/core';
|
||||||
import type { OutgoingHttpHeaders } from 'node:http';
|
|
||||||
import type { AddressInfo } from 'node:net';
|
|
||||||
import type * as rollup from 'rollup';
|
import type * as rollup from 'rollup';
|
||||||
import type { TsConfigJson } from 'tsconfig-resolver';
|
import type { TsConfigJson } from 'tsconfig-resolver';
|
||||||
import type * as vite from 'vite';
|
import type * as vite from 'vite';
|
||||||
|
@ -148,7 +148,7 @@ export interface CLIFlags {
|
||||||
export interface AstroGlobal<
|
export interface AstroGlobal<
|
||||||
Props extends Record<string, any> = Record<string, any>,
|
Props extends Record<string, any> = Record<string, any>,
|
||||||
Self = AstroComponentFactory,
|
Self = AstroComponentFactory,
|
||||||
Params extends Record<string, string | undefined> = Record<string, string | undefined>,
|
Params extends Record<string, string | undefined> = Record<string, string | undefined>
|
||||||
> extends AstroGlobalPartial,
|
> extends AstroGlobalPartial,
|
||||||
AstroSharedContext<Props, Params> {
|
AstroSharedContext<Props, Params> {
|
||||||
/**
|
/**
|
||||||
|
@ -281,7 +281,7 @@ export interface AstroGlobal<
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Union type of supported markdown file extensions */
|
/** Union type of supported markdown file extensions */
|
||||||
type MarkdowFileExtension = (typeof SUPPORTED_MARKDOWN_FILE_EXTENSIONS)[number];
|
type MarkdowFileExtension = typeof SUPPORTED_MARKDOWN_FILE_EXTENSIONS[number];
|
||||||
|
|
||||||
export interface AstroGlobalPartial {
|
export interface AstroGlobalPartial {
|
||||||
/**
|
/**
|
||||||
|
@ -1751,7 +1751,7 @@ export interface Page<T = any> {
|
||||||
export type PaginateFunction = <
|
export type PaginateFunction = <
|
||||||
PaginateData,
|
PaginateData,
|
||||||
AdditionalPaginateProps extends Props,
|
AdditionalPaginateProps extends Props,
|
||||||
AdditionalPaginateParams extends Params,
|
AdditionalPaginateParams extends Params
|
||||||
>(
|
>(
|
||||||
data: PaginateData[],
|
data: PaginateData[],
|
||||||
args?: PaginateOptions<AdditionalPaginateProps, AdditionalPaginateParams>
|
args?: PaginateOptions<AdditionalPaginateProps, AdditionalPaginateParams>
|
||||||
|
@ -1825,7 +1825,7 @@ export type ValidRedirectStatus = 300 | 301 | 302 | 303 | 304 | 307 | 308;
|
||||||
// Shared types between `Astro` global and API context object
|
// Shared types between `Astro` global and API context object
|
||||||
interface AstroSharedContext<
|
interface AstroSharedContext<
|
||||||
Props extends Record<string, any> = Record<string, any>,
|
Props extends Record<string, any> = Record<string, any>,
|
||||||
RouteParams extends Record<string, string | undefined> = Record<string, string | undefined>,
|
RouteParams extends Record<string, string | undefined> = Record<string, string | undefined>
|
||||||
> {
|
> {
|
||||||
/**
|
/**
|
||||||
* The address (usually IP address) of the user. Used with SSR only.
|
* The address (usually IP address) of the user. Used with SSR only.
|
||||||
|
@ -1864,7 +1864,7 @@ interface AstroSharedContext<
|
||||||
|
|
||||||
export interface APIContext<
|
export interface APIContext<
|
||||||
Props extends Record<string, any> = Record<string, any>,
|
Props extends Record<string, any> = Record<string, any>,
|
||||||
APIParams extends Record<string, string | undefined> = Record<string, string | undefined>,
|
APIParams extends Record<string, string | undefined> = Record<string, string | undefined>
|
||||||
> extends AstroSharedContext<Props, Params> {
|
> extends AstroSharedContext<Props, Params> {
|
||||||
site: URL | undefined;
|
site: URL | undefined;
|
||||||
generator: string;
|
generator: string;
|
||||||
|
@ -2009,7 +2009,7 @@ export interface SSRLoadedRenderer extends AstroRenderer {
|
||||||
|
|
||||||
export type HookParameters<
|
export type HookParameters<
|
||||||
Hook extends keyof AstroIntegration['hooks'],
|
Hook extends keyof AstroIntegration['hooks'],
|
||||||
Fn = AstroIntegration['hooks'][Hook],
|
Fn = AstroIntegration['hooks'][Hook]
|
||||||
> = Fn extends (...args: any) => any ? Parameters<Fn>[0] : never;
|
> = Fn extends (...args: any) => any ? Parameters<Fn>[0] : never;
|
||||||
|
|
||||||
export interface AstroIntegration {
|
export interface AstroIntegration {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { deserializeRouteData } from '../routing/manifest/serialization.js';
|
import { deserializeRouteData } from '../routing/manifest/serialization.js';
|
||||||
import type { RouteInfo, SerializedSSRManifest, SSRManifest } from './types.js';
|
import type { RouteInfo, SSRManifest, SerializedSSRManifest } from './types.js';
|
||||||
|
|
||||||
export function deserializeManifest(serializedManifest: SerializedSSRManifest): SSRManifest {
|
export function deserializeManifest(serializedManifest: SerializedSSRManifest): SSRManifest {
|
||||||
const routes: RouteInfo[] = [];
|
const routes: RouteInfo[] = [];
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { RouteData } from '../../@types/astro.js';
|
import type { RouteData } from '../../@types/astro.js';
|
||||||
import type { SerializedSSRManifest, SSRManifest } from './types.js';
|
import type { SSRManifest, SerializedSSRManifest } from './types.js';
|
||||||
|
|
||||||
import * as fs from 'node:fs';
|
import * as fs from 'node:fs';
|
||||||
import { IncomingMessage } from 'node:http';
|
import { IncomingMessage } from 'node:http';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type {
|
import type {
|
||||||
RouteData,
|
RouteData,
|
||||||
SerializedRouteData,
|
|
||||||
SSRComponentMetadata,
|
SSRComponentMetadata,
|
||||||
SSRLoadedRenderer,
|
SSRLoadedRenderer,
|
||||||
SSRResult,
|
SSRResult,
|
||||||
|
SerializedRouteData,
|
||||||
} from '../../@types/astro.js';
|
} from '../../@types/astro.js';
|
||||||
import type { SinglePageBuiltModule } from '../build/types.js';
|
import type { SinglePageBuiltModule } from '../build/types.js';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import glob from 'fast-glob';
|
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import glob from 'fast-glob';
|
||||||
import type { OutputChunk } from 'rollup';
|
import type { OutputChunk } from 'rollup';
|
||||||
import { type Plugin as VitePlugin } from 'vite';
|
import { type Plugin as VitePlugin } from 'vite';
|
||||||
import { runHookBuildSsr } from '../../../integrations/index.js';
|
import { runHookBuildSsr } from '../../../integrations/index.js';
|
||||||
|
@ -9,7 +9,7 @@ import { joinPaths, prependForwardSlash } from '../../path.js';
|
||||||
import { serializeRouteData } from '../../routing/index.js';
|
import { serializeRouteData } from '../../routing/index.js';
|
||||||
import { addRollupInput } from '../add-rollup-input.js';
|
import { addRollupInput } from '../add-rollup-input.js';
|
||||||
import { getOutFile, getOutFolder } from '../common.js';
|
import { getOutFile, getOutFolder } from '../common.js';
|
||||||
import { cssOrder, mergeInlineCss, type BuildInternals } from '../internal.js';
|
import { type BuildInternals, cssOrder, mergeInlineCss } from '../internal.js';
|
||||||
import type { AstroBuildPlugin } from '../plugin.js';
|
import type { AstroBuildPlugin } from '../plugin.js';
|
||||||
import type { StaticBuildOptions } from '../types.js';
|
import type { StaticBuildOptions } from '../types.js';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { AstroConfig } from '../../@types/astro.js';
|
import type { AstroConfig } from '../../@types/astro.js';
|
||||||
import { compile, type CompileProps, type CompileResult } from './compile.js';
|
import { type CompileProps, type CompileResult, compile } from './compile.js';
|
||||||
|
|
||||||
type CompilationCache = Map<string, CompileResult>;
|
type CompilationCache = Map<string, CompileResult>;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import yaml from 'js-yaml';
|
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||||
|
import yaml from 'js-yaml';
|
||||||
import type { AstroConfig, AstroSettings } from '../../@types/astro.js';
|
import type { AstroConfig, AstroSettings } from '../../@types/astro.js';
|
||||||
import { getContentPaths } from '../../content/index.js';
|
import { getContentPaths } from '../../content/index.js';
|
||||||
import { markdownContentEntryType } from '../../vite-plugin-markdown/content-entry-type.js';
|
import { markdownContentEntryType } from '../../vite-plugin-markdown/content-entry-type.js';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { EndpointHandler } from '../../../@types/astro.js';
|
import type { EndpointHandler } from '../../../@types/astro.js';
|
||||||
import { createRenderContext, type SSROptions } from '../../render/index.js';
|
import { type SSROptions, createRenderContext } from '../../render/index.js';
|
||||||
import { callEndpoint } from '../index.js';
|
import { callEndpoint } from '../index.js';
|
||||||
|
|
||||||
export async function call(options: SSROptions) {
|
export async function call(options: SSROptions) {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type http from 'node:http';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { performance } from 'perf_hooks';
|
import { performance } from 'perf_hooks';
|
||||||
import enableDestroy from 'server-destroy';
|
import enableDestroy from 'server-destroy';
|
||||||
import { preview, type PreviewServer as VitePreviewServer } from 'vite';
|
import { type PreviewServer as VitePreviewServer, preview } from 'vite';
|
||||||
import type { AstroSettings } from '../../@types/astro.js';
|
import type { AstroSettings } from '../../@types/astro.js';
|
||||||
import type { Logger } from '../logger/core.js';
|
import type { Logger } from '../logger/core.js';
|
||||||
import * as msg from '../messages.js';
|
import * as msg from '../messages.js';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import type {
|
||||||
SSRLoadedRenderer,
|
SSRLoadedRenderer,
|
||||||
SSRResult,
|
SSRResult,
|
||||||
} from '../../@types/astro.js';
|
} from '../../@types/astro.js';
|
||||||
import { renderSlotToString, type ComponentSlots } from '../../runtime/server/index.js';
|
import { type ComponentSlots, renderSlotToString } from '../../runtime/server/index.js';
|
||||||
import { renderJSX } from '../../runtime/server/jsx.js';
|
import { renderJSX } from '../../runtime/server/jsx.js';
|
||||||
import { chunkToString } from '../../runtime/server/render/index.js';
|
import { chunkToString } from '../../runtime/server/render/index.js';
|
||||||
import { AstroCookies } from '../cookies/index.js';
|
import { AstroCookies } from '../cookies/index.js';
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { dim } from 'kleur/colors';
|
|
||||||
import fsMod from 'node:fs';
|
import fsMod from 'node:fs';
|
||||||
import { performance } from 'node:perf_hooks';
|
import { performance } from 'node:perf_hooks';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { createServer, type HMRPayload } from 'vite';
|
import { dim } from 'kleur/colors';
|
||||||
|
import { type HMRPayload, createServer } from 'vite';
|
||||||
import type { AstroInlineConfig, AstroSettings } from '../../@types/astro.js';
|
import type { AstroInlineConfig, AstroSettings } from '../../@types/astro.js';
|
||||||
import { createContentTypesGenerator } from '../../content/index.js';
|
import { createContentTypesGenerator } from '../../content/index.js';
|
||||||
import { globalContentConfigObserver } from '../../content/utils.js';
|
import { globalContentConfigObserver } from '../../content/utils.js';
|
||||||
|
|
|
@ -4,7 +4,7 @@ import type {
|
||||||
SSRLoadedRenderer,
|
SSRLoadedRenderer,
|
||||||
SSRResult,
|
SSRResult,
|
||||||
} from '../../../@types/astro.js';
|
} from '../../../@types/astro.js';
|
||||||
import { createRenderInstruction, type RenderInstruction } from './instruction.js';
|
import { type RenderInstruction, createRenderInstruction } from './instruction.js';
|
||||||
|
|
||||||
import { clsx } from 'clsx';
|
import { clsx } from 'clsx';
|
||||||
import { AstroError, AstroErrorData } from '../../../core/errors/index.js';
|
import { AstroError, AstroErrorData } from '../../../core/errors/index.js';
|
||||||
|
@ -14,21 +14,21 @@ import { serializeProps } from '../serialize.js';
|
||||||
import { shorthash } from '../shorthash.js';
|
import { shorthash } from '../shorthash.js';
|
||||||
import { isPromise } from '../util.js';
|
import { isPromise } from '../util.js';
|
||||||
import {
|
import {
|
||||||
|
type AstroComponentFactory,
|
||||||
createAstroComponentInstance,
|
createAstroComponentInstance,
|
||||||
isAstroComponentFactory,
|
isAstroComponentFactory,
|
||||||
renderTemplate,
|
renderTemplate,
|
||||||
type AstroComponentFactory,
|
|
||||||
} from './astro/index.js';
|
} from './astro/index.js';
|
||||||
import {
|
import {
|
||||||
Fragment,
|
Fragment,
|
||||||
Renderer,
|
|
||||||
chunkToString,
|
|
||||||
type RenderDestination,
|
type RenderDestination,
|
||||||
type RenderInstance,
|
type RenderInstance,
|
||||||
|
Renderer,
|
||||||
|
chunkToString,
|
||||||
} from './common.js';
|
} from './common.js';
|
||||||
import { componentIsHTMLElement, renderHTMLElement } from './dom.js';
|
import { componentIsHTMLElement, renderHTMLElement } from './dom.js';
|
||||||
import { maybeRenderHead } from './head.js';
|
import { maybeRenderHead } from './head.js';
|
||||||
import { renderSlotToString, renderSlots, type ComponentSlots } from './slot.js';
|
import { type ComponentSlots, renderSlotToString, renderSlots } from './slot.js';
|
||||||
import { formatList, internalSpreadAttributes, renderElement, voidElementNames } from './util.js';
|
import { formatList, internalSpreadAttributes, renderElement, voidElementNames } from './util.js';
|
||||||
|
|
||||||
const needsHeadRenderingSymbol = Symbol.for('astro.needsHeadRendering');
|
const needsHeadRenderingSymbol = Symbol.for('astro.needsHeadRendering');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { RouteData, SSRResult } from '../../../@types/astro.js';
|
import type { RouteData, SSRResult } from '../../../@types/astro.js';
|
||||||
import { renderComponentToString, type NonAstroPageComponent } from './component.js';
|
import { type NonAstroPageComponent, renderComponentToString } from './component.js';
|
||||||
import type { AstroComponentFactory } from './index.js';
|
import type { AstroComponentFactory } from './index.js';
|
||||||
|
|
||||||
import { isAstroComponentFactory } from './astro/index.js';
|
import { isAstroComponentFactory } from './astro/index.js';
|
||||||
|
|
|
@ -12,9 +12,8 @@ export type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
||||||
|
|
||||||
// Name is pretty self descriptive, but it removes the index signature of an object
|
// Name is pretty self descriptive, but it removes the index signature of an object
|
||||||
export type OmitIndexSignature<ObjectType> = {
|
export type OmitIndexSignature<ObjectType> = {
|
||||||
[KeyType in keyof ObjectType as {} extends Record<KeyType, unknown>
|
[KeyType in
|
||||||
? never
|
keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType];
|
||||||
: KeyType]: ObjectType[KeyType];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Transform a string into its kebab case equivalent (camelCase -> kebab-case). Useful for CSS-in-JS to CSS.
|
// Transform a string into its kebab case equivalent (camelCase -> kebab-case). Useful for CSS-in-JS to CSS.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { transformWithEsbuild, type ESBuildTransformResult } from 'vite';
|
import { type ESBuildTransformResult, transformWithEsbuild } from 'vite';
|
||||||
import type { AstroConfig } from '../@types/astro.js';
|
import type { AstroConfig } from '../@types/astro.js';
|
||||||
import { cachedCompilation, type CompileProps, type CompileResult } from '../core/compile/index.js';
|
import { type CompileProps, type CompileResult, cachedCompilation } from '../core/compile/index.js';
|
||||||
import type { Logger } from '../core/logger/core.js';
|
import type { Logger } from '../core/logger/core.js';
|
||||||
import { getFileInfo } from '../vite-plugin-utils/index.js';
|
import { getFileInfo } from '../vite-plugin-utils/index.js';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { normalizePath, type ResolvedConfig, type Plugin as VitePlugin } from 'vite';
|
import { type Plugin as VitePlugin, type ResolvedConfig, normalizePath } from 'vite';
|
||||||
import type { AstroSettings } from '../@types/astro.js';
|
import type { AstroSettings } from '../@types/astro.js';
|
||||||
|
|
||||||
type Alias = {
|
type Alias = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import {
|
|
||||||
createMarkdownProcessor,
|
|
||||||
InvalidAstroDataError,
|
|
||||||
type MarkdownProcessor,
|
|
||||||
} from '@astrojs/markdown-remark';
|
|
||||||
import matter from 'gray-matter';
|
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import {
|
||||||
|
InvalidAstroDataError,
|
||||||
|
type MarkdownProcessor,
|
||||||
|
createMarkdownProcessor,
|
||||||
|
} from '@astrojs/markdown-remark';
|
||||||
|
import matter from 'gray-matter';
|
||||||
import type { Plugin } from 'vite';
|
import type { Plugin } from 'vite';
|
||||||
import { normalizePath } from 'vite';
|
import { normalizePath } from 'vite';
|
||||||
import type { AstroSettings } from '../@types/astro.js';
|
import type { AstroSettings } from '../@types/astro.js';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { TransformResult } from 'rollup';
|
import type { TransformResult } from 'rollup';
|
||||||
import { transformWithEsbuild, type Plugin, type ResolvedConfig } from 'vite';
|
import { type Plugin, type ResolvedConfig, transformWithEsbuild } from 'vite';
|
||||||
import type { AstroRenderer, AstroSettings } from '../@types/astro.js';
|
import type { AstroRenderer, AstroSettings } from '../@types/astro.js';
|
||||||
import type { Logger } from '../core/logger/core.js';
|
import type { Logger } from '../core/logger/core.js';
|
||||||
import type { PluginMetadata } from '../vite-plugin-astro/types.js';
|
import type { PluginMetadata } from '../vite-plugin-astro/types.js';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import ancestor from 'common-ancestor-path';
|
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import ancestor from 'common-ancestor-path';
|
||||||
import type { AstroConfig } from '../@types/astro.js';
|
import type { AstroConfig } from '../@types/astro.js';
|
||||||
import {
|
import {
|
||||||
appendExtension,
|
appendExtension,
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// Enable top-level await, and other modern ESM features.
|
// Enable top-level await, and other modern ESM features.
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
// Enable node-style module resolution, for things like npm package imports.
|
// Enable node-style module resolution, for things like npm package imports.
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "Bundler",
|
||||||
// Allow importing TypeScript files using their native extension (.ts(x)).
|
// Allow importing TypeScript files using their native extension (.ts(x)).
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
// Enable JSON imports.
|
// Enable JSON imports.
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
// Enforce the usage of type-only imports when needed, which helps avoiding bundling issues.
|
// Enforce the usage of type-only imports when needed, which helps avoiding bundling issues.
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
// Ensure that each file can be transpiled without relying on other imports.
|
// Ensure that each file can be transpiled without relying on other imports.
|
||||||
// This is redundant with the previous option, however it ensures that it's on even if someone disable `verbatimModuleSyntax`
|
// This is redundant with the previous option, however it ensures that it's on even if someone disable `verbatimModuleSyntax`
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
// Astro directly run TypeScript code, no transpilation needed.
|
// Astro directly run TypeScript code, no transpilation needed.
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
// Report an error when importing a file using a casing different from another import of the same file.
|
// Report an error when importing a file using a casing different from another import of the same file.
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
// Properly support importing CJS modules in ESM
|
// Properly support importing CJS modules in ESM
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
// Skip typechecking libraries and .d.ts files
|
// Skip typechecking libraries and .d.ts files
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
// Allow JavaScript files to be imported
|
// Allow JavaScript files to be imported
|
||||||
"allowJs": true
|
"allowJs": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
"extends": "./base.json",
|
"extends": "./base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// Enable strict mode. This enables a few options at a time, see https://www.typescriptlang.org/tsconfig#strict for a list.
|
// Enable strict mode. This enables a few options at a time, see https://www.typescriptlang.org/tsconfig#strict for a list.
|
||||||
"strict": true
|
"strict": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
"extends": "./strict.json",
|
"extends": "./strict.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// Report errors for fallthrough cases in switch statements
|
// Report errors for fallthrough cases in switch statements
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
// Force functions designed to override their parent class to be specified as `override`.
|
// Force functions designed to override their parent class to be specified as `override`.
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
// Force functions to specify that they can return `undefined` if a possible code path does not return a value.
|
// Force functions to specify that they can return `undefined` if a possible code path does not return a value.
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
// Report an error when a variable is declared but never used.
|
// Report an error when a variable is declared but never used.
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
// Report an error when a parameter is declared but never used.
|
// Report an error when a parameter is declared but never used.
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
// Force the usage of the indexed syntax to access fields declared using an index signature.
|
// Force the usage of the indexed syntax to access fields declared using an index signature.
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
// Report an error when the value `undefined` is given to an optional property that doesn't specify `undefined` as a valid value.
|
// Report an error when the value `undefined` is given to an optional property that doesn't specify `undefined` as a valid value.
|
||||||
"exactOptionalPropertyTypes": true,
|
"exactOptionalPropertyTypes": true,
|
||||||
// Report an error for unreachable code instead of just a warning.
|
// Report an error for unreachable code instead of just a warning.
|
||||||
"allowUnreachableCode": false,
|
"allowUnreachableCode": false,
|
||||||
// Report an error for unused labels instead of just a warning.
|
// Report an error for unused labels instead of just a warning.
|
||||||
"allowUnusedLabels": false,
|
"allowUnusedLabels": false,
|
||||||
// Disallow JavaScript files from being imported
|
// Disallow JavaScript files from being imported
|
||||||
"allowJs": false
|
"allowJs": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import os from 'node:os';
|
||||||
import { prompt } from '@astrojs/cli-kit';
|
import { prompt } from '@astrojs/cli-kit';
|
||||||
import { random } from '@astrojs/cli-kit/utils';
|
import { random } from '@astrojs/cli-kit/utils';
|
||||||
import arg from 'arg';
|
import arg from 'arg';
|
||||||
import os from 'node:os';
|
|
||||||
|
|
||||||
import { getName, getVersion } from '../messages.js';
|
import { getName, getVersion } from '../messages.js';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { Context } from './context.js';
|
import type { Context } from './context.js';
|
||||||
|
|
||||||
import { color } from '@astrojs/cli-kit';
|
|
||||||
import dns from 'node:dns/promises';
|
import dns from 'node:dns/promises';
|
||||||
|
import { color } from '@astrojs/cli-kit';
|
||||||
import { bannerAbort, error, info, log } from '../messages.js';
|
import { bannerAbort, error, info, log } from '../messages.js';
|
||||||
import { getTemplateTarget } from './template.js';
|
import { getTemplateTarget } from './template.js';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* eslint no-console: 'off' */
|
|
||||||
import { color, say as houston, label, spinner as load } from '@astrojs/cli-kit';
|
|
||||||
import { align, sleep } from '@astrojs/cli-kit/utils';
|
|
||||||
import { exec } from 'node:child_process';
|
import { exec } from 'node:child_process';
|
||||||
|
/* eslint no-console: 'off' */
|
||||||
|
import { color, label, say as houston, spinner as load } from '@astrojs/cli-kit';
|
||||||
|
import { align, sleep } from '@astrojs/cli-kit/utils';
|
||||||
import stripAnsi from 'strip-ansi';
|
import stripAnsi from 'strip-ansi';
|
||||||
import { shell } from './shell.js';
|
import { shell } from './shell.js';
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
import type { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
import type { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
||||||
import type { AstroAdapter, AstroConfig, AstroIntegration, RouteData } from 'astro';
|
import type { AstroAdapter, AstroConfig, AstroIntegration, RouteData } from 'astro';
|
||||||
|
|
||||||
|
import * as fs from 'node:fs';
|
||||||
|
import * as os from 'node:os';
|
||||||
|
import { sep } from 'node:path';
|
||||||
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||||
import { createRedirectsFromAstroRoutes } from '@astrojs/underscore-redirects';
|
import { createRedirectsFromAstroRoutes } from '@astrojs/underscore-redirects';
|
||||||
import { CacheStorage } from '@miniflare/cache';
|
import { CacheStorage } from '@miniflare/cache';
|
||||||
import { NoOpLog } from '@miniflare/shared';
|
import { NoOpLog } from '@miniflare/shared';
|
||||||
import { MemoryStorage } from '@miniflare/storage-memory';
|
import { MemoryStorage } from '@miniflare/storage-memory';
|
||||||
import { AstroError } from 'astro/errors';
|
import { AstroError } from 'astro/errors';
|
||||||
import esbuild from 'esbuild';
|
import esbuild from 'esbuild';
|
||||||
import * as fs from 'node:fs';
|
|
||||||
import * as os from 'node:os';
|
|
||||||
import { sep } from 'node:path';
|
|
||||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
||||||
import glob from 'tiny-glob';
|
import glob from 'tiny-glob';
|
||||||
import { getEnvVars } from './parser.js';
|
import { getEnvVars } from './parser.js';
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
* TODO: Tackle this file, once their is an decision on the upstream request
|
* TODO: Tackle this file, once their is an decision on the upstream request
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as fs from 'node:fs';
|
||||||
|
import { dirname, resolve } from 'node:path';
|
||||||
import TOML from '@iarna/toml';
|
import TOML from '@iarna/toml';
|
||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
import { findUpSync } from 'find-up';
|
import { findUpSync } from 'find-up';
|
||||||
import * as fs from 'node:fs';
|
|
||||||
import { dirname, resolve } from 'node:path';
|
|
||||||
|
|
||||||
function findWranglerToml(
|
function findWranglerToml(
|
||||||
referencePath: string = process.cwd(),
|
referencePath: string = process.cwd(),
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
import fs from 'node:fs/promises';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
import { markdownConfigDefaults, setVfileFrontmatter } from '@astrojs/markdown-remark';
|
import { markdownConfigDefaults, setVfileFrontmatter } from '@astrojs/markdown-remark';
|
||||||
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
|
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
|
||||||
import type { AstroIntegration, ContentEntryType, HookParameters, SSRError } from 'astro';
|
import type { AstroIntegration, ContentEntryType, HookParameters, SSRError } from 'astro';
|
||||||
import astroJSXRenderer from 'astro/jsx/renderer.js';
|
import astroJSXRenderer from 'astro/jsx/renderer.js';
|
||||||
import { parse as parseESM } from 'es-module-lexer';
|
import { parse as parseESM } from 'es-module-lexer';
|
||||||
import fs from 'node:fs/promises';
|
|
||||||
import { fileURLToPath } from 'node:url';
|
|
||||||
import type { Options as RemarkRehypeOptions } from 'remark-rehype';
|
import type { Options as RemarkRehypeOptions } from 'remark-rehype';
|
||||||
import { VFile } from 'vfile';
|
import { VFile } from 'vfile';
|
||||||
import type { Plugin as VitePlugin } from 'vite';
|
import type { Plugin as VitePlugin } from 'vite';
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue