Jannick Knudsen há 1 ano atrás
pai
commit
a0dbbf19da
100 ficheiros alterados com 3324 adições e 0 exclusões
  1. 8 0
      aso/astro/.changeset/README.md
  2. 12 0
      aso/astro/.changeset/config.json
  3. 5 0
      aso/astro/.changeset/itchy-monkeys-fail.md
  4. 5 0
      aso/astro/.changeset/lorem-ipsum-dolor
  5. 5 0
      aso/astro/.changeset/poor-llamas-chew.md
  6. 13 0
      aso/astro/.devcontainer/Dockerfile
  7. 34 0
      aso/astro/.devcontainer/basics/devcontainer.json
  8. 34 0
      aso/astro/.devcontainer/blog/devcontainer.json
  9. 21 0
      aso/astro/.devcontainer/component/devcontainer.json
  10. 27 0
      aso/astro/.devcontainer/devcontainer.json
  11. 34 0
      aso/astro/.devcontainer/docs/devcontainer.json
  12. 5 0
      aso/astro/.devcontainer/example-welcome-message.txt
  13. 6 0
      aso/astro/.devcontainer/examples.Dockerfile
  14. 34 0
      aso/astro/.devcontainer/framework-alpine/devcontainer.json
  15. 34 0
      aso/astro/.devcontainer/framework-lit/devcontainer.json
  16. 34 0
      aso/astro/.devcontainer/framework-multiple/devcontainer.json
  17. 34 0
      aso/astro/.devcontainer/framework-preact/devcontainer.json
  18. 34 0
      aso/astro/.devcontainer/framework-react/devcontainer.json
  19. 34 0
      aso/astro/.devcontainer/framework-solid/devcontainer.json
  20. 34 0
      aso/astro/.devcontainer/framework-svelte/devcontainer.json
  21. 34 0
      aso/astro/.devcontainer/framework-vue/devcontainer.json
  22. 34 0
      aso/astro/.devcontainer/hackernews/devcontainer.json
  23. 21 0
      aso/astro/.devcontainer/integration/devcontainer.json
  24. 34 0
      aso/astro/.devcontainer/minimal/devcontainer.json
  25. 34 0
      aso/astro/.devcontainer/non-html-pages/devcontainer.json
  26. 34 0
      aso/astro/.devcontainer/portfolio/devcontainer.json
  27. 34 0
      aso/astro/.devcontainer/ssr/devcontainer.json
  28. 4 0
      aso/astro/.devcontainer/welcome-message.txt
  29. 34 0
      aso/astro/.devcontainer/with-markdown-plugins/devcontainer.json
  30. 34 0
      aso/astro/.devcontainer/with-markdown-shiki/devcontainer.json
  31. 34 0
      aso/astro/.devcontainer/with-mdx/devcontainer.json
  32. 34 0
      aso/astro/.devcontainer/with-nanostores/devcontainer.json
  33. 34 0
      aso/astro/.devcontainer/with-tailwindcss/devcontainer.json
  34. 34 0
      aso/astro/.devcontainer/with-vitest/devcontainer.json
  35. 15 0
      aso/astro/.editorconfig
  36. 9 0
      aso/astro/.eslintignore
  37. 134 0
      aso/astro/.eslintrc.cjs
  38. 6 0
      aso/astro/.git-blame-ignore-revs
  39. 55 0
      aso/astro/.github/ISSUE_TEMPLATE/---01-bug-report.yml
  40. 14 0
      aso/astro/.github/ISSUE_TEMPLATE/config.yml
  41. 20 0
      aso/astro/.github/PULL_REQUEST_TEMPLATE.md
  42. BIN
      aso/astro/.github/assets/banner.jpg
  43. BIN
      aso/astro/.github/assets/banner.png
  44. 0 0
      aso/astro/.github/assets/deepgram-dark.svg
  45. 0 0
      aso/astro/.github/assets/deepgram.svg
  46. 0 0
      aso/astro/.github/assets/divriots-dark.svg
  47. 0 0
      aso/astro/.github/assets/divriots.svg
  48. 0 0
      aso/astro/.github/assets/monogram-dark.svg
  49. 0 0
      aso/astro/.github/assets/monogram.svg
  50. 0 0
      aso/astro/.github/assets/netlify-dark.svg
  51. 0 0
      aso/astro/.github/assets/netlify.svg
  52. BIN
      aso/astro/.github/assets/qoddi-dark.png
  53. BIN
      aso/astro/.github/assets/qoddi.png
  54. 1 0
      aso/astro/.github/assets/sentry-dark.svg
  55. 1 0
      aso/astro/.github/assets/sentry.svg
  56. 0 0
      aso/astro/.github/assets/shipshape-dark.svg
  57. 0 0
      aso/astro/.github/assets/shipshape.svg
  58. 0 0
      aso/astro/.github/assets/stackup-dark.svg
  59. 0 0
      aso/astro/.github/assets/stackup.svg
  60. 0 0
      aso/astro/.github/assets/storyblok-dark.svg
  61. 0 0
      aso/astro/.github/assets/storyblok.svg
  62. 1 0
      aso/astro/.github/assets/vercel-dark.svg
  63. 1 0
      aso/astro/.github/assets/vercel.svg
  64. 41 0
      aso/astro/.github/labeler.yml
  65. 166 0
      aso/astro/.github/scripts/announce.mjs
  66. 86 0
      aso/astro/.github/scripts/bundle-size.mjs
  67. 59 0
      aso/astro/.github/scripts/utils.mjs
  68. 105 0
      aso/astro/.github/workflows/benchmark.yml
  69. 92 0
      aso/astro/.github/workflows/check-merge.yml
  70. 50 0
      aso/astro/.github/workflows/check.yml
  71. 250 0
      aso/astro/.github/workflows/ci.yml
  72. 44 0
      aso/astro/.github/workflows/cleanup-cache.yml
  73. 15 0
      aso/astro/.github/workflows/format.yml
  74. 30 0
      aso/astro/.github/workflows/issue-labeled.yml
  75. 18 0
      aso/astro/.github/workflows/issue-needs-repro.yml
  76. 23 0
      aso/astro/.github/workflows/issue-opened.yml
  77. 16 0
      aso/astro/.github/workflows/label.yml
  78. 77 0
      aso/astro/.github/workflows/main.yml
  79. 13 0
      aso/astro/.github/workflows/nightly.yml
  80. 75 0
      aso/astro/.github/workflows/release.yml
  81. 51 0
      aso/astro/.github/workflows/scripts.yml
  82. 161 0
      aso/astro/.github/workflows/snapshot-release.yml
  83. 48 0
      aso/astro/.github/workflows/test-hosts.yml
  84. 38 0
      aso/astro/.gitignore
  85. 36 0
      aso/astro/.gitpod.yml
  86. 30 0
      aso/astro/.gitpod/gitpod-setup.sh
  87. 14 0
      aso/astro/.npmrc
  88. 1 0
      aso/astro/.nvmrc
  89. 18 0
      aso/astro/.prettierignore
  90. 9 0
      aso/astro/.vscode/extensions.json
  91. 29 0
      aso/astro/.vscode/launch.json
  92. 14 0
      aso/astro/.vscode/tasks.json
  93. 294 0
      aso/astro/CONTRIBUTING.md
  94. 59 0
      aso/astro/LICENSE
  95. 104 0
      aso/astro/README.md
  96. 25 0
      aso/astro/SECURITY.md
  97. 16 0
      aso/astro/SECURITY_CONTACTS
  98. 68 0
      aso/astro/STYLE_GUIDE.md
  99. 5 0
      aso/astro/benchmark/README.md
  100. 7 0
      aso/astro/benchmark/bench/README.md

+ 8 - 0
aso/astro/.changeset/README.md

@@ -0,0 +1,8 @@
+# Changesets
+
+Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
+with multi-package repos, or single-package repos to help you version and publish your code. You can
+find the full documentation for it [in our repository](https://github.com/changesets/changesets)
+
+We have a quick list of common questions to get you started engaging with this project in
+[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

+ 12 - 0
aso/astro/.changeset/config.json

@@ -0,0 +1,12 @@
+{
+  "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
+  "changelog": ["@changesets/changelog-github", { "repo": "withastro/astro" }],
+  "commit": false,
+  "linked": [],
+  "access": "public",
+  "baseBranch": "main",
+  "updateInternalDependencies": "patch",
+  "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
+    "onlyUpdatePeerDependentsWhenOutOfRange": true
+  }
+}

+ 5 - 0
aso/astro/.changeset/itchy-monkeys-fail.md

@@ -0,0 +1,5 @@
+---
+"astro": patch
+---
+
+Fixes an issue where some astro commands failed if the astro config file or an integration used the global `crypto` object.

+ 5 - 0
aso/astro/.changeset/lorem-ipsum-dolor

@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fixes static builds when `config.outDir` is located outside of the astro project

+ 5 - 0
aso/astro/.changeset/poor-llamas-chew.md

@@ -0,0 +1,5 @@
+---
+"astro": patch
+---
+
+Simplifies internal Vite preview server teardown

+ 13 - 0
aso/astro/.devcontainer/Dockerfile

@@ -0,0 +1,13 @@
+FROM mcr.microsoft.com/devcontainers/javascript-node:0-18
+
+# Install playwright
+RUN npm install -g @playwright/test
+
+# Install latest pnpm
+RUN npm install -g pnpm
+
+RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
+    && curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_$(dpkg --print-architecture).deb -o /tmp/chrome.deb \
+    && apt-get -y install /tmp/chrome.deb
+
+COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

+ 34 - 0
aso/astro/.devcontainer/basics/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Basics",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/basics",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/blog/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Blog",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/blog",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 21 - 0
aso/astro/.devcontainer/component/devcontainer.json

@@ -0,0 +1,21 @@
+{
+  "name": "Component Template",
+  "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"]
+    }
+  }
+}

+ 27 - 0
aso/astro/.devcontainer/devcontainer.json

