Installs all dependencies. You need to run it before starting the project.
Starts the local development server at https://localhost:3000/
.
The command sets the site to be local so it overrides the siteUrl
in the astro.config.ts
file for the dev build. That is so you don't have to change configuration between local and production builds.
Alias for npm run dev
.
Builds your production site and outputs it to ./dist/
. This is the command ran on GitHub actions.
Preview your build locally, it will serve the production build at https://localhost:3000/
.
This is usefull to test things that don't normally run during development, like service workers.
Wrapper for the astro
CLI commands. You can run astro add
, astro check
, and other commands using this.
Checks the project for errors and fix most of them. This includes linting the TypeScript code with ESLint, the HTML/Astro code with Markuplint, and the CSS with Stylelint.
This is a sequence of the following commands:
npm run typecheck
- Checks the TypeScript codenpm run lint:js
- Lints the TypeScript codenpm run lint:css
- Lints the CSS codenpm run lint:md
- Checks markdown files using astronpm run lint:html
- Lints the HTML/Astro code
Bumps the version of the project. This is used to generate the changelog and tag the release.
Builds the PWA assets for the projects, like icons and images.