sheohn Svelte Themes

Sheohn

My portfolio. Built with Astro and Svelte 5, featuring a custom AI agent that can answer questions about my background. (unfinished)

Astro Starter Kit: Minimal

npm create astro@latest -- --template minimal

šŸ§‘ā€šŸš€ Seasoned astronaut? Delete this file. Have fun!

šŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
ā”œā”€ā”€ 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 or jump into our Discord server.


Pre-Push Checklist (CI/CD Safety)

To ensure GitHub Actions or Vercel CI/CD doesn't unexpectedly fail on your branches, always run these commands locally before committing / pushing code:

  1. Auto-Format Code: Ensures all files match Prettier's strict styling rules.

    npm run format
    
  2. Lint Code (find errors): Catches undeclared variables, unused imports, or bad syntax.

    npm run lint
    
  3. Type-Check (Astro + TS strict mode): Ensures all TypeScript interfaces, JSX props, and Astro components compile successfully without throwing errors.

    npm run check
    

Top categories

Loading Svelte Themes