@@ -0,0 +1,27 @@
+{
+  "name": "Contribute to Astro",
+  "build": {
+    "dockerfile": "Dockerfile"
+  },
+
+  "features": {
+    "ghcr.io/devcontainers/features/desktop-lite:1": {}
+  },
+
+  "postCreateCommand": "pnpm install && pnpm run build",
+
+  "waitFor": "postCreateCommand",
+
+  "postAttachCommand": {
+    "Astro tests": "pnpm run test"
+  },
+
+  "customizations": {
+    "codespaces": {
+      "openFiles": ["README.md", "CONTRIBUTING.md"]
+    },
+    "vscode": {
+      "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/docs/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Docs Site",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/docs",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 5 - 0
aso/astro/.devcontainer/example-welcome-message.txt

@@ -0,0 +1,5 @@
+👋 Welcome to "Astro" in GitHub Codespaces!
+
+🛠️  Your environment is fully setup with all the required software.
+
+🚀 The example app should automatically start soon in a new terminal tab.

+ 6 - 0
aso/astro/.devcontainer/examples.Dockerfile

@@ -0,0 +1,6 @@
+FROM mcr.microsoft.com/devcontainers/javascript-node:0-18
+
+# Install latest pnpm
+RUN npm install -g pnpm
+
+COPY example-welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

+ 34 - 0
aso/astro/.devcontainer/framework-alpine/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Alpine",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-alpine",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-lit/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Lit",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-lit",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-multiple/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Kitchen Sink (Multiple Frameworks)",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-multiple",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-preact/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Preact",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-preact",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-react/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "React",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-react",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-solid/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Solid",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-solid",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-svelte/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Svelte",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-svelte",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/framework-vue/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Vue",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/framework-vue",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/hackernews/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Hackernews",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/hackernews",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 21 - 0
aso/astro/.devcontainer/integration/devcontainer.json

@@ -0,0 +1,21 @@
+{
+  "name": "Integration Package",
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/minimal/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Minimal",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/minimal",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/non-html-pages/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Non-HTML Pages",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/non-html-pages",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/portfolio/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Portfolio",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/portfolio",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/ssr/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "SSR",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/ssr",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 4 - 0
aso/astro/.devcontainer/welcome-message.txt

@@ -0,0 +1,4 @@
+👋 Welcome to Astro!
+
+🛠️ Your environment is fully setup with all required software installed. Tests will
+   be running shortly in a separate terminal tab.

+ 34 - 0
aso/astro/.devcontainer/with-markdown-plugins/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Markdown with Plugins",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/with-markdown-shiki/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Markdown with Shiki",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/with-mdx/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "MDX",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/with-mdx",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/with-nanostores/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Nanostores",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/with-nanostores",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/with-tailwindcss/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Tailwind",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/with-tailwindcss",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 34 - 0
aso/astro/.devcontainer/with-vitest/devcontainer.json

@@ -0,0 +1,34 @@
+{
+  "name": "Vitest",
+  "build": {
+    "dockerfile": "../examples.Dockerfile"
+  },
+
+  "workspaceFolder": "/workspaces/astro/examples/with-vitest",
+
+  "portsAttributes": {
+    "4321": {
+      "label": "Application",
+      "onAutoForward": "openPreview"
+    }
+  },
+
+  "forwardPorts": [4321],
+
+  "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"]
+    }
+  }
+}

+ 15 - 0
aso/astro/.editorconfig

@@ -0,0 +1,15 @@
+# https://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+indent_style = tab
+insert_final_newline = true
+trim_trailing_whitespace = false
+
+[{.*,*.md,*.json,*.toml,*.yml,}]
+indent_style = space

+ 9 - 0
aso/astro/.eslintignore

@@ -0,0 +1,9 @@
+**/*.d.ts
+packages/**/*.min.js
+packages/**/dist/**/*
+packages/**/fixtures/**/*
+packages/astro/vendor/vite/**/*
+examples/**/*
+scripts/**/*
+.github
+.changeset

+ 134 - 0
aso/astro/.eslintrc.cjs

@@ -0,0 +1,134 @@
+// eslint-disable-next-line @typescript-eslint/no-var-requires
+const { builtinModules } = require('module');
+
+/** @type {import("@types/eslint").Linter.Config} */
+module.exports = {
+  extends: [
+    'plugin:@typescript-eslint/recommended-type-checked',
+    'plugin:@typescript-eslint/stylistic-type-checked',
+    'prettier',
+    'plugin:regexp/recommended',
+  ],
+  parser: '@typescript-eslint/parser',
+  parserOptions: {
+    project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
+    tsconfigRootDir: __dirname,
+  },
+  plugins: ['@typescript-eslint', 'prettier', 'no-only-tests', 'regexp'],
+  rules: {
+    // These off/configured-differently-by-default rules fit well for us
+    '@typescript-eslint/switch-exhaustiveness-check': 'error',
+    '@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
+    '@typescript-eslint/no-unused-vars': [
+      'warn',
+      {
+        argsIgnorePattern: '^_',
+        varsIgnorePattern: '^_',
+        caughtErrorsIgnorePattern: '^_',
+        ignoreRestSiblings: true,
+      },
+    ],
+    'no-only-tests/no-only-tests': 'error',
+    '@typescript-eslint/no-shadow': ['error'],
+    'no-console': 'warn',
+
+    // Todo: do we want these?
+    '@typescript-eslint/array-type': 'off',
+    '@typescript-eslint/ban-ts-comment': 'off',
+    '@typescript-eslint/class-literal-property-style': 'off',
+    '@typescript-eslint/consistent-indexed-object-style': 'off',
+    '@typescript-eslint/consistent-type-definitions': 'off',
+    '@typescript-eslint/dot-notation': 'off',
+    '@typescript-eslint/no-base-to-string': 'off',
+    '@typescript-eslint/no-empty-function': 'off',
+    '@typescript-eslint/no-floating-promises': 'off',
+    '@typescript-eslint/no-misused-promises': 'off',
+    '@typescript-eslint/no-redundant-type-constituents': 'off',
+    '@typescript-eslint/no-this-alias': 'off',
+    '@typescript-eslint/no-unsafe-argument': 'off',
+    '@typescript-eslint/no-unsafe-assignment': 'off',
+    '@typescript-eslint/no-unsafe-call': 'off',
+    '@typescript-eslint/no-unsafe-member-access': 'off',
+    '@typescript-eslint/no-unsafe-return': 'off',
+    '@typescript-eslint/prefer-nullish-coalescing': 'off',
+    '@typescript-eslint/prefer-optional-chain': 'off',
+    '@typescript-eslint/prefer-string-starts-ends-with': 'off',
+    '@typescript-eslint/require-await': 'off',
+    '@typescript-eslint/restrict-plus-operands': 'off',
+    '@typescript-eslint/restrict-template-expressions': 'off',
+    '@typescript-eslint/sort-type-constituents': 'off',
+    '@typescript-eslint/unbound-method': 'off',
+    '@typescript-eslint/no-explicit-any': 'off',
+
+    // Enforce separate type imports for type-only imports to avoid bundling unneeded code
+    '@typescript-eslint/consistent-type-imports': [
+      'error',
+      {
+        prefer: 'type-imports',
+        fixStyle: 'separate-type-imports',
+        disallowTypeAnnotations: false,
+      },
+    ],
+
+    // These rules enabled by the preset configs don't work well for us
+    '@typescript-eslint/await-thenable': 'off',
+    'prefer-const': 'off',
+
+    // In some cases, using explicit letter-casing is more performant than the `i` flag
+    'regexp/use-ignore-case': 'off',
+  },
+  overrides: [
+    {
+      // Ensure Node builtins aren't included in Astro's server runtime
+      files: ['packages/astro/src/runtime/**/*.ts'],
+      rules: {
+        'no-restricted-imports': [
+          'error',
+          {
+            paths: [...builtinModules],
+            patterns: ['node:*'],
+          },
+        ],
+      },
+    },
+    {
+      files: ['packages/astro/src/runtime/client/**/*.ts'],
+      env: {
+        browser: true,
+      },
+    },
+    {
+      files: ['packages/**/test/*.js', 'packages/**/*.js'],
+      env: {
+        mocha: true,
+      },
+      globals: {
+        globalThis: false, // false means read-only
+      },
+      rules: {
+        'no-console': 'off',
+      },
+    },
+    {
+      files: ['packages/integrations/**/*.ts'],
+      rules: {
+        'no-console': ['error', { allow: ['warn', 'error', 'info', 'debug'] }],
+      },
+    },
+    {
+      files: ['benchmark/**/*.js'],
+      rules: {
+        '@typescript-eslint/no-unused-vars': 'off',
+        'no-console': 'off',
+      },
+    },
+    {
+      files: ['packages/astro/src/core/errors/errors-data.ts'],
+      rules: {
+        // This file is used for docs generation, as such the code need to be in a certain format, we can somewhat ensure this with these rules
+        'object-shorthand': ['error', 'methods', { avoidExplicitReturnArrows: true }],
+        'arrow-body-style': ['error', 'never'],
+      },
+    },
+  ],
+};

+ 6 - 0
aso/astro/.git-blame-ignore-revs

@@ -0,0 +1,6 @@
+# Switch to tabs (Use Accessible Indentation #2253)
+6ddd7678ffb6598ae6e263706813cb5e94535f02
+# prettier config update
+1335797903a57716e9a02b0ffd8ca636b3883c62
+# Manually format .astro files in example projects (#3862)
+59e8c71786fd1c154904b3fefa7d26d88f4d92d2

+ 55 - 0
aso/astro/.github/ISSUE_TEMPLATE/---01-bug-report.yml

@@ -0,0 +1,55 @@
+name: "\U0001F41B Bug Report"
+description: Report an issue or possible bug
+labels: []
+assignees: []
+body:
+  - type: markdown
+    attributes:
+      value: |
+        ##  Quick Checklist
+        Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
+
+        ✅ I am using the **latest version of Astro** and all plugins.
+        ✅ I am using a version of Node that Astro supports (`>=18.14.1`)
+  - type: textarea
+    id: astro-info
+    attributes:
+      label: Astro Info
+      description: Run the command `astro info` in your terminal and paste the output here. Please review the data before submitting in case there is any sensitive information you don't want to share.
+      render: block
+    validations:
+      required: true
+  - type: input
+    id: browser
+    attributes:
+      label: If this issue only occurs in one browser, which browser is a problem?
+      placeholder: Chrome, Firefox, Safari
+  - type: textarea
+    id: bug-description
+    attributes:
+      label: Describe the Bug
+      description: A clear and concise description of what the bug is.
+    validations:
+      required: true
+  - type: textarea
+    id: bug-expectation
+    attributes:
+      label: What's the expected result?
+      description: Describe what you expect to happen.
+    validations:
+      required: true
+  - type: input
+    id: bug-reproduction
+    attributes:
+      label: Link to Minimal Reproducible Example
+      description: 'Use [astro.new](https://astro.new) to create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed. Not sure how to create a minimal example? [Read our guide](https://docs.astro.build/en/guides/troubleshooting/#creating-minimal-reproductions)'
+      placeholder: 'https://stackblitz.com/abcd1234'
+    validations:
+      required: true
+  - type: checkboxes
+    id: will-pr
+    attributes:
+      label: Participation
+      options:
+        - label:  I am willing to submit a pull request for this issue.
+          required: false

+ 14 - 0
aso/astro/.github/ISSUE_TEMPLATE/config.yml

@@ -0,0 +1,14 @@
+blank_issues_enabled: false
+contact_links:
+  - name: 📘 Documentation
+    url: https://github.com/withastro/docs
+    about: File an issue or make an improvement to the docs website.
+  - name: 💡 Ideas for New Features, Improvements and RFCs
+    url: https://github.com/withastro/roadmap/discussions
+    about: Propose and discuss future improvements to Astro
+  - name: 👾 Chat
+    url: https://astro.build/chat
+    about: Our Discord server is active, come join us!
+  - name: 💁 Support
+    url: https://astro.build/chat
+    about: 'This issue tracker is not for support questions. Join us on Discord for assistance!'

+ 20 - 0
aso/astro/.github/PULL_REQUEST_TEMPLATE.md

@@ -0,0 +1,20 @@
+## Changes
+
+- What does this change?
+- Be short and concise. Bullet points can help!
+- Before/after screenshots can help as well.
+- Don't forget a changeset! `pnpm exec changeset`
+
+## Testing
+
+<!-- How was this change tested? -->
+<!-- DON'T DELETE THIS SECTION! If no tests added, explain why. -->
+
+## Docs
+
+<!-- Could this affect a user’s behavior? We probably need to update docs! -->
+<!-- If docs will be needed or you’re not sure, uncomment the next line: -->
+<!-- /cc @withastro/maintainers-docs for feedback! -->
+
+<!-- DON'T DELETE THIS SECTION! If no docs added, explain why.-->
+<!-- https://github.com/withastro/docs -->

BIN
aso/astro/.github/assets/banner.jpg


BIN
aso/astro/.github/assets/banner.png


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/deepgram-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/deepgram.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/divriots-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/divriots.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/monogram-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/monogram.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/netlify-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/netlify.svg


BIN
aso/astro/.github/assets/qoddi-dark.png


BIN
aso/astro/.github/assets/qoddi.png


+ 1 - 0
aso/astro/.github/assets/sentry-dark.svg

@@ -0,0 +1 @@
+<svg viewBox="0 0 360.27 79.35" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path d="m52.16 4.07c-2.4-3.98-7.57-5.26-11.55-2.86-1.17.71-2.16 1.69-2.86 2.86l-11.86 20.31c18.43 9.2 30.6 27.48 31.98 48.04h-8.32c-1.38-17.62-11.98-33.19-27.86-40.94l-10.97 18.97c8.92 4 15.18 12.26 16.63 21.93h-19.12c-.75-.05-1.32-.71-1.27-1.46.01-.19.07-.37.15-.54l5.3-9.01c-1.79-1.5-3.85-2.66-6.05-3.42l-5.24 9.01c-2.28 3.9-.96 8.91 2.95 11.19.03.02.07.04.1.06 1.24.7 2.64 1.07 4.07 1.08h26.18c.98-12.21-4.49-24.04-14.42-31.2l4.16-7.21c12.54 8.61 19.6 23.22 18.56 38.4h22.18c1.05-23-10.21-44.83-29.57-57.3l8.41-14.41c.39-.65 1.23-.87 1.89-.49.96.52 36.57 62.65 37.23 63.37.37.66.13 1.49-.53 1.86-.21.12-.45.18-.7.17h-8.58c.11 2.29.11 4.58 0 6.86h8.61c4.57.03 8.29-3.65 8.32-8.22 0-.03 0-.06 0-.09 0-1.44-.38-2.86-1.12-4.11z"/><path d="m223.91 50.96-26.59-34.34h-6.63v46.04h6.72v-35.29l27.35 35.28h5.87v-46.04h-6.72zm-66.98-8.54h23.84v-5.98h-23.86v-13.86h26.9v-5.98h-33.75v46.05h34.09v-5.98h-27.24zm-28.03-5.84c-9.28-2.23-11.87-4-11.87-8.29 0-3.86 3.41-6.47 8.49-6.47 4.63.14 9.09 1.75 12.74 4.59l3.6-5.1c-4.62-3.62-10.35-5.53-16.22-5.41-9.12 0-15.48 5.41-15.48 13.1 0 8.29 5.41 11.15 15.24 13.55 8.76 2.02 11.44 3.89 11.44 8.09s-3.6 6.79-9.17 6.79c-5.54-.03-10.88-2.12-14.95-5.87l-4.05 4.85c5.22 4.49 11.89 6.95 18.77 6.94 9.87 0 16.22-5.32 16.22-13.53-.06-6.95-4.17-10.68-14.76-13.24zm223.62-19.97-13.86 21.62-13.76-21.62h-8.04l18.18 27.84v18.22h6.92v-18.43l18.31-27.62zm-116.45 6.24h15.08v39.82h6.92v-39.82h15.08v-6.23h-37.06zm69.08 21.84c6.95-1.93 10.81-6.79 10.81-13.75 0-8.85-6.47-14.41-16.9-14.41h-20.47v46.11h6.85v-16.55h11.62l11.68 16.58h8l-12.61-17.69zm-19.73-4.51v-17.48h12.92c6.74 0 10.59 3.19 10.59 8.72s-4.13 8.76-10.52 8.76z"/></g></svg>

+ 1 - 0
aso/astro/.github/assets/sentry.svg

@@ -0,0 +1 @@
+<svg viewBox="0 0 360.27 79.35" xmlns="http://www.w3.org/2000/svg"><g fill="#362d59"><path d="m52.16 4.07c-2.4-3.98-7.57-5.26-11.55-2.86-1.17.71-2.16 1.69-2.86 2.86l-11.86 20.31c18.43 9.2 30.6 27.48 31.98 48.04h-8.32c-1.38-17.62-11.98-33.19-27.86-40.94l-10.97 18.97c8.92 4 15.18 12.26 16.63 21.93h-19.12c-.75-.05-1.32-.71-1.27-1.46.01-.19.07-.37.15-.54l5.3-9.01c-1.79-1.5-3.85-2.66-6.05-3.42l-5.24 9.01c-2.28 3.9-.96 8.91 2.95 11.19.03.02.07.04.1.06 1.24.7 2.64 1.07 4.07 1.08h26.18c.98-12.21-4.49-24.04-14.42-31.2l4.16-7.21c12.54 8.61 19.6 23.22 18.56 38.4h22.18c1.05-23-10.21-44.83-29.57-57.3l8.41-14.41c.39-.65 1.23-.87 1.89-.49.96.52 36.57 62.65 37.23 63.37.37.66.13 1.49-.53 1.86-.21.12-.45.18-.7.17h-8.58c.11 2.29.11 4.58 0 6.86h8.61c4.57.03 8.29-3.65 8.32-8.22 0-.03 0-.06 0-.09 0-1.44-.38-2.86-1.12-4.11z"/><path d="m223.91 50.96-26.59-34.34h-6.63v46.04h6.72v-35.29l27.35 35.28h5.87v-46.04h-6.72zm-66.98-8.54h23.84v-5.98h-23.86v-13.86h26.9v-5.98h-33.75v46.05h34.09v-5.98h-27.24zm-28.03-5.84c-9.28-2.23-11.87-4-11.87-8.29 0-3.86 3.41-6.47 8.49-6.47 4.63.14 9.09 1.75 12.74 4.59l3.6-5.1c-4.62-3.62-10.35-5.53-16.22-5.41-9.12 0-15.48 5.41-15.48 13.1 0 8.29 5.41 11.15 15.24 13.55 8.76 2.02 11.44 3.89 11.44 8.09s-3.6 6.79-9.17 6.79c-5.54-.03-10.88-2.12-14.95-5.87l-4.05 4.85c5.22 4.49 11.89 6.95 18.77 6.94 9.87 0 16.22-5.32 16.22-13.53-.06-6.95-4.17-10.68-14.76-13.24zm223.62-19.97-13.86 21.62-13.76-21.62h-8.04l18.18 27.84v18.22h6.92v-18.43l18.31-27.62zm-116.45 6.24h15.08v39.82h6.92v-39.82h15.08v-6.23h-37.06zm69.08 21.84c6.95-1.93 10.81-6.79 10.81-13.75 0-8.85-6.47-14.41-16.9-14.41h-20.47v46.11h6.85v-16.55h11.62l11.68 16.58h8l-12.61-17.69zm-19.73-4.51v-17.48h12.92c6.74 0 10.59 3.19 10.59 8.72s-4.13 8.76-10.52 8.76z"/></g></svg>

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/shipshape-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/shipshape.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/stackup-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/stackup.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/storyblok-dark.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
aso/astro/.github/assets/storyblok.svg


+ 1 - 0
aso/astro/.github/assets/vercel-dark.svg

@@ -0,0 +1 @@
+<svg fill="#fff" viewBox="0 0 284 65" xmlns="http://www.w3.org/2000/svg"><path d="m37.59.25 36.95 64h-73.9z"/><path d="m129.97 5.25-27.71 48-27.71-48h10.39l17.32 30 17.32-30z"/><path d="m188.88 17.25v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10v14.8h-9v-34h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"/><path d="m200.88 34.25c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10z"/><path d="m274.36 5.25h9v46h-9z"/><path d="m268.36 34.24c0-10.79-7.96-17.99-19-17.99s-19 7.2-19 18 8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5zm-28.45-3.49c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/><path d="m141.68 16.25c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/></svg>

+ 1 - 0
aso/astro/.github/assets/vercel.svg

@@ -0,0 +1 @@
+<svg viewBox="0 0 284 65" xmlns="http://www.w3.org/2000/svg"><path d="m37.59.25 36.95 64h-73.9z"/><path d="m129.97 5.25-27.71 48-27.71-48h10.39l17.32 30 17.32-30z"/><path d="m188.88 17.25v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10v14.8h-9v-34h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"/><path d="m200.88 34.25c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10z"/><path d="m274.36 5.25h9v46h-9z"/><path d="m268.36 34.24c0-10.79-7.96-17.99-19-17.99s-19 7.2-19 18 8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5zm-28.45-3.49c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/><path d="m141.68 16.25c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/></svg>

+ 41 - 0
aso/astro/.github/labeler.yml

@@ -0,0 +1,41 @@
+# See https://github.com/actions/labeler
+
+'pkg: example':
+- examples/**/*
+
+'🚨 action':
+- .github/workflows/**
+
+'pkg: astro':
+- packages/astro/**
+
+'pkg: create-astro':
+- packages/create-astro/**
+
+'feat: markdown':
+- packages/markdown/**
+
+'pkg: integration':
+- packages/integrations/**
+
+'pkg: lit':
+- packages/integrations/lit/**
+
+'pkg: preact':
+- packages/integrations/preact/**
+
+'pkg: react':
+- packages/integrations/react/**
+
+'pkg: solid':
+- packages/integrations/solid/**
+
+'pkg: svelte':
+- packages/integrations/svelte/**
+
+'pkg: vue':
+- packages/integrations/vue/**
+
+'docs pr':
+- packages/astro/src/@types/astro.ts
+- packages/astro/src/core/errors/errors-data.ts

+ 166 - 0
aso/astro/.github/scripts/announce.mjs

@@ -0,0 +1,166 @@
+import { globby as glob } from 'globby';
+import { fileURLToPath } from 'node:url';
+import { readFile } from 'node:fs/promises';
+import { setOutput } from './utils.mjs';
+
+const { GITHUB_REF = 'main' } = process.env;
+const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`);
+
+const emojis = ['🎉', '🥳', '🚀', '🧑‍🚀', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
+const descriptors = [
+	'new releases',
+	'hot and fresh updates',
+	'shiny updates',
+	'exciting changes',
+	'package updates',
+	'awesome updates',
+	'bug fixes and features',
+	'updates',
+];
+const verbs = [
+	"just went out!",
+	"just launched!",
+	"now available!",
+	"in the wild!",
+	"now live!",
+	"hit the registry!",
+	"to share!",
+	"for you!",
+	"for y’all! 🤠",
+	"comin’ your way!",
+	"comin’ atcha!",
+	"comin’ in hot!",
+	"freshly minted on the blockchain! (jk)",
+	"[is] out (now with 100% more reticulated splines!)",
+	"(as seen on TV!)",
+	"just dropped!",
+	"– artisanally hand-crafted just for you.",
+	"– oh happy day!",
+	"– enjoy!",
+	"now out. Be the first on your block to download!",
+	"made with love 💕",
+	"[is] out! Our best [version] yet!",
+	"[is] here. DOWNLOAD! DOWNLOAD! DOWNLOAD!",
+	"... HUZZAH!",
+	"[has] landed!",
+	"landed! The internet just got a little more fun.",
+	"– from our family to yours.",
+	"– go forth and build!"
+];
+const extraVerbs = [
+	'new',
+	'here',
+	'released',
+	'freshly made',
+	'going out',
+	'hitting the registry',
+	'available',
+	'live now',
+	'hot and fresh',
+	'for you',
+	"comin' atcha",
+];
+
+function item(items) {
+	return items[Math.floor(Math.random() * items.length)];
+}
+
+const plurals = new Map([
+	['is', 'are'],
+	['has', 'have'],
+]);
+
+function pluralize(text) {
+	return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) =>
+		plurals.has(match) ? plurals.get(match) : `${match}s`
+	);
+}
+
+function singularlize(text) {
+	return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => `${match}`);
+}
+
+const packageMap = new Map();
+async function generatePackageMap() {
+	const packageRoot = new URL('../../packages/', import.meta.url);
+	const packages = await glob(['*/package.json', '*/*/package.json'], {
+		cwd: fileURLToPath(packageRoot),
+	});
+	await Promise.all(
+		packages.map(async (pkg) => {
+			const pkgFile = fileURLToPath(new URL(pkg, packageRoot));
+			const content = await readFile(pkgFile).then((res) => JSON.parse(res.toString()));
+			packageMap.set(content.name, `./packages/${pkg.replace('/package.json', '')}`);
+		})
+	);
+}
+
+async function generateMessage() {
+	await generatePackageMap();
+	const releases = process.argv.slice(2)[0];
+	const data = JSON.parse(releases);
+	const packages = await Promise.all(
+		data.map(({ name, version }) => {
+			const p = packageMap.get(name);
+			if (!p) {
+				throw new Error(`Unable to find entrypoint for "${name}"!`);
+			}
+			return {
+				name,
+				version,
+				url: new URL(`${p}/CHANGELOG.md#${version.replace(/\./g, '')}`, baseUrl).toString(),
+			};
+		})
+	);
+
+	const emoji = item(emojis);
+	const descriptor = item(descriptors);
+	const verb = item(verbs);
+
+	let message = '';
+
+	if (packages.length === 1) {
+		const { name, version, url } = packages[0];
+		message += `${emoji} \`${name}@${version}\` ${singularlize(
+			verb
+		)}\nRead the [release notes →](<${url}>)\n`;
+	} else {
+		message += `${emoji} Some ${descriptor} ${pluralize(verb)}\n\n`;
+		for (const { name, version, url } of packages) {
+			message += `• \`${name}@${version}\` Read the [release notes →](<${url}>)\n`;
+		}
+	}
+
+	if (message.length < 2000) {
+		return message;
+	} else {
+		const { name, version, url } = packages.find((pkg) => pkg.name === 'astro') ?? packages[0];
+		message = `${emoji} Some ${descriptor} ${pluralize(verb)}\n\n`;
+		message += `• \`${name}@${version}\` Read the [release notes →](<${url}>)\n`;
+
+		message += `\nAlso ${item(extraVerbs)}:`;
+
+		const remainingPackages = packages.filter((p) => p.name !== name);
+		for (const { name, version, url } of remainingPackages) {
+			message += `\n• \`${name}@${version}\``;
+		}
+
+		if (message.length < 2000) {
+			return message;
+		} else {
+			message = `${emoji} Some ${descriptor} ${pluralize(verb)}\n\n`;
+			message += `• \`${name}@${version}\` Read the [release notes →](<${url}>)\n`;
+
+			message += `\n\nAlso ${item(extraVerbs)}: ${remainingPackages.length} other packages!`;
+			return message;
+		}
+	}
+}
+
+async function run() {
+	const content = await generateMessage();
+	console.log(content);
+	setOutput('DISCORD_MESSAGE', content);
+}
+
+run();

+ 86 - 0
aso/astro/.github/scripts/bundle-size.mjs

@@ -0,0 +1,86 @@
+import { build } from 'esbuild';
+import { existsSync } from 'node:fs';
+
+const CLIENT_RUNTIME_PATH = 'packages/astro/src/runtime/client/';
+
+function formatBytes(bytes, decimals = 2) {
+    if (bytes === 0) return '0 B';
+
+    const k = 1024;
+    const dm = decimals < 0 ? 0 : decimals;
+    const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
+
+    const i = Math.floor(Math.log(bytes) / Math.log(k));
+
+    return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
+}
+
+export default async function checkBundleSize({ github, context }) {
+	const PR_NUM = context.payload.pull_request.number;
+	const SHA = context.payload.pull_request.head.sha;
+
+	const { data: files } = await github.rest.pulls.listFiles({
+		...context.repo,
+		pull_number: PR_NUM,
+	});
+	const clientRuntimeFiles = files.filter((file) => {
+		return file.filename.startsWith(CLIENT_RUNTIME_PATH) && file.status !== 'removed'
+	});
+	if (clientRuntimeFiles.length === 0) return;
+
+	const table = [
+		'| File | Old Size | New Size | Change |',
+		'| ---- | -------- | -------- | ------ |',
+	];
+	const output = await bundle(clientRuntimeFiles);
+
+	for (let [filename, { oldSize, newSize, sourceFile }] of Object.entries(output)) {
+		filename = ['idle', 'load', 'media', 'only', 'visible'].includes(filename) ? `client:${filename}` : filename;
+		const prefix = (newSize - oldSize) === 0 ? '' : (newSize - oldSize) > 0 ? '+ ' : '- ';
+		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} |`);
+	}
+
+	const { data: comments } = await github.rest.issues.listComments({
+		...context.repo,
+		issue_number: PR_NUM
+	})
+	const comment = comments.find(comment => comment.user.login === 'github-actions[bot]' && comment.body.includes('Bundle Size Check'));
+	const method = comment ? 'updateComment' : 'createComment';
+	const payload = comment ? { comment_id: comment.id } : { issue_number: PR_NUM };
+	await github.rest.issues[method]({
+		...context.repo,
+		...payload,
+		body: `###  ⚖️  Bundle Size Check
+
+Latest commit: ${SHA}
+
+${table.join('\n')}`,
+	});
+}
+
+async function bundle(files) {
+
+	const { metafile } = await build({
+		entryPoints: [...files.map(({ filename }) => filename), ...files.map(({ filename }) => `main/${filename}`).filter(f => existsSync(f))],
+		bundle: true,
+		minify: true,
+		sourcemap: false,
+		target: ['es2018'],
+		outdir: 'out',
+		external: ['astro:*', 'aria-query', 'axobject-query'],
+		metafile: true,
+	})
+
+	return Object.entries(metafile.outputs).reduce((acc, [filename, info]) => {
+		filename = filename.slice('out/'.length);
+		if (filename.startsWith('main/')) {
+			filename = filename.slice('main/'.length).replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
+			const oldSize = info.bytes;
+			return Object.assign(acc, { [filename]: Object.assign(acc[filename] ?? { oldSize: 0, newSize: 0 }, { oldSize }) });
+		}
+		filename = filename.replace(CLIENT_RUNTIME_PATH, '').replace('.js', '');
+		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')) }) });
+	}, {});
+}

+ 59 - 0
aso/astro/.github/scripts/utils.mjs

@@ -0,0 +1,59 @@
+import * as fs from 'node:fs'
+import * as os from 'node:os'
+import * as crypto from 'node:crypto'
+
+/** Based on https://github.com/actions/toolkit/blob/4e3b068ce116d28cb840033c02f912100b4592b0/packages/core/src/file-command.ts */
+export function setOutput(key, value) {
+  const filePath = process.env['GITHUB_OUTPUT'] || ''
+  if (filePath) {
+    return issueFileCommand('OUTPUT', prepareKeyValueMessage(key, value))
+  }
+  process.stdout.write(os.EOL)
+}
+
+function issueFileCommand(command, message) {
+  const filePath = process.env[`GITHUB_${command}`]
+  if (!filePath) {
+    throw new Error(
+      `Unable to find environment variable for file command ${command}`
+    )
+  }
+  if (!fs.existsSync(filePath)) {
+    throw new Error(`Missing file at path: ${filePath}`)
+  }
+
+  fs.appendFileSync(filePath, `${toCommandValue(message)}${os.EOL}`, {
+    encoding: 'utf8'
+  })
+}
+
+function prepareKeyValueMessage(key, value) {
+  const delimiter = `gh-delimiter-${crypto.randomUUID()}`
+  const convertedValue = toCommandValue(value)
+
+  // These should realistically never happen, but just in case someone finds a
+  // way to exploit uuid generation let's not allow keys or values that contain
+  // the delimiter.
+  if (key.includes(delimiter)) {
+    throw new Error(
+      `Unexpected input: name should not contain the delimiter "${delimiter}"`
+    )
+  }
+
+  if (convertedValue.includes(delimiter)) {
+    throw new Error(
+      `Unexpected input: value should not contain the delimiter "${delimiter}"`
+    )
+  }
+
+  return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`
+}
+
+function toCommandValue(input) {
+  if (input === null || input === undefined) {
+    return ''
+  } else if (typeof input === 'string' || input instanceof String) {
+    return input
+  }
+  return JSON.stringify(input)
+}

+ 105 - 0
aso/astro/.github/workflows/benchmark.yml

@@ -0,0 +1,105 @@
+name: Benchmark
+
+on:
+  issue_comment:
+    types: [created]
+  workflow_dispatch:
+
+env:
+  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+  FORCE_COLOR: true
+
+jobs:
+  benchmark:
+    if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!bench') }}
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+    outputs:
+      PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }}
+      MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }}
+    steps:
+      # https://github.com/actions/checkout/issues/331#issuecomment-1438220926
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          ref: refs/pull/${{ github.event.issue.number }}/head
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Get bench command
+        id: bench-command
+        env:
+          # protects from untrusted user input and command injection
+          COMMENT: ${{ github.event.comment.body }}
+        run: |
+          benchcmd=$(echo "$COMMENT" | grep '!bench' | awk -F ' ' '{print $2}')
+          echo "bench=$benchcmd" >> $GITHUB_OUTPUT
+        shell: bash
+
+      - name: Run benchmark
+        id: benchmark-pr
+        run: |
+          result=$(pnpm run --silent benchmark ${{ steps.bench-command.outputs.bench }})
+          processed=$(node ./benchmark/ci-helper.js "$result")
+          echo "BENCH_RESULT<<BENCHEOF" >> $GITHUB_OUTPUT
+          echo "### PR Benchmark" >> $GITHUB_OUTPUT
+          echo "$processed" >> $GITHUB_OUTPUT
+          echo "BENCHEOF" >> $GITHUB_OUTPUT
+        shell: bash
+
+      # main benchmark
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          ref: "main"
+
+      - name: Install
+        run: |
+          pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Run benchmark
+        id: benchmark-main
+        run: |
+          result=$(pnpm run --silent benchmark ${{ steps.bench-command.outputs.bench }})
+          processed=$(node ./benchmark/ci-helper.js "$result")
+          echo "BENCH_RESULT<<BENCHEOF" >> $GITHUB_OUTPUT
+          echo "### Main Benchmark" >> $GITHUB_OUTPUT
+          echo "$processed" >> $GITHUB_OUTPUT
+          echo "BENCHEOF" >> $GITHUB_OUTPUT
+        shell: bash
+
+  output-benchmark:
+    if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!bench') }}
+    needs: [benchmark]
+    runs-on: ubuntu-latest
+    permissions:
+      pull-requests: write
+    steps:
+      - name: Comment PR
+        uses: peter-evans/create-or-update-comment@v4
+        continue-on-error: true
+        with:
+          issue-number: ${{ github.event.issue.number }}
+          body: |
+            ${{ needs.benchmark.outputs.PR-BENCH }}
+
+            ${{ needs.benchmark.outputs.MAIN-BENCH }}
+          edit-mode: replace

+ 92 - 0
aso/astro/.github/workflows/check-merge.yml

@@ -0,0 +1,92 @@
+name: Check mergeability
+
+on: pull_request
+
+permissions:
+  pull-requests: write
+  checks: write
+  statuses: write
+
+jobs:
+  check:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check if there is already a block on this PR
+        id: blocked
+        uses: actions/github-script@v7
+        env:
+          issue_number:  ${{ github.event.number }}
+        with:
+          script: |
+            const { data: reviews } = await github.rest.pulls.listReviews({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              pull_number: process.env.issue_number,
+            });
+
+            for (const review of reviews) {
+              if (review.user.login === 'github-actions[bot]' && review.state === 'CHANGES_REQUESTED') {
+                return 'true'
+              }
+            }
+            return 'false'
+          result-encoding: string
+
+      - uses: actions/checkout@v4
+        if: steps.blocked.outputs.result != 'true'
+        with:
+          fetch-depth: 0
+
+      - name: Get changed files in the .changeset folder
+        id: changed-files
+        uses: tj-actions/changed-files@v42
+        if: steps.blocked.outputs.result != 'true'
+        with:
+          files: |
+            .changeset/**/*.md
+
+      - name: Check if any changesets contain minor or major changes
+        id: check
+        if: steps.blocked.outputs.result != 'true'
+        run: |
+          echo "Checking for changesets marked as minor or major"
+          echo "found=false" >> $GITHUB_OUTPUT
+
+          regex="[\"']astro[\"']: (minor|major)"
+          for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
+              if [[ $(cat $file) =~ $regex ]]; then
+                  version="${BASH_REMATCH[1]}"
+                  echo "version=$version" >> $GITHUB_OUTPUT
+                  echo "found=true" >> $GITHUB_OUTPUT
+                  echo "$file has a $version release tag"
+              fi
+          done
+
+      - name: Add label
+        uses: actions/github-script@v7
+        if: steps.check.outputs.found == 'true'
+        env:
+          issue_number: ${{ github.event.number }}
+        with:
+          script: |
+            github.rest.issues.addLabels({
+              issue_number: process.env.issue_number,
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              labels: ['semver: ${{ steps.check.outputs.version }}']
+            });
+
+      - name: Change PR Status
+        uses: actions/github-script@v7
+        if: steps.check.outputs.found == 'true'
+        env:
+          issue_number: ${{ github.event.number }}
+        with:
+          script: |
+            github.rest.pulls.createReview({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              pull_number: process.env.issue_number,
+              event: 'REQUEST_CHANGES',
+              body: 'This PR is blocked because it contains a `${{ steps.check.outputs.version }}` changeset. A reviewer will merge this at the next release if approved.'
+            });

+ 50 - 0
aso/astro/.github/workflows/check.yml

@@ -0,0 +1,50 @@
+name: Examples astro check
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - main
+  merge_group:
+  pull_request:
+    paths:
+      - "examples/**"
+      - ".github/workflows/check.yml"
+      - "scripts/smoke/check.js"
+      - "packages/astro/src/@types/astro.ts"
+
+env:
+  ASTRO_TELEMETRY_DISABLED: true
+  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+  FORCE_COLOR: true
+
+jobs:
+  check:
+    name: astro check
+    runs-on: ubuntu-latest
+    timeout-minutes: 7
+    steps:
+      - name: Check out repository
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build
+        run: pnpm run build
+
+      - name: Status
+        run: git status
+
+      - name: astro check
+        run: pnpm run test:check-examples

+ 250 - 0
aso/astro/.github/workflows/ci.yml

@@ -0,0 +1,250 @@
+name: CI
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - main
+  merge_group:
+  pull_request:
+    paths-ignore:
+      - ".vscode/**"
+      - "**/*.md"
+      - ".github/ISSUE_TEMPLATE/**"
+
+# Automatically cancel older in-progress jobs on the same branch
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
+  cancel-in-progress: true
+defaults:
+  run:
+    shell: bash
+
+env:
+  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+  FORCE_COLOR: true
+  ASTRO_TELEMETRY_DISABLED: true
+  # 7 GiB by default on GitHub, setting to 6 GiB
+  # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
+  NODE_OPTIONS: --max-old-space-size=6144
+
+jobs:
+  # Build primes out Turbo build cache and pnpm cache
+  build:
+    name: "Build: ${{ matrix.os }}"
+    runs-on: ${{ matrix.os }}
+    timeout-minutes: 3
+    strategy:
+      matrix:
+        OS: [ubuntu-latest, windows-latest]
+        NODE_VERSION: [18]
+      fail-fast: true
+    steps:
+      # Disable crlf so all OS can share the same Turbo cache
+      # https://github.com/actions/checkout/issues/135
+      - name: Disable git crlf
+        run: git config --global core.autocrlf false
+
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup node@${{ matrix.NODE_VERSION }}
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ matrix.NODE_VERSION }}
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      # Only build in ubuntu as windows can share the build cache.
+      # Also only build in core repo as forks don't have access to the Turbo cache.
+      - name: Build Packages
+        if: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'withastro' }}
+        run: pnpm run build
+
+  lint:
+    name: Lint
+    runs-on: ubuntu-latest
+    timeout-minutes: 5
+    needs: build
+    steps:
+      - name: Disable git crlf
+        run: git config --global core.autocrlf false
+
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Lint
+        run: pnpm run lint
+
+      - name: Format Check
+        run: pnpm run format --check
+
+  test:
+    name: "Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
+    runs-on: ${{ matrix.os }}
+    timeout-minutes: 25
+    needs: build
+    strategy:
+      matrix:
+        OS: [ubuntu-latest]
+        NODE_VERSION: [18, 20.5.1]
+        include:
+          - os: macos-14
+            NODE_VERSION: 18
+          - os: windows-latest
+            NODE_VERSION: 18.17.1
+      fail-fast: false
+    env:
+      NODE_VERSION: ${{ matrix.NODE_VERSION }}
+    steps:
+      - name: Disable git crlf
+        run: git config --global core.autocrlf false
+
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup node@${{ matrix.NODE_VERSION }}
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ matrix.NODE_VERSION }}
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Test
+        run: pnpm run test
+
+  e2e:
+    name: "Test (E2E): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
+    runs-on: ${{ matrix.os }}
+    timeout-minutes: 25
+    needs: build
+    strategy:
+      matrix:
+        OS: [ubuntu-latest, windows-latest]
+        NODE_VERSION: [18.17.1]
+      fail-fast: false
+    env:
+      NODE_VERSION: ${{ matrix.NODE_VERSION }}
+    steps:
+      - name: Disable git crlf
+        run: git config --global core.autocrlf false
+
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup node@${{ matrix.NODE_VERSION }}
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ matrix.NODE_VERSION }}
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Test
+        run: pnpm run test:e2e
+
+  smoke:
+    name: "Test (Smoke): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
+    runs-on: ${{ matrix.os }}
+    timeout-minutes: 25
+    needs: build
+    strategy:
+      matrix:
+        OS: [ubuntu-latest, windows-latest]
+        NODE_VERSION: [18]
+    env:
+      NODE_VERSION: ${{ matrix.NODE_VERSION }}
+    steps:
+      - name: Disable git crlf
+        run: git config --global core.autocrlf false
+
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup node@${{ matrix.NODE_VERSION }}
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ matrix.NODE_VERSION }}
+          cache: "pnpm"
+
+      - name: Checkout docs
+        uses: actions/checkout@v4
+        with:
+          repository: withastro/docs
+          path: smoke/docs
+
+      - name: Install dependencies
+        run: pnpm install --no-frozen-lockfile
+
+      # Reset lockfile changes so that Turbo can reuse the old build cache
+      - name: Reset lockfile changes
+        run: git reset --hard
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Remove docs translations except for English and Korean
+        run: find smoke/docs/src/content/docs ! -name 'en' ! -name 'ko' -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} +
+
+      - name: Check if docs changed
+        id: changes
+        uses: dorny/paths-filter@v3
+        with:
+          filters: |
+            docs:
+              - 'packages/integrations/*/README.md'
+              - 'packages/astro/src/@types/astro.ts'
+              - 'packages/astro/src/core/errors/errors-data.ts'
+
+      - name: Build autogenerated docs pages from current astro branch
+        if: ${{ steps.changes.outputs.docs == 'true' }}
+        run: cd smoke/docs && pnpm docgen && pnpm docgen:errors
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          SOURCE_REPO: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }}
+          SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }}
+
+      - name: Test
+        run: pnpm run test:smoke
+        env:
+          SKIP_OG: true
+          PUBLIC_TWO_LANG: true

+ 44 - 0
aso/astro/.github/workflows/cleanup-cache.yml

@@ -0,0 +1,44 @@
+name: Cleanup cache
+
+on:
+  schedule:
+    - cron: "0 11 * * *"
+  pull_request:
+    types:
+      - closed
+
+jobs:
+  cleanup:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out code
+        uses: actions/checkout@v4
+
+      - name: Cleanup caches older than 5 days
+        if: github.event_name == 'schedule'
+        uses: MyAlbum/purge-cache@v2
+        with:
+          max-age: 432000
+
+      # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
+      - name: Cleanup on PR close
+        if: github.event_name == 'pull_request'
+        run: |
+          gh extension install actions/gh-actions-cache
+          
+          REPO=${{ github.repository }}
+          BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
+
+          echo "Fetching list of cache key"
+          cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
+
+          ## Setting this to not fail the workflow while deleting cache keys. 
+          set +e
+          echo "Deleting caches..."
+          for cacheKey in $cacheKeysForPR
+          do
+              gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
+          done
+          echo "Done"
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 15 - 0
aso/astro/.github/workflows/format.yml

@@ -0,0 +1,15 @@
+name: Format
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - main
+
+jobs:
+  prettier:
+    if: github.repository_owner == 'withastro'
+    uses: withastro/automation/.github/workflows/format.yml@main
+    with:
+      command: "format:ci"
+    secrets: inherit

+ 30 - 0
aso/astro/.github/workflows/issue-labeled.yml

@@ -0,0 +1,30 @@
+name: Issue Labeled
+
+on:
+  issues:
+    types: [labeled]
+
+jobs:
+  reply-labeled:
+    if: github.repository == 'withastro/astro'
+    runs-on: ubuntu-latest
+    steps:
+      - name: remove triage
+        if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs triage')
+        uses: actions-cool/issues-helper@v3
+        with:
+          actions: "remove-labels"
+          token: ${{ secrets.GITHUB_TOKEN }}
+          issue-number: ${{ github.event.issue.number }}
+          labels: "needs triage"
+
+      - name: needs repro
+        if: github.event.label.name == 'needs repro'
+        uses: actions-cool/issues-helper@v3
+        with:
+          actions: "create-comment, remove-labels"
+          token: ${{ secrets.GITHUB_TOKEN }}
+          issue-number: ${{ github.event.issue.number }}
+          body: |
+            Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new). Issues marked with `needs repro` will be closed if they have no activity within 3 days.
+          labels: "needs triage"

+ 18 - 0
aso/astro/.github/workflows/issue-needs-repro.yml

@@ -0,0 +1,18 @@
+name: Close Issues (needs repro)
+
+on:
+  schedule:
+    - cron: "0 0 * * *"
+
+jobs:
+  close-issues:
+    if: github.repository == 'withastro/astro'
+    runs-on: ubuntu-latest
+    steps:
+      - name: needs repro
+        uses: actions-cool/issues-helper@v3
+        with:
+          actions: "close-issues"
+          token: ${{ secrets.GITHUB_TOKEN }}
+          labels: "needs repro"
+          inactive-day: 3

+ 23 - 0
aso/astro/.github/workflows/issue-opened.yml

@@ -0,0 +1,23 @@
+name: Label issues
+on:
+  issues:
+    types:
+      - reopened
+      - opened
+
+jobs:
+  label_issues:
+    runs-on: ubuntu-latest
+    if: github.repository == 'withastro/astro'
+    permissions:
+      issues: write
+    steps:
+      - uses: actions/github-script@v7
+        with:
+          script: |
+            github.rest.issues.addLabels({
+              issue_number: context.issue.number,
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              labels: ["needs triage"]
+            })

+ 16 - 0
aso/astro/.github/workflows/label.yml

@@ -0,0 +1,16 @@
+# Automatically labels PRs based on the configuration file
+# you are probably looking for 👉 `.github/labeler.yml`
+name: Label PRs
+
+on:
+  - pull_request_target
+
+jobs:
+  triage:
+    runs-on: ubuntu-latest
+    if: github.repository_owner == 'withastro'
+    steps:
+    - uses: actions/labeler@v4
+      with:
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"
+        sync-labels: true

+ 77 - 0
aso/astro/.github/workflows/main.yml

@@ -0,0 +1,77 @@
+name: Main Checks
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - main
+
+env:
+  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+# Automatically cancel in-progress actions on the same branch
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  congrats:
+    name: congratsbot
+    if: ${{ github.repository_owner == 'withastro' && github.event.head_commit.message != '[ci] format' }}
+    uses: withastro/automation/.github/workflows/congratsbot.yml@main
+    with:
+      EMOJIS: '🎉,🎊,🧑‍🚀,🥳,🙌,🚀,👏,<:houston_golden:1068575433647456447>,<:astrocoin:894990669515489301>,<:astro_pride:1130501345326157854>'
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
+
+  check_for_update:
+    name: Check for Updates
+    runs-on: ubuntu-latest
+    outputs:
+      run_job: ${{ steps.check_files.outputs.run_job }}
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Check Modified
+        run: pnpm exec changeset status --output ./status.json
+
+      - name: Check Output
+        id: check_files
+        run: |
+          output=`echo $(cat status.json)`
+          if [[ $output = '{ "changesets": [], "releases": [] }' ]]
+          then
+            echo 'No changeset found'
+            echo "run_job=true" >> $GITHUB_OUTPUT
+          else
+            echo 'changes found, push to latest skipped'
+            echo "run_job=false" >> $GITHUB_OUTPUT
+          fi
+
+  update:
+    name: Update the latest branch
+    needs: check_for_update
+    if: needs.check_for_update.outputs.run_job == 'true'
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+
+      - name: Push
+        uses: ad-m/github-push-action@master
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          branch: latest

+ 13 - 0
aso/astro/.github/workflows/nightly.yml

@@ -0,0 +1,13 @@
+name: Nightly
+
+on:
+  schedule:
+    # Run every Monday at 12:00 UTC
+    - cron: "0 12 * * 1"
+  workflow_dispatch:
+
+jobs:
+  lockfile:
+    if: github.repository_owner == 'withastro'
+    uses: withastro/automation/.github/workflows/lockfile.yml@main
+    secrets: inherit

+ 75 - 0
aso/astro/.github/workflows/release.yml

@@ -0,0 +1,75 @@
+name: Release
+
+on:
+  push:
+    branches:
+      - main
+      - "1-legacy"
+      - "2-legacy"
+      - "3-legacy"
+      - next
+
+defaults:
+  run:
+    shell: bash
+
+env:
+  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+  FORCE_COLOR: true
+
+jobs:
+  changelog:
+    name: Changelog PR or Release
+    if: ${{ github.repository_owner == 'withastro' }}
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+      id-token: write
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Create Release Pull Request or Publish
+        id: changesets
+        uses: changesets/action@v1
+        with:
+          # Note: pnpm install after versioning is necessary to refresh lockfile
+          version: pnpm run version
+          publish: pnpm exec changeset publish
+          commit: "[ci] release"
+          title: "[ci] release"
+        env:
+          # Needs access to push to main
+          GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
+          # Needs access to publish to npm
+          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+
+      - name: Generate Announcement
+        id: message
+        if: steps.changesets.outputs.published == 'true'
+        env:
+          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+        run: node .github/scripts/announce.mjs '${{ steps.changesets.outputs.publishedPackages }}'
+      
+      - name: Send message on Discord
+        if: steps.changesets.outputs.published == 'true'
+        env:
+          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+        uses: Ilshidur/action-discord@0.3.2
+        with:
+          args: "${{ steps.message.outputs.DISCORD_MESSAGE }}"

+ 51 - 0
aso/astro/.github/workflows/scripts.yml

@@ -0,0 +1,51 @@
+name: Scripts
+
+on:
+  workflow_dispatch:
+  pull_request:
+    branches:
+      - "main"
+    paths:
+      - "packages/astro/src/runtime/client/**/*"
+
+# Automatically cancel in-progress actions on the same branch
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
+  cancel-in-progress: true
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  bundle:
+    name: Bundle Size
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Repo
+        uses: actions/checkout@v4
+
+      - name: Checkout Main into tmp
+        uses: actions/checkout@v4
+        with:
+          ref: main
+          path: main
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Check Bundle Size
+        uses: actions/github-script@v7
+        with:
+          script: |
+            const { default: script } = await import('${{ github.workspace }}/.github/scripts/bundle-size.mjs')
+            await script({ github, context })

+ 161 - 0
aso/astro/.github/workflows/snapshot-release.yml

@@ -0,0 +1,161 @@
+name: Create a Snapshot Release
+
+on:
+  workflow_dispatch:
+  issue_comment:
+    types: [created]
+
+defaults:
+  run:
+    shell: bash
+
+env:
+  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+  FORCE_COLOR: 1
+
+jobs:
+  snapshot-release:
+    name: Create a snapshot release of a pull request
+    if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && (contains(github.event.comment.body, '!preview') || contains(github.event.comment.body, '/preview') || contains(github.event.comment.body, '!snapshot') || contains(github.event.comment.body, '/snapshot')) }}
+    runs-on: ubuntu-latest
+    permissions: 
+      contents: read 
+      id-token: write
+      issues: write
+      pull-requests: write
+    steps:
+      - name: "Check if user has admin access (only admins can publish snapshot releases)."
+        uses: "lannonbr/repo-permission-check-action@2.0.0"
+        with:
+          permission: "admin"
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Extract the snapshot name from comment body
+        id: getSnapshotName
+        uses: actions/github-script@v7
+        with:
+          script: |
+            const { body } = context.payload.comment;
+            const PREVIEW_RE = /^[!\/](?:preview|snapshot)\s+(\S*)\s*$/gim;
+            const [_, name] = PREVIEW_RE.exec(body) ?? [];
+            if (name) return name;
+
+            const error = 'Invalid command. Expected: "/preview <snapshot-name>"'
+            github.rest.issues.createComment({
+              issue_number: context.issue.number,
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              body: error,
+            })
+            core.setFailed(error)
+          result-encoding: string
+
+      - name: resolve pr refs
+        id: refs
+        uses: eficode/resolve-pr-refs@main
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+
+      - uses: actions/checkout@v4
+        with:
+          ref: ${{ steps.refs.outputs.head_ref }}
+          fetch-depth: 0
+
+      - run: git fetch origin main:main
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          registry-url: "https://registry.npmjs.org"
+          cache: "pnpm"
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm run build
+
+      - name: Bump Package Versions
+        id: changesets
+        run: |
+          pnpm exec changeset status --output status.output.json 2>&1
+          pnpm exec changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }}
+
+          EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
+          echo "status<<$EOF" >> $GITHUB_OUTPUT
+          echo "$(cat status.output.json)" >> $GITHUB_OUTPUT
+          echo "$EOF" >> $GITHUB_OUTPUT
+        env:
+          # Needs access to run the script
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          # Disable color
+          FORCE_COLOR: 0
+          NO_COLOR: 1
+
+      - name: Publish Release
+        id: publish
+        run: |
+          GITHUB_ACTIONS=0 pnpm run build > build.output.txt 2>&1
+          pnpm exec changeset publish --tag experimental--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1
+
+          EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
+
+          echo "build<<$EOF" >> $GITHUB_OUTPUT
+          echo "$(cat build.output.txt)" >> $GITHUB_OUTPUT
+          echo "$EOF" >> $GITHUB_OUTPUT
+          cat build.output.txt
+
+          echo "publish<<$EOF" >> $GITHUB_OUTPUT
+          echo "$(cat publish.output.txt)" >> $GITHUB_OUTPUT
+          echo "$EOF" >> $GITHUB_OUTPUT
+          cat publish.output.txt
+        env:
+          # Needs access to publish to npm
+          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+          # Disable color
+          FORCE_COLOR: 0
+          NO_COLOR: 1
+
+      - name: Pull Request Notification
+        uses: actions/github-script@v7
+        env:
+          TAG: ${{ steps.getSnapshotName.outputs.result }}
+          STATUS_DATA: ${{ steps.changesets.outputs.status }}
+          BUILD_LOG: ${{ steps.publish.outputs.build }}
+          PUBLISH_LOG: ${{ steps.publish.outputs.publish }}
+        with:
+          script: |
+            let changeset = { releases: [] };
+            try {
+              changeset = JSON.parse(process.env.STATUS_DATA);
+            } catch (e) {}
+            let message = 'Snapshots have been released for the following packages:'
+            for (const release of changeset.releases) {
+              if (release.type === 'none') continue;
+              message += `\n- \`${release.name}@experimental--${process.env.TAG}\``;
+            }
+
+            function details(title, body) {
+              message += '\n';
+              message += `<details><summary><strong>${title}</strong></summary>`
+              message += '\n\n```\n';
+              message += body;
+              message += '\n```\n\n</details>';
+            }
+
+            details('Publish Log', process.env.PUBLISH_LOG);
+            details('Build Log', process.env.BUILD_LOG);
+
+            github.rest.issues.createComment({
+              issue_number: context.issue.number,
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              body: message,
+            })

+ 48 - 0
aso/astro/.github/workflows/test-hosts.yml

@@ -0,0 +1,48 @@
+name: Hosted tests
+
+on:
+  schedule:
+    - cron: '0 0 * * 0'
+
+env:
+  ASTRO_TELEMETRY_DISABLED: true
+  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+  VERCEL_ORG_ID: ${{ secrets.VERCEL_TEST_ORG_ID }}
+  VERCEL_PROJECT_ID: ${{ secrets.VERCEL_TEST_PROJECT_ID }}
+  VERCEL_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }}
+  FORCE_COLOR: true
+
+jobs:
+  test:
+    name: Run tests
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out repository
+        uses: actions/checkout@v4
+
+      - name: Setup PNPM
+        uses: pnpm/action-setup@v2
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: 18
+          cache: 'pnpm'
+
+      - name: Install dependencies
+        run: pnpm install
+
+      - name: Build Astro
+        run: pnpm turbo build --filter astro --filter @astrojs/vercel
+
+      - name: Build test project
+        working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project
+        run: pnpm run build
+
+      - name: Deploy to Vercel
+        working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project
+        run: pnpm dlx vercel --prod --prebuilt
+
+      - name: Test
+        run: pnpm run test:e2e:hosts

