Jeremboo / astro-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro Starter Kit

Tools and Documentations

Front-end tools :

Dev tools :

πŸš€ Project Structure

/
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Card.astro
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── index.astro
β”‚   └── webgl/
β”‚       └── index.ts
└── 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 host Starts local dev server visible along your IP
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
npm run template Generate components or pages
npm run pretty Parse all files to execute prettier on it

Optional tools ??

Inspiration

Troubleshooting

  • The transition between pages with a canvas in the background looks really off. Looks like there is 2 canvases at the same time instead of one.
  • The nested transitions aren't working properly
  • The HMR isn't working into the webgl folder. I had to create a custom vite.js plugin to refresh the entire page

TODO

About


Languages

Language:TypeScript 46.1%Language:Astro 25.0%Language:JavaScript 18.1%Language:Shell 4.2%Language:CSS 4.1%Language:GLSL 2.5%