βββ public/
β βββ assets/
β β βββ images.png
β βββ favicon.svg
β βββ robots.txt
β βββ toggle-theme.js
βββ src/
β βββ assets/
β β βββ socialIcons.ts
β βββ components/
β βββ content/
β β | blog/
β β | βββ posts.md
β β βββ _schemas.ts
β β βββ config.ts
β βββ layouts/
β βββ pages/
β βββ styles/
β βββ utils/
β βββ config.ts
β βββ types.ts
βββ package.json
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:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run format:check |
Check code format with Prettier |
npm run format |
Format codes with Prettier |
npm run sync |
Generates TypeScript types for all Astro modules. Learn more. |
npm run cz |
Commit code changes with commitizen |
npm run lint |
Lint with ESLint |