+ 38 - 0
aso/astro/.gitignore

@@ -0,0 +1,38 @@
+node_modules/
+dist/
+*.tsbuildinfo
+.DS_Store
+.vercel
+.netlify
+_site/
+scripts/smoke/*-main/
+scripts/memory/project/src/pages/
+benchmark/projects/
+benchmark/results/
+*.log
+package-lock.json
+.turbo/
+.eslintcache
+.pnpm-store
+
+# ignore top-level vscode settings
+/.vscode/settings.json
+
+# do not commit .env files or any files that end with `.env`
+*.env
+
+packages/astro/src/**/*.prebuilt.ts
+packages/astro/src/**/*.prebuilt-dev.ts
+!packages/astro/vendor/vite/dist
+packages/integrations/**/.netlify/
+
+# exclude IntelliJ/WebStorm stuff
+.idea
+
+# ignore content collection generated files
+packages/**/test/**/fixtures/**/.astro/
+packages/**/test/**/fixtures/**/env.d.ts
+packages/**/e2e/**/fixtures/**/.astro/
+packages/**/e2e/**/fixtures/**/env.d.ts
+examples/**/.astro/
+examples/**/env.d.ts

+ 36 - 0
aso/astro/.gitpod.yml

@@ -0,0 +1,36 @@
+---
+# Commands to start on workspace startup
+tasks:
+  - before: |
+      # Get latest pnpm version, in case the custom docker image was not updated
+      # Until this issue gets resolved - https://github.com/gitpod-io/gitpod/issues/12551
+      curl -fsSL https://get.pnpm.io/install.sh | SHELL=`which bash` bash -
+    init: |
+      pnpm install
+      pnpm run build
+    command: |
+      .gitpod/gitpod-setup.sh
+vscode:
+  extensions:
+    - astro-build.astro-vscode
+    - esbenp.prettier-vscode
+    - dbaeumer.vscode-eslint
+ports:
+  - port: 4321
+    onOpen: open-preview
+github:
+  prebuilds:
+    # enable for the master/default branch (defaults to true)
+    master: true
+    # enable for all branches in this repo (defaults to false)
+    branches: true
+    # enable for pull requests coming from this repo (defaults to true)
+    pullRequests: true
+    # enable for pull requests coming from forks (defaults to false)
+    pullRequestsFromForks: true
+    # add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
+    addComment: true
+    # add a "Review in Gitpod" button to pull requests (defaults to false)
+    addBadge: false
+    # add a label once the prebuild is ready to pull requests (defaults to false)
+    addLabel: prebuilt-in-gitpod

