chore: use biome to format JSON and JavaScript files
This commit is contained in:
parent
fca6892f8d
commit
07613b96bb
350 changed files with 2176 additions and 1760 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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
56
.github/scripts/bundle-size.mjs
vendored
56
.github/scripts/bundle-size.mjs
vendored
|
@ -1,18 +1,18 @@
|
||||||
import { build } from 'esbuild';
|
|
||||||
import { existsSync } from 'node:fs';
|
import { existsSync } from 'node:fs';
|
||||||
|
import { build } from 'esbuild';
|
||||||
|
|
||||||
const CLIENT_RUNTIME_PATH = 'packages/astro/src/runtime/client/';
|
const CLIENT_RUNTIME_PATH = 'packages/astro/src/runtime/client/';
|
||||||
|
|
||||||
function formatBytes(bytes, decimals = 2) {
|
function formatBytes(bytes, decimals = 2) {
|
||||||
if (bytes === 0) return '0 B';
|
if (bytes === 0) return '0 B';
|
||||||
|
|
||||||
const k = 1024;
|
const k = 1024;
|
||||||
const dm = decimals < 0 ? 0 : decimals;
|
const dm = decimals < 0 ? 0 : decimals;
|
||||||
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
||||||
|
|
||||||
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||||
|
|
||||||
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function checkBundleSize({ github, context }) {
|
export default async function checkBundleSize({ github, context }) {
|
||||||
|
@ -24,7 +24,7 @@ export default async function checkBundleSize({ github, context }) {
|
||||||
pull_number: PR_NUM,
|
pull_number: PR_NUM,
|
||||||
});
|
});
|
||||||
const clientRuntimeFiles = files.filter((file) => {
|
const clientRuntimeFiles = files.filter((file) => {
|
||||||
return file.filename.startsWith(CLIENT_RUNTIME_PATH) && file.status !== 'removed'
|
return file.filename.startsWith(CLIENT_RUNTIME_PATH) && file.status !== 'removed';
|
||||||
});
|
});
|
||||||
if (clientRuntimeFiles.length === 0) return;
|
if (clientRuntimeFiles.length === 0) return;
|
||||||
|
|
||||||
|
@ -35,17 +35,26 @@ export default async function checkBundleSize({ github, context }) {
|
||||||
const output = await bundle(clientRuntimeFiles);
|
const output = await bundle(clientRuntimeFiles);
|
||||||
|
|
||||||
for (let [filename, { oldSize, newSize, sourceFile }] of Object.entries(output)) {
|
for (let [filename, { oldSize, newSize, sourceFile }] of Object.entries(output)) {
|
||||||
filename = ['idle', 'load', 'media', 'only', 'visible'].includes(filename) ? `client:${filename}` : filename;
|
filename = ['idle', 'load', 'media', 'only', 'visible'].includes(filename)
|
||||||
const prefix = (newSize - oldSize) === 0 ? '' : (newSize - oldSize) > 0 ? '+ ' : '- ';
|
? `client:${filename}`
|
||||||
|
: filename;
|
||||||
|
const prefix = newSize - oldSize === 0 ? '' : newSize - oldSize > 0 ? '+ ' : '- ';
|
||||||
const change = `${prefix}${formatBytes(newSize - oldSize)}`;
|
const change = `${prefix}${formatBytes(newSize - oldSize)}`;
|
||||||
table.push(`| [\`${filename}\`](https://github.com/${context.repo.owner}/${context.repo.repo}/tree/${context.payload.pull_request.head.ref}/${sourceFile}) | ${formatBytes(oldSize)} | ${formatBytes(newSize)} | ${change} |`);
|
table.push(
|
||||||
|
`| [\`${filename}\`](https://github.com/${context.repo.owner}/${context.repo.repo}/tree/${
|
||||||
|
context.payload.pull_request.head.ref
|
||||||
|
}/${sourceFile}) | ${formatBytes(oldSize)} | ${formatBytes(newSize)} | ${change} |`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data: comments } = await github.rest.issues.listComments({
|
const { data: comments } = await github.rest.issues.listComments({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
issue_number: PR_NUM
|
issue_number: PR_NUM,
|
||||||
})
|
});
|
||||||
const comment = comments.find(comment => comment.user.login === 'github-actions[bot]' && comment.body.includes('Bundle Size Check'));
|
const comment = comments.find(
|
||||||
|
(comment) =>
|
||||||
|
comment.user.login === 'github-actions[bot]' && comment.body.includes('Bundle Size Check')
|
||||||
|
);
|
||||||
const method = comment ? 'updateComment' : 'createComment';
|
const method = comment ? 'updateComment' : 'createComment';
|
||||||
const payload = comment ? { comment_id: comment.id } : { issue_number: PR_NUM };
|
const payload = comment ? { comment_id: comment.id } : { issue_number: PR_NUM };
|
||||||
await github.rest.issues[method]({
|
await github.rest.issues[method]({
|
||||||
|
@ -60,26 +69,35 @@ ${table.join('\n')}`,
|
||||||
}
|
}
|
||||||
|
|
||||||
async function bundle(files) {
|
async function bundle(files) {
|
||||||
|
|
||||||
const { metafile } = await build({
|
const { metafile } = await build({
|
||||||
entryPoints: [...files.map(({ filename }) => filename), ...files.map(({ filename }) => `main/${filename}`).filter(f => existsSync(f))],
|
entryPoints: [
|
||||||
|
...files.map(({ filename }) => filename),
|
||||||
|
...files.map(({ filename }) => `main/${filename}`).filter((f) => existsSync(f)),
|
||||||
|
],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
target: ['es2018'],
|
target: ['es2018'],
|
||||||
outdir: 'out',
|
outdir: 'out',
|
||||||
metafile: true,
|
metafile: true,
|
||||||
})
|
});
|
||||||
|
|
||||||
return Object.entries(metafile.outputs).reduce((acc, [filename, info]) => {
|
return Object.entries(metafile.outputs).reduce((acc, [filename, info]) => {
|
||||||
filename = filename.slice('out/'.length);
|
filename = filename.slice('out/'.length);
|
||||||
if (filename.startsWith('main/')) {
|
if (filename.startsWith('main/')) {
|
||||||
filename = filename.slice('main/'.length).replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
|
filename = filename.slice('main/'.length).replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
|
||||||
const oldSize = info.bytes;
|
const oldSize = info.bytes;
|
||||||
return Object.assign(acc, { [filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { oldSize }) });
|
return Object.assign(acc, {
|
||||||
|
[filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { oldSize }),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
filename = filename.replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
|
filename = filename.replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
|
||||||
const newSize = info.bytes;
|
const newSize = info.bytes;
|
||||||
return Object.assign(acc, { [filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { newSize, sourceFile: Object.keys(info.inputs).find(src => src.endsWith('.ts')) }) });
|
return Object.assign(acc, {
|
||||||
|
[filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, {
|
||||||
|
newSize,
|
||||||
|
sourceFile: Object.keys(info.inputs).find((src) => src.endsWith('.ts')),
|
||||||
|
}),
|
||||||
|
});
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,3 +16,8 @@ benchmark/results/
|
||||||
|
|
||||||
# Files
|
# Files
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
|
*.js
|
||||||
|
*.ts
|
||||||
|
*.mjs
|
||||||
|
*.cjs
|
||||||
|
*.json
|
||||||
|
|
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { execaCommand } from 'execa';
|
|
||||||
import { markdownTable } from 'markdown-table';
|
|
||||||
import fs from 'node:fs/promises';
|
import fs from 'node:fs/promises';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import { execaCommand } from 'execa';
|
||||||
|
import { markdownTable } from 'markdown-table';
|
||||||
import { astroBin } from './_util.js';
|
import { astroBin } from './_util.js';
|
||||||
|
|
||||||
/** @typedef {Record<string, import('../../packages/astro/src/core/config/timer').Stat>} AstroTimerStat */
|
/** @typedef {Record<string, import('../../packages/astro/src/core/config/timer').Stat>} AstroTimerStat */
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { execaCommand } from 'execa';
|
|
||||||
import { markdownTable } from 'markdown-table';
|
|
||||||
import fs from 'node:fs/promises';
|
import fs from 'node:fs/promises';
|
||||||
import http from 'node:http';
|
import http from 'node:http';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import { execaCommand } from 'execa';
|
||||||
|
import { markdownTable } from 'markdown-table';
|
||||||
import { waitUntilBusy } from 'port-authority';
|
import { waitUntilBusy } from 'port-authority';
|
||||||
import { calculateStat, astroBin } from './_util.js';
|
import { calculateStat, astroBin } from './_util.js';
|
||||||
import { renderFiles } from '../make-project/render-default.js';
|
import { renderFiles } from '../make-project/render-default.js';
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import fs from 'node:fs/promises';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
import autocannon from 'autocannon';
|
import autocannon from 'autocannon';
|
||||||
import { execaCommand } from 'execa';
|
import { execaCommand } from 'execa';
|
||||||
import { markdownTable } from 'markdown-table';
|
import { markdownTable } from 'markdown-table';
|
||||||
import fs from 'node:fs/promises';
|
|
||||||
import { fileURLToPath } from 'node:url';
|
|
||||||
import { waitUntilBusy } from 'port-authority';
|
import { waitUntilBusy } from 'port-authority';
|
||||||
import pb from 'pretty-bytes';
|
import pb from 'pretty-bytes';
|
||||||
import { astroBin } from './_util.js';
|
import { astroBin } from './_util.js';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import mri from 'mri';
|
|
||||||
import fs from 'node:fs/promises';
|
import fs from 'node:fs/promises';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { pathToFileURL } from 'node:url';
|
import { pathToFileURL } from 'node:url';
|
||||||
|
import mri from 'mri';
|
||||||
|
|
||||||
const args = mri(process.argv.slice(2));
|
const args = mri(process.argv.slice(2));
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CreatePreviewServer } from 'astro';
|
|
||||||
import { createServer } from 'node:http';
|
import { createServer } from 'node:http';
|
||||||
|
import type { CreatePreviewServer } from 'astro';
|
||||||
import enableDestroy from 'server-destroy';
|
import enableDestroy from 'server-destroy';
|
||||||
|
|
||||||
const preview: CreatePreviewServer = async function ({ serverEntrypoint, host, port }) {
|
const preview: CreatePreviewServer = async function ({ serverEntrypoint, host, port }) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
||||||
import type { SSRManifest } from 'astro';
|
import type { SSRManifest } from 'astro';
|
||||||
import { NodeApp, applyPolyfills } from 'astro/app/node';
|
import { NodeApp, applyPolyfills } from 'astro/app/node';
|
||||||
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
||||||
|
|
||||||
applyPolyfills();
|
applyPolyfills();
|
||||||
|
|
||||||
|
|
38
biome.json
Normal file
38
biome.json
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
|
||||||
|
"organizeImports": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"ignoreUnknown": true,
|
||||||
|
"ignore": [
|
||||||
|
"examples/basics/src/layouts/**",
|
||||||
|
"examples/with-nanostores/src/layouts/**",
|
||||||
|
"benchmark/projects/**",
|
||||||
|
"benchmark/results/**",
|
||||||
|
"**/dist",
|
||||||
|
"**/smoke",
|
||||||
|
"**/node_modules",
|
||||||
|
"**/fixtures",
|
||||||
|
"**/vendor",
|
||||||
|
"**/.vercel"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"formatter": {
|
||||||
|
"lineWidth": 100
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"formatter": {
|
||||||
|
"quoteStyle": "single",
|
||||||
|
"trailingComma": "es5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"parser": {
|
||||||
|
"allowComments": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
import sitemap from '@astrojs/sitemap';
|
import sitemap from '@astrojs/sitemap';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import rss from '@astrojs/rss';
|
import rss from '@astrojs/rss';
|
||||||
|
import { SITE_DESCRIPTION, SITE_TITLE } from '../consts';
|
||||||
import { getCollection } from 'astro:content';
|
import { getCollection } from 'astro:content';
|
||||||
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
|
|
||||||
|
|
||||||
export async function GET(context) {
|
export async function GET(context) {
|
||||||
const posts = await getCollection('blog');
|
const posts = await getCollection('blog');
|
||||||
|
|
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,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import alpine from '@astrojs/alpinejs';
|
import alpine from '@astrojs/alpinejs';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import lit from '@astrojs/lit';
|
import lit from '@astrojs/lit';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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,9 +1,9 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import preact from '@astrojs/preact';
|
import preact from '@astrojs/preact';
|
||||||
import react from '@astrojs/react';
|
import react from '@astrojs/react';
|
||||||
|
import solid from '@astrojs/solid-js';
|
||||||
import svelte from '@astrojs/svelte';
|
import svelte from '@astrojs/svelte';
|
||||||
import vue from '@astrojs/vue';
|
import vue from '@astrojs/vue';
|
||||||
import solid from '@astrojs/solid-js';
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import preact from '@astrojs/preact';
|
import preact from '@astrojs/preact';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { h, Fragment } from 'preact';
|
import { Fragment, h } from 'preact';
|
||||||
import './Counter.css';
|
import './Counter.css';
|
||||||
|
|
||||||
export default function Counter({ children, count }) {
|
export default function Counter({ children, count }) {
|
||||||
|
|
|
@ -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,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import react from '@astrojs/react';
|
import react from '@astrojs/react';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import solid from '@astrojs/solid-js';
|
import solid from '@astrojs/solid-js';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import svelte from '@astrojs/svelte';
|
import svelte from '@astrojs/svelte';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import vue from '@astrojs/vue';
|
import vue from '@astrojs/vue';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import node from '@astrojs/node';
|
import node from '@astrojs/node';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import node from '@astrojs/node';
|
import node from '@astrojs/node';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMiddleware, sequence } from 'astro:middleware';
|
|
||||||
import htmlMinifier from 'html-minifier';
|
import htmlMinifier from 'html-minifier';
|
||||||
|
import { defineMiddleware, sequence } from 'astro:middleware';
|
||||||
|
|
||||||
const limit = 50;
|
const limit = 50;
|
||||||
|
|
||||||
|
|
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,6 +1,6 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import svelte from '@astrojs/svelte';
|
|
||||||
import node from '@astrojs/node';
|
import node from '@astrojs/node';
|
||||||
|
import svelte from '@astrojs/svelte';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -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,5 +1,5 @@
|
||||||
import { productMap } from '../../../models/db';
|
|
||||||
import type { APIContext } from 'astro';
|
import type { APIContext } from 'astro';
|
||||||
|
import { productMap } from '../../../models/db';
|
||||||
|
|
||||||
export function GET({ params }: APIContext) {
|
export function GET({ params }: APIContext) {
|
||||||
const id = Number(params.id);
|
const id = Number(params.id);
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import markdoc from '@astrojs/markdoc';
|
import markdoc from '@astrojs/markdoc';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { defineMarkdocConfig, component } from '@astrojs/markdoc/config';
|
import { component, defineMarkdocConfig } from '@astrojs/markdoc/config';
|
||||||
|
|
||||||
export default defineMarkdocConfig({
|
export default defineMarkdocConfig({
|
||||||
tags: {
|
tags: {
|
||||||
|
|
|
@ -10,9 +10,7 @@ const adder = ([selector, className]) => {
|
||||||
return (node) => selectAll(selector, node).forEach(writer);
|
return (node) => selectAll(selector, node).forEach(writer);
|
||||||
};
|
};
|
||||||
|
|
||||||
const write =
|
const write = (className) => ({ properties }) => {
|
||||||
(className) =>
|
if (!properties.className) properties.className = className;
|
||||||
({ properties }) => {
|
else properties.className += ` ${className}`;
|
||||||
if (!properties.className) properties.className = className;
|
};
|
||||||
else properties.className += ` ${className}`;
|
|
||||||
};
|
|
||||||
|
|
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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
import preact from '@astrojs/preact';
|
import preact from '@astrojs/preact';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import preact from '@astrojs/preact';
|
import preact from '@astrojs/preact';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { isCartOpen, addCartItem } from '../cartStore';
|
|
||||||
import type { CartItemDisplayInfo } from '../cartStore';
|
|
||||||
import type { ComponentChildren } from 'preact';
|
import type { ComponentChildren } from 'preact';
|
||||||
|
import { addCartItem, isCartOpen } from '../cartStore';
|
||||||
|
import type { CartItemDisplayInfo } from '../cartStore';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
item: CartItemDisplayInfo;
|
item: CartItemDisplayInfo;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
|
||||||
import tailwind from '@astrojs/tailwind';
|
import tailwind from '@astrojs/tailwind';
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue