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 e46548a8b5..dd6b9a02cc 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" - } + "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"] }, - - "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" - ] - }, - "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 c75c2c1562..420c862eff 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" - } + "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"] }, - - "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" - ] - }, - "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 b7ef11c6a3..a550e022bd 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", - - "waitFor": "postCreateCommand", - - "customizations": { - "codespaces": { - "openFiles": [ - "src/MyComponent.astro" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "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"] } } - \ No newline at end of file +} diff --git a/.devcontainer/deno/devcontainer.json b/.devcontainer/deno/devcontainer.json index e7404e6226..e788fd7f81 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" - } + "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"] }, - - "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" - ] - }, - "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 ed87f95e90..506ef87fca 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 9c57d98250..8bf71084de 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" - } + "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"] }, - - "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" - ] - }, - "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 6e3293f1a3..8cef52467c 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" - } + "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"] }, - - "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" - ] - }, - "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 2fbcfe74b7..0ca36d8944 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" - } + "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"] }, - - "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" - ] - }, - "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 fddd478e41..acbab0034c 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" - } + "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"] }, - - "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" - ] - }, - "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 f5a46a7ff0..6d35b55712 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" - } + "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"] }, - - "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" - ] - }, - "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 f6b019dcd5..03f2dd8f04 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" - } + "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"] }, - - "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" - ] - }, - "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 e4e980a212..d73ccb573a 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" - } + "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"] }, - - "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" - ] - }, - "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 3b75f04174..d673d94d0f 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" - } + "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"] }, - - "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" - ] - }, - "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 7f55d94db0..3f9f2302e9 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" - } + "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"] }, - - "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" - ] - }, - "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 abf2633405..debe9557b4 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" - } + "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"] }, - - "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" - ] - }, - "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 3e929b961f..d9fc07f12f 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", - - "waitFor": "postCreateCommand", - - "customizations": { - "codespaces": { - "openFiles": [ - "index.ts" - ] - }, - "vscode": { - "extensions": [ - "astro-build.astro-vscode", - "esbenp.prettier-vscode" - ] - } + "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"] } } - \ No newline at end of file +} diff --git a/.devcontainer/minimal/devcontainer.json b/.devcontainer/minimal/devcontainer.json index cad1a634a7..c1463901e5 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" - } + "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"] }, - - "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" - ] - }, - "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 68e92fd345..97e0be06b7 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" - } + "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"] }, - - "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" - ] - }, - "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 b24dc53060..76ac10a000 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" - } + "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"] }, - - "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" - ] - }, - "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 8990e12581..af267e7353 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" - } + "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"] }, - - "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" - ] - }, - "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 3ddb25c739..68a4db70da 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" - } + "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"] }, - - "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" - ] - }, - "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 c35d865f80..74795314c3 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" - } + "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"] }, - - "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" - ] - }, - "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 b1953e3c12..a7f4d34a5e 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" - } + "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"] }, - - "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" - ] - }, - "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 595049596d..dc0b86c217 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" - } + "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"] }, - - "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" - ] - }, - "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 95427f1dcc..b11051d74b 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" - } + "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"] }, - - "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" - ] - }, - "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 5d01f232fa..18602e7131 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" - } + "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"] }, - - "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" - ] - }, - "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 672fc5f59c..90388574a1 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" - } + "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"] }, - - "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" - ] - }, - "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 58bafd07ca..6af7c98591 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)