+ 30 - 0
aso/astro/.gitpod/gitpod-setup.sh

@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+# Convert context URL to an array
+mapfile -t CONTEXT_URL_ITEMS < <(echo "$GITPOD_WORKSPACE_CONTEXT_URL" | tr '/' '\n')
+
+# Install latest pnpm
+curl -fsSL https://get.pnpm.io/install.sh | SHELL=`which bash` bash -
+
+# Check if Gitpod started from a specific example directory in the repository
+if [ "${CONTEXT_URL_ITEMS[7]}" = "examples" ]; then
+    EXAMPLE_PROJECT=${CONTEXT_URL_ITEMS[8]}
+# Check it Gitpod started with $ASTRO_NEW environment variable
+elif [ -n "$ASTRO_NEW" ]; then
+    EXAMPLE_PROJECT="$ASTRO_NEW"
+# Otherwise, set the default example project - 'starter'
+else
+    EXAMPLE_PROJECT="starter"
+fi
+
+# Wait for VSCode to be ready (port 23000)
+gp ports await 23000 > /dev/null 2>&1
+
+echo "Loading example project: $EXAMPLE_PROJECT"
+
+# Go to the requested example project
+cd "$GITPOD_REPO_ROOT"/examples/"$EXAMPLE_PROJECT" || exit
+# Open the main page in VSCode
+code src/pages/index.astro
+# Start Astro
+pnpm start

