npm create astro@latest -- --template jmblog/astro-starter-kit
The following tools and integrations are included in this starter kit:
- ESLint,
eslint-plugin-astro
andeslint-plugin-jsx-a11y
for linting your Astro code - Prettier and
prettier-plugin-astro
for formatting your Astro code - Markuplint and
@markuplint/astro-parser
for linting your markup - Stylelint and
stylelint-config-html
for linting your CSS in Astro components @astrojs/sitemap
for generating a sitemap fileastro-compress
for compressing HTML, CSS, JavaScript outputastro-seo
for making it easy to add SEO relevant tagsastro-purgecss
for 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 |