Built for people who think better out loud.

astro: Initialize project

+132
+24
.gitignore
··· 1 + # build output 2 + dist/ 3 + # generated types 4 + .astro/ 5 + 6 + # dependencies 7 + node_modules/ 8 + 9 + # logs 10 + npm-debug.log* 11 + yarn-debug.log* 12 + yarn-error.log* 13 + pnpm-debug.log* 14 + 15 + 16 + # environment variables 17 + .env 18 + .env.production 19 + 20 + # macOS-specific files 21 + .DS_Store 22 + 23 + # jetbrains setting folder 24 + .idea/
+4
.vscode/extensions.json
··· 1 + { 2 + "recommendations": ["astro-build.astro-vscode"], 3 + "unwantedRecommendations": [] 4 + }
+11
.vscode/launch.json
··· 1 + { 2 + "version": "0.2.0", 3 + "configurations": [ 4 + { 5 + "command": "./node_modules/.bin/astro dev", 6 + "name": "Development server", 7 + "request": "launch", 8 + "type": "node-terminal" 9 + } 10 + ] 11 + }
+43
README.md
··· 1 + # Astro Starter Kit: Minimal 2 + 3 + ```sh 4 + pnpm create astro@latest -- --template minimal 5 + ``` 6 + 7 + > 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! 8 + 9 + ## 🚀 Project Structure 10 + 11 + Inside of your Astro project, you'll see the following folders and files: 12 + 13 + ```text 14 + / 15 + ├── public/ 16 + ├── src/ 17 + │ └── pages/ 18 + │ └── index.astro 19 + └── package.json 20 + ``` 21 + 22 + Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. 23 + 24 + There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. 25 + 26 + Any static assets, like images, can be placed in the `public/` directory. 27 + 28 + ## 🧞 Commands 29 + 30 + All commands are run from the root of the project, from a terminal: 31 + 32 + | Command | Action | 33 + | :------------------------ | :----------------------------------------------- | 34 + | `pnpm install` | Installs dependencies | 35 + | `pnpm dev` | Starts local dev server at `localhost:4321` | 36 + | `pnpm build` | Build your production site to `./dist/` | 37 + | `pnpm preview` | Preview your build locally, before deploying | 38 + | `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` | 39 + | `pnpm astro -- --help` | Get help using the Astro CLI | 40 + 41 + ## 👀 Want to learn more? 42 + 43 + Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
+5
astro.config.mjs
··· 1 + // @ts-check 2 + import { defineConfig } from 'astro/config'; 3 + 4 + // https://astro.build/config 5 + export default defineConfig({});
+14
package.json
··· 1 + { 2 + "name": "slipnote", 3 + "type": "module", 4 + "version": "0.0.1", 5 + "scripts": { 6 + "dev": "astro dev", 7 + "build": "astro build", 8 + "preview": "astro preview", 9 + "astro": "astro" 10 + }, 11 + "dependencies": { 12 + "astro": "^5.17.1" 13 + } 14 + }
public/favicon.ico

This is a binary file and will not be displayed.

+9
public/favicon.svg
··· 1 + <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128"> 2 + <path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" /> 3 + <style> 4 + path { fill: #000; } 5 + @media (prefers-color-scheme: dark) { 6 + path { fill: #FFF; } 7 + } 8 + </style> 9 + </svg>
+17
src/pages/index.astro
··· 1 + --- 2 + 3 + --- 4 + 5 + <html lang="en"> 6 + <head> 7 + <meta charset="utf-8" /> 8 + <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> 9 + <link rel="icon" href="/favicon.ico" /> 10 + <meta name="viewport" content="width=device-width" /> 11 + <meta name="generator" content={Astro.generator} /> 12 + <title>Astro</title> 13 + </head> 14 + <body> 15 + <h1>Astro</h1> 16 + </body> 17 + </html>
+5
tsconfig.json
··· 1 + { 2 + "extends": "astro/tsconfigs/strict", 3 + "include": [".astro/types.d.ts", "**/*"], 4 + "exclude": ["dist"] 5 + }