+ 14 - 0
aso/astro/.npmrc

@@ -0,0 +1,14 @@
+# Important! Never install `astro` even when new version is in registry
+prefer-workspace-packages=true
+link-workspace-packages=true
+save-workspace-protocol=false # This prevents the examples to have the `workspace:` prefix
+auto-install-peers=false
+
+# `github-slugger` is used by `vite-plugin-markdown-legacy`.
+# Temporarily hoist this until we remove the feature.
+public-hoist-pattern[]=github-slugger
+# Vite's esbuild optimizer has trouble optimizing `@astrojs/lit/client-shim.js`
+# which imports this dependency.
+public-hoist-pattern[]=@webcomponents/template-shadowroot
+# There's a lit dependency duplication somewhere causing multiple Lit versions error.
+public-hoist-pattern[]=*lit*

+ 1 - 0
aso/astro/.nvmrc

@@ -0,0 +1 @@
+18.14.1

+ 18 - 0
aso/astro/.prettierignore

@@ -0,0 +1,18 @@
+# Benchmark artifacts
+benchmark/projects/
+benchmark/results/
+
+# Deep Directories
+**/dist
+**/smoke
+**/node_modules
+**/fixtures
+**/vendor
+**/.vercel
+
+# Directories
+.github
+.changeset
+
+# Files
+pnpm-lock.yaml

