Updated Build Config

This commit is contained in:
2025-08-16 09:58:40 +05:30
parent 4319823c76
commit 1c2198537a
6 changed files with 127 additions and 49 deletions
+14 -38
View File
@@ -1,43 +1,19 @@
# Astro Starter Kit: Minimal
# @wrnexus/astro
```sh
npm create astro@latest -- --template minimal
```
Form + field components for **Astro** with Tailwind utilities and Zod-ready validation hooks.
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
-`<Form />` — submit handling + client validation plumbing
-`<Field />` — text/email/password/number/textarea/select/date/time/file/checkbox/radio/switch
-`<MultiSelect />` — searchable, checkbox-driven multi select dropdown
-`<Button />`, `<Icon />` helpers
- 🎯 Works with your Tailwind tokens (e.g., `bg-primary`, `text-foreground`, `border-border`)
- 🧪 Zod integration: pass `schemaName` to `<Form />` and expose a schema as `window[schemaName]`
## 🚀 Project Structure
---
Inside of your Astro project, you'll see the following folders and files:
## Installation
```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).
```bash
pnpm add @wrnexus/astro
# or
npm i @wrnexus/astro