my personal site
built with Astro, using the Deno runtime for fun
all commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
deno install --allow-scripts |
Installs dependencies |
deno task |
See all available tasks |
deno task dev |
Starts local dev server at localhost:4321 |
deno task build |
Build your production site to ./dist/ |
deno task preview |
Preview your build locally, before deploying |
deno task astro ... |
Run CLI commands like astro add , astro check |
deno task astro -- --help |
Get help using the Astro CLI |
https://docs.astro.build/en/upgrade-astro/
deno install --allow-scripts astro@latest @astrojs/tailwind@latest
you may encounter the following error
Could not find Sharp. Please install Sharp (`sharp`) manually into your project or migrate to another image service.
fix by installing sharp
manually
deno add --allow-scripts npm:sharp
(reference: https://docs.astro.build/en/guides/images/#default-image-service)