+ 9 - 0
aso/astro/.vscode/extensions.json

@@ -0,0 +1,9 @@
+{
+  "recommendations": [
+    "astro-build.astro-vscode",
+    "esbenp.prettier-vscode",
+    "editorconfig.editorconfig",
+    "dbaeumer.vscode-eslint"
+  ],
+  "unwantedRecommendations": []
+}

+ 29 - 0
aso/astro/.vscode/launch.json

@@ -0,0 +1,29 @@
+// A launch configuration that compiles the extension and then opens it inside a new window
+{
+  "version": "0.2.0",
+  "configurations": [
+    {
+      "name": "Launch Client",
+      "type": "extensionHost",
+      "request": "launch",
+      "runtimeExecutable": "${execPath}",
+      "args": ["--extensionDevelopmentPath=${workspaceRoot}/tools/vscode"],
+      "outFiles": ["${workspaceRoot}/tools/vscode/dist/**/*.js"]
+    },
+    {
+      "type": "node",
+      "request": "attach",
+      "name": "Attach to Server",
+      "port": 6040,
+      "restart": true,
+      "outFiles": ["${workspaceRoot}/tools/languageserver/dist/**/*.js"],
+      "skipFiles": ["<node_internals>/**"]
+    }
+  ],
+  "compounds": [
+    {
+      "name": "Launch Extension",
+      "configurations": ["Launch Client", "Attach to Server"]
+    }
+  ]
+}

+ 14 - 0
aso/astro/.vscode/tasks.json

@@ -0,0 +1,14 @@
+{
+  "version": "2.0.0",
+  "tasks": [
+    {
+      "type": "npm",
+      "script": "build:vscode",
+      "group": "build",
+      "presentation": {
+        "panel": "dedicated",
+        "reveal": "never"
+      }
+    }
+  ]
+}

+ 294 - 0
aso/astro/CONTRIBUTING.md

