mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
The web framework for content-driven websites. ⭐️ Star to support our work!
202973291f
* Add Auto-format action * Add PR template |
||
---|---|---|
.github | ||
.vscode | ||
examples/snowpack | ||
src | ||
test | ||
vscode | ||
.eslintrc.cjs | ||
.gitignore | ||
.prettierrc.json | ||
astro.mjs | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
snowpack-plugin.cjs | ||
tsconfig.json |
👩🚀 Astro
A next-generation static-site generator with partial hydration. Use your favorite JS framework and ship bare-minimum JS (or none at all!).
🔧 Setup
npm install astro
TODO: astro boilerplate
🧞 Development
Add a dev
npm script to your /package.json
file:
{
"scripts": {
"dev": "astro dev ."
}
}
Then run:
npm run dev
🚀 Build & Deployment
Add a build
npm script to your /package.json
file:
{
"scripts": {
"dev": "astro dev .",
"build": "astro build ."
}
}
Then run:
npm run build
Now upload the contents of /_site_
to your favorite static site host.