diff --git a/examples/deno/.codesandbox/Dockerfile b/examples/deno/.codesandbox/Dockerfile deleted file mode 100644 index c3b5c81a1..000000000 --- a/examples/deno/.codesandbox/Dockerfile +++ /dev/null @@ -1 +0,0 @@ -FROM node:18-bullseye diff --git a/examples/deno/.vscode/extensions.json b/examples/deno/.vscode/extensions.json deleted file mode 100644 index 22a15055d..000000000 --- a/examples/deno/.vscode/extensions.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "recommendations": ["astro-build.astro-vscode"], - "unwantedRecommendations": [] -} diff --git a/examples/deno/.vscode/launch.json b/examples/deno/.vscode/launch.json deleted file mode 100644 index d64220976..000000000 --- a/examples/deno/.vscode/launch.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - { - "command": "./node_modules/.bin/astro dev", - "name": "Development server", - "request": "launch", - "type": "node-terminal" - } - ] -} diff --git a/examples/deno/README.md b/examples/deno/README.md deleted file mode 100644 index 17deeb3b9..000000000 --- a/examples/deno/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# Astro Starter Kit: Deno - -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/deno) -[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/deno) -[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/deno/devcontainer.json) - -```sh -npm create astro@latest -- --template deno -``` - -> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! - -![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png) - -## 🚀 Project Structure - -Inside of your Astro project, you'll see the following folders and files: - -```text -/ -├── public/ -│ └── favicon.svg -├── src/ -│ ├── components/ -│ │ └── Layout.astro -│ └── pages/ -│ └── index.astro -├── package.json -└── tsconfig.json -``` - -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. - -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. - -Any static assets, like images, can be placed in the `public/` directory. - -## 🧞 Commands - -All commands are run from the root of the project, from a terminal: - -| Command | Action | -| :------------------------ | :----------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| | (preview uses Deno CLI) | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | - -## 👀 Want to learn more? - -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). diff --git a/examples/deno/astro.config.mjs b/examples/deno/astro.config.mjs deleted file mode 100644 index 1a5c7f32c..000000000 --- a/examples/deno/astro.config.mjs +++ /dev/null @@ -1,9 +0,0 @@ -import { defineConfig } from 'astro/config'; - -import deno from '@astrojs/deno'; - -// https://astro.build/config -export default defineConfig({ - output: 'server', - adapter: deno(), -}); diff --git a/examples/deno/package.json b/examples/deno/package.json deleted file mode 100644 index 277871f85..000000000 --- a/examples/deno/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@example/deno", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "astro dev", - "start": "astro dev", - "build": "astro build", - "preview": "deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs", - "astro": "astro" - }, - "dependencies": { - "astro": "^3.2.0" - }, - "devDependencies": { - "@astrojs/deno": "^5.0.1" - } -} diff --git a/examples/deno/public/favicon.svg b/examples/deno/public/favicon.svg deleted file mode 100644 index f157bd1c5..000000000 --- a/examples/deno/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/examples/deno/src/components/Layout.astro b/examples/deno/src/components/Layout.astro deleted file mode 100644 index 7bcbd218c..000000000 --- a/examples/deno/src/components/Layout.astro +++ /dev/null @@ -1,61 +0,0 @@ ---- -interface Props { - title: string; -} - -const { title } = Astro.props as Props; ---- - - - - - - - - {title} - - - - - - diff --git a/examples/deno/src/pages/index.astro b/examples/deno/src/pages/index.astro deleted file mode 100644 index 0399a7534..000000000 --- a/examples/deno/src/pages/index.astro +++ /dev/null @@ -1,188 +0,0 @@ ---- -import Layout from '../components/Layout.astro'; - -export const prerender = true; ---- - - -
-

Welcome to Astro on Deno

-

- Your first mission: tweak this message to try our hot module reloading. Check - the src/pages directory! -

- -
-
- - diff --git a/examples/deno/tsconfig.json b/examples/deno/tsconfig.json deleted file mode 100644 index d78f81ec4..000000000 --- a/examples/deno/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "astro/tsconfigs/base" -}