@@ -0,0 +1,294 @@
+# Contributor Manual
+
+We welcome contributions of any size and skill level. As an open source project, we believe in giving back to our contributors and are happy to help with guidance on PRs, technical writing, and turning any feature idea into a reality.
+
+> [!Tip] > **For new contributors:** Take a look at [https://github.com/firstcontributions/first-contributions](https://github.com/firstcontributions/first-contributions) for helpful information on contributing
+
+## Quick Guide
+
+### Prerequisites
+
+```shell
+node: "^>=18.14.1"
+pnpm: "^8.6.12"
+# otherwise, your build will fail
+```
+
+### Setting up your local repo
+
+Astro uses pnpm workspaces, so you should **always run `pnpm install` from the top-level project directory**. Running `pnpm install` in the top-level project root will install dependencies for `astro`, and every package in the repo.
+
+```shell
+git clone && cd ...
+pnpm install
+pnpm run build
+```
+
+In [#2254](https://github.com/withastro/astro/pull/2254) a `.git-blame-ignore-revs` file was added to ignore repo-wide formatting changes. To improve your experience, you should run the following command locally.
+
+```shell
+git config --local blame.ignoreRevsFile .git-blame-ignore-revs
+```
+
+To automatically handle merge conflicts in `pnpm-lock.yaml`, you should run the following commands locally.
+
+```shell
+pnpm add -g @pnpm/merge-driver
+pnpm dlx npm-merge-driver install --driver-name pnpm-merge-driver --driver "pnpm-merge-driver %A %O %B %P" --files pnpm-lock.yaml
+```
+
+### Using GitHub Codespaces for development
+
+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)
+
+Your new codespace will open in a web-based version of Visual Studio Code. All development dependencies will be preinstalled, and the tests will run automatically ensuring you've got a green base from which to start working.
+
+> [!Note]
+> Dev containers is now an open spec which is supported by [GitHub Codespaces](https://github.com/codespaces) and [other supporting tools](https://containers.dev/supporting).
+
+### Development
+
+```shell
+# starts a file-watching, live-reloading dev script for active development
+pnpm run dev
+# build the entire project, one time.
+pnpm run build
+```
+
+**How can I test my changes while contributing to the repository?**
+
+During the development process, you may want to test your changes to ensure they are working as expected. Here are a few ways to do it:
+
+1. Run any of the examples in the `/examples` folder. They are linked to use the local Astro source code, so you can see the effects of your changes.
+
+   ```shell
+     pnpm --filter @example/minimal run dev
+   ```
+
+2. Write a test and run it. This is useful if you're making a specific fix and want to see if your changes are working as expected.
+
+3. Create a separate project and use your local Astro through [`pnpm link`](https://pnpm.io/cli/link). This is helpful if you're making bigger changes and want to test them in a separate project.
+
+Overall, it's up to personal preference which method to use. For smaller changes, using the examples folder may be sufficient. For larger changes, using a separate project may be more appropriate.
+
+#### Debugging Vite
+
+You can debug vite by prefixing any command with `DEBUG` like so:
+
+```shell
+DEBUG=vite:* astro dev        # debug everything in Vite
+DEBUG=vite:[name] astro dev   # debug specific process, e.g. "vite:deps" or "vite:transform"
+```
+
+### Running tests
+
+```shell
+# run this in the top-level project root to run all tests
+pnpm run test
+# run only a few tests in the `astro` package, great for working on a single feature
+# (example - `pnpm run test:match "cli"` runs tests with "cli" in the name)
+pnpm run test:match "$STRING_MATCH"
+# run tests on another package
+# (example - `pnpm --filter @astrojs/rss run test` runs `packages/astro-rss/test/rss.test.js`)
+pnpm --filter $STRING_MATCH run test
+```
+
+Most tests use [`mocha`](https://mochajs.org) as the test runner. We're slowly migrating to use [`node:test`](https://nodejs.org/api/test.html) instead through the custom [`astro-scripts test`](./scripts/cmd/test.js) command. For packages that use `node:test`, you can run these commands in their directories:
+
+```shell
+# run all of the package's tests
+pnpm run test
+# run only a few tests in the package
+# (example - `pnpm run test -m "cli"` runs tests with "cli" in the name)
+pnpm run test -m "$STRING_MATCH"
+# run a single test file, you can use `node --test` directly
+node --test ./test/foo.test.js
+```
+
+#### E2E tests
+
+Certain features, like HMR and client hydration, need end-to-end tests to verify functionality in the dev server. [Playwright](https://playwright.dev/) is used to test against the dev server.
+
+```shell
+# run this in the top-level project root to run all E2E tests
+pnpm run test:e2e
+# run only a few tests, great for working on a single feature
+# (example - `pnpm run test:e2e:match "Tailwind CSS" runs `tailwindcss.test.js`)
+pnpm run test:e2e:match "$STRING_MATCH"
+```
+
+**When should you add E2E tests?**
+
+Any tests for `astro build` output should use the main `mocha` tests rather than E2E - these tests will run faster than having Playwright start the `astro preview` server.
+
+If a test needs to validate what happens on the page after it's loading in the browser, that's a perfect use for E2E dev server tests, i.e. to verify that hot-module reloading works in `astro dev` or that components were client hydrated and are interactive.
+
+### Other useful commands
+
+```shell
+# auto-format the entire project
+# (optional - a GitHub Action formats every commit after a PR is merged)
+pnpm run format
+```
+
+```shell
+# lint the project
+# (optional - our linter creates helpful warnings, but not errors.)
+pnpm run lint
+```
+
+### Making a Pull Request
+
+When making a pull request, be sure to add a changeset when something has changed with Astro. Non-packages (`examples/*`) do not need changesets.
+
+```shell
+pnpm exec changeset
+```
+
+### Running benchmarks
+
+We have benchmarks to keep performance under control. They are located in the `benchmarks` directory, and it exposes a CLI you can use to run them.
+
+You can run all available benchmarks sequentially by running (from the project root):
+
+```shell
+pnpm run benchmark
+```
+
+To run a specific benchmark only, you can add the name of the benchmark after the command:
+
+```shell
+pnpm run benchmark memory
+```
+
+Use `pnpm run benchmark --help` to see all available options.
+
+To run these benchmarks in a PR on GitHub instead of using the CLI, you can comment `!bench`. The benchmarks will run on both the PR branch and the `main` branch, and the results will be posted as a new comment.
+
+To run only a specific benchmark on CI, add its name after the command in your comment, for example, `!bench memory`.
+
+## Code Structure
+
+Server-side rendering (SSR) can be complicated. The Astro package (`packages/astro`) is structured in a way to help think about the different systems.
+
+- `components/`: Built-in components to use in your project (e.g. `import Code from 'astro/components/Code.astro'`)
+- `src/`: Astro source
+  - `@types/`: TypeScript types. These are centralized to cut down on circular dependencies
+  - `cli/`: Code that powers the `astro` CLI command
+  - `core/`: Code that executes **in the top-level scope** (in Node). Within, you’ll find code that powers the `astro build` and `astro dev` commands, as well as top-level SSR code.
+  - `runtime/`: Code that executes **in different scopes** (i.e. not in a pure Node context). You’ll have to think about code differently here.
+    - `client/`: Code that executes **in the browser.** Astro’s partial hydration code lives here, and only browser-compatible code can be used.
+    - `server/`: Code that executes **inside Vite’s SSR.** Though this is a Node environment inside, this will be executed independently of `core/` and may have to be structured differently.
+  - `vite-plugin-*/`: Any Vite plugins that Astro needs to run. For the most part, these also execute within Vite similar to `src/runtime/server/`, but it’s also helpful to think about them as independent modules. _Note: at the moment these are internal while they’re in development_
+
+### Thinking about SSR
+
+There are 3 contexts in which code executes:
+
+- **Node.js**: this code lives in `src/core/`.
+- **Inside Vite**: this code lives in `src/runtime/server/`.
+- **In the browser**: this code lives in `src/runtime/client/`.
+
+Understanding in which environment code runs, and at which stage in the process, can help clarify thinking about what Astro is doing. It also helps with debugging, for instance, if you’re working within `src/core/`, you know that your code isn’t executing within Vite, so you don’t have to debug Vite’s setup. But you will have to debug vite inside `runtime/server/`.
+
+## Branches
+
+### `main`
+
+Active Astro development happens on the [`main`](https://github.com/withastro/astro/tree/main) branch. `main` always reflects the latest code.
+
+> [!Note]
+> During certain periods, we put `main` into a [**prerelease**](https://github.com/changesets/changesets/blob/main/docs/prereleases.md#prereleases) state. Read more about [Releasing Astro](#releasing-astro).
+
+### `latest`
+
+The **stable** release of Astro can always be found on the [`latest`](https://github.com/withastro/astro/tree/latest) branch. `latest` is automatically updated every time we publish a stable (not prerelease) version of Astro.
+
+By default, `create-astro` and [astro.new](https://astro.new) point to this branch.
+
+## Releasing Astro
+
+> [!Note]
+> Only [core maintainers (L3+)](https://github.com/withastro/.github/blob/main/GOVERNANCE.md#level-3-l3---core) can release new versions of Astro.
+
+The repo is set up with automatic releases, using the changeset GitHub action & bot.
+
+To release a new version of Astro, find the `Version Packages` PR, read it over, and merge it.
+
+### Releasing PR preview snapshots
+
+Our release tool `changeset` has a feature for releasing "snapshot" releases from a PR or custom branch. These are npm package publishes that live temporarily, so that you can give users a way to test a PR before merging. This can be a great way to get early user feedback while still in the PR review process.
+
+To run `changeset version` locally, you'll need to create a GitHub [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) and set it as a `GITHUB_TOKEN` environment variable.
+
+To release a snapshot, run the following locally:
+
+```shell
+# Notes:
+# - YYY should be a keyword to identify this release. Ex: `--snapshot routing` & `--tag next--routing`
+# - Use npm/npx instead of pnpm, since npm handles registry login, authentication and publishing.
+# - Adding GITHUB_TOKEN in the command adds that token to your bash history. Set a short expiration!
+
+# 1: Tag the new release versions
+GITHUB_TOKEN=XXX npx changeset version --snapshot YYY
+# 2: Review the diff, and make sure that you're not releasing more than you need to.
+git checkout -- examples/
+# 3: Release
+npm run release --tag next--YYY
+# 4: If you're satisfied, you can now throw out all local changes
+git reset --hard
+```
+
+By default, every package with a changeset will be released. If you only want to target a smaller subset of packages for release, you can consider clearing out the `.changesets` directory to replace all existing changesets with a single changeset of only the packages that you want to release. Just be sure not to commit or push this to `main`, since it will destroy existing changesets that you will still want to eventually release.
+
+Full documentation: https://github.com/changesets/changesets/blob/main/docs/snapshot-releases.md
+
+### Releasing `astro@next` (aka "prerelease mode")
+
+Sometimes, the repo will enter into "prerelease mode". In prerelease mode, our normal release process will publish npm versions under the `next` dist-tag, instead of the default `latest` tag. We do this from time-to-time to test large features before sharing them with the larger Astro audience.
+
+While in prerelease mode, follow the normal release process to release `astro@next` instead of `astro@latest`. To release `astro@latest` instead, see [Releasing `astro@latest` while in prerelease mode](#releasing-astrolatest-while-in-prerelease-mode).
+
+Full documentation: https://github.com/changesets/changesets/blob/main/docs/prereleases.md
+
+### Entering prerelease mode
+
+If you have gotten permission from the core contributors, you can enter into prerelease mode by following the following steps:
+
+- Run: `pnpm exec changeset pre enter next` in the project root
+- Create a new PR from the changes created by this command
+- Review, approve, and more the PR to enter prerelease mode.
+- If successful, The "[ci] release" PR (if one exists) will now say "[ci] release (next)".
+
+### Exiting prerelease mode
+
+Exiting prerelease mode should happen once an experimental release is ready to go from `npm install astro@next` to `npm install astro`. Only a core contributor run these steps. These steps should be run before
+
+- Run: `pnpm exec changeset pre exit` in the project root
+- Create a new PR from the changes created by this command.
+- Review, approve, and more the PR to enter prerelease mode.
+- If successful, The "[ci] release (next)" PR (if one exists) will now say "[ci] release".
+
+### Releasing `astro@latest` while in prerelease mode
+
+When in prerelease mode, the automatic PR release process will no longer release `astro@latest`, and will instead release `astro@next`. That means that releasing to `latest` becomes a manual process. To release latest manually while in prerelease mode:
+
+1. _In the code snippets below, replace `0.X` with your version (ex: `0.18`, `release/0.18`, etc.)._
+1. Create a new `release/0.X` branch, if none exists.
+1. Point `release/0.X` to the latest commit for the `v0.X` version.
+1. `git cherry-pick` commits from `main`, as needed.
+1. Make sure that all changesets for the new release are included. You can create some manually (via `pnpm exec changeset`) if needed.
+1. Run `pnpm exec changeset version` to create your new release.
+1. Run `pnpm exec release` to publish your new release.
+1. Run `git push && git push --tags` to push your new release to GitHub.
+1. Run `git push release/0.X:latest` to push your release branch to `latest`.
+1. Go to https://github.com/withastro/astro/releases/new and create a new release. Copy the new changelog entry from https://github.com/withastro/astro/blob/latest/packages/astro/CHANGELOG.md.
+1. Post in Discord #announcements channel, if needed!
+
+## Documentation
+
+Help us make [docs.astro.build](https://docs.astro.build/) as accurate and easy-to-use as possible. Contributing to documentation can be a great way to get involved with open source development without having to code.
+
+Head over to [the `withastro/docs` repo](https://github.com/withastro/docs) to get involved!

+ 59 - 0
aso/astro/LICENSE

@@ -0,0 +1,59 @@
+MIT License
+
+Copyright (c) 2021 Fred K. Schott
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+"""
+This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository:
+
+Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""
+
+"""
+This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository:
+
+MIT License
+
+Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+"""

+ 104 - 0
aso/astro/README.md

@@ -0,0 +1,104 @@
+![Build the web you want](.github/assets/banner.jpg 'Build the web you want')
+
+<p align="center">
+  <br/>
+  <a href="https://astro.build">Astro</a> is a website build tool for the modern web &mdash;
+  <br/>
+  powerful developer experience meets lightweight output.
+  <br/><br/>
+</p>
+
+<div align="center">
+
+![Build Status](https://github.com/withastro/astro/actions/workflows/ci.yml/badge.svg)
+[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/withastro/astro/blob/main/LICENSE)
+[![npm version](https://badge.fury.io/js/astro.svg)](https://badge.fury.io/js/astro)
+
+</div>
+
+## Install
+
+The **recommended** way to install the latest version of Astro is by running the command below:
+
+```bash
+npm create astro@latest
+```
+
+You can also install Astro **manually** by running this command instead:
+
+```bash
+npm install --save-dev astro
+```
+
+Looking for help? Start with our [Getting Started](https://docs.astro.build/en/getting-started/) guide.
+
+Looking for quick examples? [Open a starter project](https://astro.new/) right in your browser.
+
+## Documentation
+
+Visit our [official documentation](https://docs.astro.build/).
+
+## Support
+
+Having trouble? Get help in the official [Astro Discord](https://astro.build/chat).
+
+## Contributing
+
+**New contributors welcome!** Check out our [Contributors Guide](CONTRIBUTING.md) for help getting started.
+
+Join us on [Discord](https://astro.build/chat) to meet other maintainers. We'll help you get your first contribution in no time!
+
+## Directory
+
+| Package                                                                                    | Release Notes                                                                                                                                                        |
+| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| [astro](packages/astro)                                                                    | [![astro version](https://img.shields.io/npm/v/astro.svg?label=%20)](packages/astro/CHANGELOG.md)                                                                    |
+| [create-astro](packages/create-astro)                                                      | [![create-astro version](https://img.shields.io/npm/v/create-astro.svg?label=%20)](packages/create-astro/CHANGELOG.md)                                               |
+| [@astrojs/react](packages/integrations/react)                                              | [![astro version](https://img.shields.io/npm/v/@astrojs/react.svg?label=%20)](packages/integrations/react/CHANGELOG.md)                                              |
+| [@astrojs/preact](packages/integrations/preact)                                            | [![astro version](https://img.shields.io/npm/v/@astrojs/preact.svg?label=%20)](packages/integrations/preact/CHANGELOG.md)                                            |
+| [@astrojs/solid-js](packages/integrations/solid)                                           | [![astro version](https://img.shields.io/npm/v/@astrojs/solid-js.svg?label=%20)](packages/integrations/solid/CHANGELOG.md)                                           |
+| [@astrojs/svelte](packages/integrations/svelte)                                            | [![astro version](https://img.shields.io/npm/v/@astrojs/svelte.svg?label=%20)](packages/integrations/svelte/CHANGELOG.md)                                            |
+| [@astrojs/vue](packages/integrations/vue)                                                  | [![astro version](https://img.shields.io/npm/v/@astrojs/vue.svg?label=%20)](packages/integrations/vue/CHANGELOG.md)                                                  |
+| [@astrojs/lit](packages/integrations/lit)                                                  | [![astro version](https://img.shields.io/npm/v/@astrojs/lit.svg?label=%20)](packages/integrations/lit/CHANGELOG.md)                                                  |
+| [@astrojs/node](packages/integrations/node)                                                | [![astro version](https://img.shields.io/npm/v/@astrojs/node.svg?label=%20)](packages/integrations/node/CHANGELOG.md)                                                |
+| [@astrojs/vercel](packages/integrations/vercel)                                            | [![astro version](https://img.shields.io/npm/v/@astrojs/vercel.svg?label=%20)](packages/integrations/vercel/CHANGELOG.md)                                            |
+| [@astrojs/cloudflare](https://github.com/withastro/adapters/blob/main/packages/cloudflare) | [![astro version](https://img.shields.io/npm/v/@astrojs/cloudflare.svg?label=%20)](https://github.com/withastro/adapters/blob/main/packages/cloudflare/CHANGELOG.md) |
+| [@astrojs/partytown](packages/integrations/partytown)                                      | [![astro version](https://img.shields.io/npm/v/@astrojs/partytown.svg?label=%20)](packages/integrations/partytown/CHANGELOG.md)                                      |
+| [@astrojs/sitemap](packages/integrations/sitemap)                                          | [![astro version](https://img.shields.io/npm/v/@astrojs/sitemap.svg?label=%20)](packages/integrations/sitemap/CHANGELOG.md)                                          |
+| [@astrojs/tailwind](packages/integrations/tailwind)                                        | [![astro version](https://img.shields.io/npm/v/@astrojs/tailwind.svg?label=%20)](packages/integrations/tailwind/CHANGELOG.md)                                        |
+| [@astrojs/alpinejs](packages/integrations/alpinejs)                                        | [![astro version](https://img.shields.io/npm/v/@astrojs/alpinejs.svg?label=%20)](packages/integrations/alpinejs/CHANGELOG.md)                                        |
+| [@astrojs/mdx](packages/integrations/mdx)                                                  | [![astro version](https://img.shields.io/npm/v/@astrojs/mdx.svg?label=%20)](packages/integrations/mdx/CHANGELOG.md)                                                  |
+
+[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6178/badge)](https://bestpractices.coreinfrastructure.org/projects/6178)
+
+Several official projects are maintained outside of this repo:
+
+| Project                                                             | Repository                                                              |
+| ------------------------------------------------------------------- | ----------------------------------------------------------------------- |
+| [@astrojs/compiler](https://github.com/withastro/compiler)          | [withastro/compiler](https://github.com/withastro/compiler)             |
+| [Astro Language Tools](https://github.com/withastro/language-tools) | [withastro/language-tools](https://github.com/withastro/language-tools) |
+
+## Links
+
+- [License (MIT)](LICENSE)
+- [Code of Conduct](https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md)
+- [Open Governance & Voting](https://github.com/withastro/.github/blob/main/GOVERNANCE.md)
+- [Project Funding](https://github.com/withastro/.github/blob/main/FUNDING.md)
+- [Website](https://astro.build/)
+
+## Sponsors
+
+Astro is free, open source software made possible by these wonderful sponsors.
+
+[❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)
+
+<p align="center">
+  <a target="_blank" href="https://github.com/sponsors/withastro">
+
+[![Astro's sponsors.](https://astro.build/sponsors.png "Astro's sponsors.
+Platinum sponsors: Vercel, storyblok, Netlify, Ship Shape, Google Chrome
+Gold sponsors: ‹div›RIOTS, DEEPGRAM, Transloadit, CloudCannon
+Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro)
+
+  </a>
+</p>

+ 25 - 0
aso/astro/SECURITY.md

@@ -0,0 +1,25 @@
+# Astro Security
+
+## Reporting a Vulnerability
+
+To report a security issue, please email security@astro.build with a detailed description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue.
+
+Please remember to include everything required for us to reproduce the issue, including but not limited to a publicly accessible git repository and/or StackBlitz repository. All code samples shared with our Security team will only be used to verify and diagnose the issue and will not be publicly shared with anyone outside of Astro's teams. Astro's Security Team members may share information only within the Astro teams on a need-to-know basis to fix the related issue in Astro.
+
+Our Security team will acknowledge receiving your email within 3 working days.
+
+<ins>**If you think you've found a security issue, please DO NOT report, discuss, or describe it on Discord, GitHub, or any other public forum; without prior contact and acknowledgment of Astro's Security team.**<ins>
+
+This project follows a 90 day disclosure timeline.
+
+**_This is detrimental to the safety of all Astro users. No exceptions._**
+
+## Embargo Policy
+
+The information members and others receive through participation in this group must not be made public, shared, or even hinted otherwise, except with prior explicit approval (which shall be handled on a case-by-case basis). This holds true until the agreed-upon public disclosure date/time is satisfied.
+
+As a clarifying example, this policy forbids Astro Security members from sharing list information with their employers; unless prior arrangements have been made directly with an employer.
+
+In the unfortunate event that you share the information beyond what is allowed by this policy, you must urgently inform the Astro Security Team of exactly what information leaked and to whom, as well as the steps that will be taken to prevent future leaks.
+
+**Repeated offenses may lead to the removal from the Security or Astro team.**

+ 16 - 0
aso/astro/SECURITY_CONTACTS

@@ -0,0 +1,16 @@
+# Defined below are the security contacts for this repo.
+#
+# They are the contact point for triaging and handling of incoming 
+# Security issues.
+#
+# The below names agree to abide by the
+# [Embargo Policy](https://github.com/withastro/astro/blob/master/SECURITY.md)
+# and will be removed and replaced if they violate that agreement.
+#
+# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE
+# INSTRUCTIONS AT https://github.com/withastro/astro/blob/master/SECURITY.md
+
+Randall T. Vasquez (@ran-dall)
+Matthew Phillips (@matthewp)
+Nate Moore (@natemoo-re)
+Fred K. Schott (@fks)

+ 68 - 0
aso/astro/STYLE_GUIDE.md

@@ -0,0 +1,68 @@
+# Style Guide
+
+Welcome to the Astro style guide. This document is meant to guide you on the coding & writing styles of all content within the Astro repo, including:
+
+- TypeScript & JavaScript coding style
+- Blog post writing style
+- Discord/Twitter writing style
+
+For the RFC writing guide, check out the [RFC issue template](https://github.com/withastro/astro/issues/new/choose).
+
+### Linting (Style Rules)
+
+We use tools like ESLint and TypeScript to automatically enforce some parts of our style guide. Run the `pnpm run lint` command to lint the codebase. We also use tools like Prettier to automatically enforce code formatting. Run the `pnpm run format` command to format the entire codebase.
+
+Anything enforced by linting and formatting is considered a **style rule.** It is strictly required that you follow all style rules while working in the codebase. Run the `pnpm run lint` and `pnpm run format` commands to check your code at any time.
+
+These style rules are maintained in configuration files, and therefore not documented in this document. Read any of the following configuration files to learn more about the style rules that we strictly enforced across the codebase:
+
+- [ESLint](https://github.com/withastro/astro/blob/main/.eslintrc.cjs) (Linting)
+- [Prettier](https://github.com/withastro/astro/blob/main/.prettierrc.json) (Formatting)
+
+Alternatively, don't worry too much about style rules and trust that our tools will catch these issues for you and offer inline suggestions as you work.
+
+### Style Rules vs. Style Guidance
+
+We will try to enforce most of our style guide with linting and formatting tools, but not everything can be reasonably captured in a lint rule.
+
+Anything else in this document -- that is, anything not automatically enforced by linting -- is considered **style guidance.** Do your best to follow all style guidance outlined in this style guide, and expect code reviewers to be looking for these things in your Pull Request. However, no tool exists to catch you when you break guidance.
+
+The reason that we don't treat these as strict rules is simple: we are all human. It would be silly to expect 100% accuracy without automated tooling to enforce it. Authors and reviewers will both miss things every once-in-a-while, and that is okay.
+
+### How to Request a Style Change
+
+Currently, style rule changes must be nominated by a core maintainer (L3) to be considered for the official style guide. Anyone is free to suggest a change, but do not expect any action unless a core maintainer champions your proposal through the process.
+
+_Note: This process is new, we are still figuring it out! This process will be moved into GOVERNANCE.md when finalized._
+
+_If you are a core maintainer who is interested in nominating or championing a style change, reach out in the private #core channel on Discord._
+
+### How to Evaluate a Style Change
+
+Style changes should be evaluated as objectively as possible, with as little personal ego invested as possible.
+
+For example: "This is clean code" is a subjective point and should have limited impact in a style discussion. What is clean code to you may be "dirty" code to me!
+
+In contrast: "Tabs are more accessible than spaces" is an objective point and should be strongly considered in a theoretical style discussion on tabs vs. spaces. (Fred: Believe me, I write this as someone who personally prefers spaces over tabs in my own code!)
+
+Sometimes, not everyone will agree on style changes and 100% consensus is impossible. This is a condition commonly referred to as bike-shedding. If consensus can not be reached, a simple majority vote among core contributors (L3) will suffice.
+
+_Note: This process is new, we are still figuring it out! This process will be moved into GOVERNANCE.md when finalized._
+
+## TypeScript Style Guide
+
+Empty! Right now, everything in our official style guide is captured and enforced as style rules in the automated tooling, as outlined above.
+
+## Writing
+
+### Blog Posts: Brief Announcement
+
+TODO. For now, see an example: https://astro.build/blog/astro-repl/
+
+### Blog Posts: Detailed Announcement
+
+TODO. For now, see an example: https://astro.build/blog/astro-021-preview/
+
+### Tweet: Announcement
+
+TODO. For now, see an example: https://twitter.com/astrodotbuild

+ 5 - 0
aso/astro/benchmark/README.md

@@ -0,0 +1,5 @@
+# benchmark
+
+Astro's main benchmark suite. It exposes the `astro-benchmark` CLI command. Run `astro-benchmark --help` to see all available commands!
+
+If you'd like to understand how the benchmark works, check out the other READMEs in the subfolders.

+ 7 - 0
aso/astro/benchmark/bench/README.md

@@ -0,0 +1,7 @@
+# bench
+
+This `bench` folder contains different benchmarking files that you can run via `astro-benchmark <bench-file-name>`, e.g. `astro-benchmark memory`. Files that start with an underscore are not benchmarking files.
+
+Benchmarking files will run against a project to measure its performance, and write the results down as JSON in the `results` folder. The `results` folder is gitignored and its result files can be safely deleted if you're not using them.
+
+You can duplicate `_template.js` to start a new benchmark test. All shared utilities are kept in `_util.js`.

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff