npm create astro@latest -- --template jmblog/astro-starter-kit
The following tools and integrations are included in this starter kit:
- ESLint,
eslint-plugin-astroandeslint-plugin-jsx-a11yfor linting your Astro code - Prettier and
prettier-plugin-astrofor formatting your Astro code - Markuplint and
@markuplint/astro-parserfor linting your markup - Stylelint and
stylelint-config-htmlfor linting your CSS in Astro components @astrojs/sitemapfor generating a sitemap fileastro-compressfor compressing HTML, CSS, JavaScript outputastro-seofor making it easy to add SEO relevant tagsastro-purgecssfor removing unused CSS
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── *.astro
│ ├── layouts/
│ │ └── *.astro
│ └── pages/
│ └── *.astro
└── package.json
Check the official documentation for more details.
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 lint |
Run linters |
npm run fix |
Fix problems reported by linters |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro --help |
Get help using the Astro CLI |