-
Notifications
You must be signed in to change notification settings - Fork 0
Development Workflow
FlowerCA77 edited this page Sep 21, 2025
·
1 revision
Chinese version: 开发流程(中文).
-
pnpm dev→ Start Astro dev server -
pnpm build→ Build static site todist/ -
pnpm preview→ Serve built site locally
- Install dependencies:
pnpm install - Run dev server:
pnpm dev - Edit content and components; verify hot reload
- Commit changes
- Build and preview locally when needed:
pnpm build && pnpm preview
- TypeScript strict config via
tsconfig.json(extends Astro strict). React JSX via"jsx": "react-jsx". - Keep components small and reusable under
src/components/. - Use layouts in
src/layouts/to unify page chrome.
- Follow collection schemas; set
draft: trueto avoid publishing prematurely. - Use
seriesandseriesNofor multi-part content; linkprevPost/nextPostwhere meaningful. - Prefer descriptive
descriptionfor SEO and list previews.
- Not configured in repo by default. You may add Prettier/ESLint as needed.
- Home
- Getting Started
- Project Structure
- Content Collections
- Components & Layouts
- Routing
- Styling & Theming
- Markdown & MDX
- Development Workflow
- Deployment
- CI/CD
- FAQ
- Troubleshooting
- Contributing
- Security
- Support
- Changelog
- License