From 178f74c9a759dbc9131ba85ca5261c73a0b148c3 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Thu, 23 Feb 2023 15:36:28 +0000 Subject: [PATCH] [ci] format --- .devcontainer/basics/devcontainer.json | 62 +++++++++---------- .devcontainer/blog/devcontainer.json | 62 +++++++++---------- .devcontainer/component/devcontainer.json | 40 +++++------- .devcontainer/deno/devcontainer.json | 62 +++++++++---------- .devcontainer/devcontainer.json | 10 +-- .devcontainer/docs/devcontainer.json | 62 +++++++++---------- .../framework-alpine/devcontainer.json | 62 +++++++++---------- .devcontainer/framework-lit/devcontainer.json | 62 +++++++++---------- .../framework-multiple/devcontainer.json | 62 +++++++++---------- .../framework-preact/devcontainer.json | 62 +++++++++---------- .../framework-react/devcontainer.json | 62 +++++++++---------- .../framework-solid/devcontainer.json | 62 +++++++++---------- .../framework-svelte/devcontainer.json | 62 +++++++++---------- .devcontainer/framework-vue/devcontainer.json | 62 +++++++++---------- .devcontainer/hackernews/devcontainer.json | 62 +++++++++---------- .devcontainer/integration/devcontainer.json | 40 +++++------- .devcontainer/minimal/devcontainer.json | 62 +++++++++---------- .../non-html-pages/devcontainer.json | 62 +++++++++---------- .devcontainer/portfolio/devcontainer.json | 62 +++++++++---------- .devcontainer/ssr/devcontainer.json | 62 +++++++++---------- .../with-markdown-plugins/devcontainer.json | 62 +++++++++---------- .../with-markdown-shiki/devcontainer.json | 62 +++++++++---------- .devcontainer/with-mdx/devcontainer.json | 62 +++++++++---------- .../with-nanostores/devcontainer.json | 62 +++++++++---------- .../with-tailwindcss/devcontainer.json | 62 +++++++++---------- .../with-vite-plugin-pwa/devcontainer.json | 62 +++++++++---------- .devcontainer/with-vitest/devcontainer.json | 62 +++++++++---------- CONTRIBUTING.md | 2 +- 28 files changed, 709 insertions(+), 871 deletions(-) diff --git a/.devcontainer/basics/devcontainer.json b/.devcontainer/basics/devcontainer.json index e46548a8b500..dd6b9a02ccad 100644 --- a/.devcontainer/basics/devcontainer.json +++ b/.devcontainer/basics/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/basics", + "workspaceFolder": "/workspaces/astro/examples/basics", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/blog/devcontainer.json b/.devcontainer/blog/devcontainer.json index c75c2c1562f2..420c862eff0a 100644 --- a/.devcontainer/blog/devcontainer.json +++ b/.devcontainer/blog/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/blog", + "workspaceFolder": "/workspaces/astro/examples/blog", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/component/devcontainer.json b/.devcontainer/component/devcontainer.json index b7ef11c6a3b6..a550e022bdf6 100644 --- a/.devcontainer/component/devcontainer.json +++ b/.devcontainer/component/devcontainer.json @@ -1,27 +1,21 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, + + "workspaceFolder": "/workspaces/astro/examples/component", + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - "workspaceFolder": "/workspaces/astro/examples/component", - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "customizations": { - "codespaces": { - "openFiles": [ - "src/MyComponent.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "waitFor": "postCreateCommand", + + "customizations": { + "codespaces": { + "openFiles": ["src/MyComponent.astro"] + }, + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/deno/devcontainer.json b/.devcontainer/deno/devcontainer.json index e7404e622618..e788fd7f819a 100644 --- a/.devcontainer/deno/devcontainer.json +++ b/.devcontainer/deno/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.deno.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.deno.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/deno", + "workspaceFolder": "/workspaces/astro/examples/deno", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ed87f95e9039..506ef87fca20 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,16 +18,10 @@ "customizations": { "codespaces": { - "openFiles": [ - "README.md", - "CONTRIBUTING.md" - ] + "openFiles": ["README.md", "CONTRIBUTING.md"] }, "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } } diff --git a/.devcontainer/docs/devcontainer.json b/.devcontainer/docs/devcontainer.json index 9c57d982500b..8bf71084decd 100644 --- a/.devcontainer/docs/devcontainer.json +++ b/.devcontainer/docs/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/docs", + "workspaceFolder": "/workspaces/astro/examples/docs", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-alpine/devcontainer.json b/.devcontainer/framework-alpine/devcontainer.json index 6e3293f1a39f..8cef52467c12 100644 --- a/.devcontainer/framework-alpine/devcontainer.json +++ b/.devcontainer/framework-alpine/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-alpine", + "workspaceFolder": "/workspaces/astro/examples/framework-alpine", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-lit/devcontainer.json b/.devcontainer/framework-lit/devcontainer.json index 2fbcfe74b74d..0ca36d89442e 100644 --- a/.devcontainer/framework-lit/devcontainer.json +++ b/.devcontainer/framework-lit/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-lit", + "workspaceFolder": "/workspaces/astro/examples/framework-lit", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-multiple/devcontainer.json b/.devcontainer/framework-multiple/devcontainer.json index fddd478e41d6..acbab0034cb8 100644 --- a/.devcontainer/framework-multiple/devcontainer.json +++ b/.devcontainer/framework-multiple/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-multiple", + "workspaceFolder": "/workspaces/astro/examples/framework-multiple", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-preact/devcontainer.json b/.devcontainer/framework-preact/devcontainer.json index f5a46a7ff08a..6d35b557123c 100644 --- a/.devcontainer/framework-preact/devcontainer.json +++ b/.devcontainer/framework-preact/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-preact", + "workspaceFolder": "/workspaces/astro/examples/framework-preact", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-react/devcontainer.json b/.devcontainer/framework-react/devcontainer.json index f6b019dcd5c6..03f2dd8f0460 100644 --- a/.devcontainer/framework-react/devcontainer.json +++ b/.devcontainer/framework-react/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-react", + "workspaceFolder": "/workspaces/astro/examples/framework-react", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-solid/devcontainer.json b/.devcontainer/framework-solid/devcontainer.json index e4e980a2123c..d73ccb573ab5 100644 --- a/.devcontainer/framework-solid/devcontainer.json +++ b/.devcontainer/framework-solid/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-solid", + "workspaceFolder": "/workspaces/astro/examples/framework-solid", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-svelte/devcontainer.json b/.devcontainer/framework-svelte/devcontainer.json index 3b75f04174e1..d673d94d0f13 100644 --- a/.devcontainer/framework-svelte/devcontainer.json +++ b/.devcontainer/framework-svelte/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-svelte", + "workspaceFolder": "/workspaces/astro/examples/framework-svelte", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/framework-vue/devcontainer.json b/.devcontainer/framework-vue/devcontainer.json index 7f55d94db077..3f9f2302e93a 100644 --- a/.devcontainer/framework-vue/devcontainer.json +++ b/.devcontainer/framework-vue/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/framework-vue", + "workspaceFolder": "/workspaces/astro/examples/framework-vue", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/hackernews/devcontainer.json b/.devcontainer/hackernews/devcontainer.json index abf263340546..debe9557b487 100644 --- a/.devcontainer/hackernews/devcontainer.json +++ b/.devcontainer/hackernews/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/hackernews", + "workspaceFolder": "/workspaces/astro/examples/hackernews", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/[...stories].astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/[...stories].astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/integration/devcontainer.json b/.devcontainer/integration/devcontainer.json index 3e929b961f9a..d9fc07f12f25 100644 --- a/.devcontainer/integration/devcontainer.json +++ b/.devcontainer/integration/devcontainer.json @@ -1,27 +1,21 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, + + "workspaceFolder": "/workspaces/astro/examples/integration", + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - "workspaceFolder": "/workspaces/astro/examples/integration", - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "customizations": { - "codespaces": { - "openFiles": [ - "index.ts" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "waitFor": "postCreateCommand", + + "customizations": { + "codespaces": { + "openFiles": ["index.ts"] + }, + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/minimal/devcontainer.json b/.devcontainer/minimal/devcontainer.json index cad1a634a735..c1463901e513 100644 --- a/.devcontainer/minimal/devcontainer.json +++ b/.devcontainer/minimal/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/minimal", + "workspaceFolder": "/workspaces/astro/examples/minimal", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/non-html-pages/devcontainer.json b/.devcontainer/non-html-pages/devcontainer.json index 68e92fd3457e..97e0be06b74b 100644 --- a/.devcontainer/non-html-pages/devcontainer.json +++ b/.devcontainer/non-html-pages/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/non-html-pages", + "workspaceFolder": "/workspaces/astro/examples/non-html-pages", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/portfolio/devcontainer.json b/.devcontainer/portfolio/devcontainer.json index b24dc5306022..76ac10a00021 100644 --- a/.devcontainer/portfolio/devcontainer.json +++ b/.devcontainer/portfolio/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/portfolio", + "workspaceFolder": "/workspaces/astro/examples/portfolio", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/ssr/devcontainer.json b/.devcontainer/ssr/devcontainer.json index 8990e1258122..af267e73535f 100644 --- a/.devcontainer/ssr/devcontainer.json +++ b/.devcontainer/ssr/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/ssr", + "workspaceFolder": "/workspaces/astro/examples/ssr", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-markdown-plugins/devcontainer.json b/.devcontainer/with-markdown-plugins/devcontainer.json index 3ddb25c73978..68a4db70da78 100644 --- a/.devcontainer/with-markdown-plugins/devcontainer.json +++ b/.devcontainer/with-markdown-plugins/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins", + "workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.md"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.md" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-markdown-shiki/devcontainer.json b/.devcontainer/with-markdown-shiki/devcontainer.json index c35d865f803a..74795314c310 100644 --- a/.devcontainer/with-markdown-shiki/devcontainer.json +++ b/.devcontainer/with-markdown-shiki/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki", + "workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.md"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.md" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-mdx/devcontainer.json b/.devcontainer/with-mdx/devcontainer.json index b1953e3c1261..a7f4d34a5e1e 100644 --- a/.devcontainer/with-mdx/devcontainer.json +++ b/.devcontainer/with-mdx/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-mdx", + "workspaceFolder": "/workspaces/astro/examples/with-mdx", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.mdx"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.mdx" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-nanostores/devcontainer.json b/.devcontainer/with-nanostores/devcontainer.json index 595049596d0b..dc0b86c2171a 100644 --- a/.devcontainer/with-nanostores/devcontainer.json +++ b/.devcontainer/with-nanostores/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-nanostores", + "workspaceFolder": "/workspaces/astro/examples/with-nanostores", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-tailwindcss/devcontainer.json b/.devcontainer/with-tailwindcss/devcontainer.json index 95427f1dcc49..b11051d74bc9 100644 --- a/.devcontainer/with-tailwindcss/devcontainer.json +++ b/.devcontainer/with-tailwindcss/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-tailwindcss", + "workspaceFolder": "/workspaces/astro/examples/with-tailwindcss", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-vite-plugin-pwa/devcontainer.json b/.devcontainer/with-vite-plugin-pwa/devcontainer.json index 5d01f232fa9f..18602e71312c 100644 --- a/.devcontainer/with-vite-plugin-pwa/devcontainer.json +++ b/.devcontainer/with-vite-plugin-pwa/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa", + "workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/.devcontainer/with-vitest/devcontainer.json b/.devcontainer/with-vitest/devcontainer.json index 672fc5f59c92..90388574a102 100644 --- a/.devcontainer/with-vitest/devcontainer.json +++ b/.devcontainer/with-vitest/devcontainer.json @@ -1,40 +1,34 @@ { - "name": "Astro Examples", - "build": { - "dockerfile": "../examples.Dockerfile" - }, + "name": "Astro Examples", + "build": { + "dockerfile": "../examples.Dockerfile" + }, - "workspaceFolder": "/workspaces/astro/examples/with-vitest", + "workspaceFolder": "/workspaces/astro/examples/with-vitest", - "portsAttributes": { - "3000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - - "forwardPorts": [3000], - - "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", - - "waitFor": "postCreateCommand", - - "postAttachCommand": { - "Server": "pnpm start --host" + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000], + + "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build", + + "waitFor": "postCreateCommand", + + "postAttachCommand": { + "Server": "pnpm start --host" + }, + + "customizations": { + "codespaces": { + "openFiles": ["src/pages/index.astro"] }, - - "customizations": { - "codespaces": { - "openFiles": [ - "src/pages/index.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "vscode": { + "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"] } } - \ No newline at end of file +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 58bafd07caa4..6af7c985916e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -40,7 +40,7 @@ pnpx npm-merge-driver install --driver-name pnpm-merge-driver --driver "pnpm-mer ### Using GitHub Codespaces for development -To get started, create a codespace for this repository by clicking this 👇 +To get started, create a codespace for this repository by clicking this 👇 [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro)