From c87cdbb7854912ce9912d52dea11e7ceff51947a Mon Sep 17 00:00:00 2001 From: tnsi Date: Wed, 3 Jul 2024 12:20:51 -0400 Subject: [PATCH] feature: initialize astro --- README.md | 48 +++++++++++++++++++++++++++++++++++++++++-- astro.config.mjs | 4 ++++ package.json | 17 +++++++++++++++ public/favicon.svg | 9 ++++++++ src/env.d.ts | 1 + src/pages/index.astro | 16 +++++++++++++++ tsconfig.json | 3 +++ 7 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 astro.config.mjs create mode 100644 package.json create mode 100644 public/favicon.svg create mode 100644 src/env.d.ts create mode 100644 src/pages/index.astro create mode 100644 tsconfig.json diff --git a/README.md b/README.md index d7b4d95..e34a99b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,47 @@ -# irako-home +# Astro Starter Kit: Minimal -irako home page \ No newline at end of file +```sh +npm create astro@latest -- --template minimal +``` + +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) +[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json) + +> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! + +## 🚀 Project Structure + +Inside of your Astro project, you'll see the following folders and files: + +```text +/ +├── public/ +├── src/ +│ └── pages/ +│ └── index.astro +└── package.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 | +| `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/astro.config.mjs b/astro.config.mjs new file mode 100644 index 0000000..882e651 --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,4 @@ +import { defineConfig } from 'astro/config'; + +// https://astro.build/config +export default defineConfig({}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..cf4df55 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "irakohome", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "start": "astro dev", + "build": "astro check && astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "astro": "^4.11.4", + "@astrojs/check": "^0.7.0", + "typescript": "^5.5.3" + } +} \ No newline at end of file diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..f157bd1 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,9 @@ + + + + diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..2d14107 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,16 @@ +--- + +--- + + + + + + + + Astro + + +

Astro

+ + diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..77da9dd --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "astro/tsconfigs/strict" +} \ No newline at end of file