0
Fork 0
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!
Find a file
2021-03-26 13:26:36 -06:00
.github/workflows Allow HMX components in markdown (#19) 2021-03-23 15:20:03 -04:00
.vscode Scaffold language server (#25) 2021-03-25 10:38:17 -05:00
examples/snowpack Fix JSX CSS Modules classes (#31) 2021-03-26 13:26:36 -06:00
src Fix JSX CSS Modules classes (#31) 2021-03-26 13:26:36 -06:00
test Absorb Snowpack config inside Astro (#32) 2021-03-26 13:14:32 -06:00
vscode Scaffold language server (#25) 2021-03-25 10:38:17 -05:00
.eslintrc.cjs Fix a few lint errors 2021-03-16 12:43:23 -06:00
.gitignore Scaffold language server (#25) 2021-03-25 10:38:17 -05:00
.prettierrc.json Annoying Lint PR™ (#3) 2021-03-16 12:37:45 -06:00
astro.mjs Add a proper cli 2021-03-15 15:26:23 -04:00
LICENSE Bring compiler into Astro (#4) 2021-03-16 16:08:11 -04:00
package-lock.json Absorb Snowpack config inside Astro (#32) 2021-03-26 13:14:32 -06:00
package.json Absorb Snowpack config inside Astro (#32) 2021-03-26 13:14:32 -06:00
README.md Absorb Snowpack config inside Astro (#32) 2021-03-26 13:14:32 -06:00
snowpack-plugin.cjs Add React component SSR (#28) 2021-03-25 16:59:38 -06:00
tsconfig.json initial commit 2021-03-15 13:22:05 -04:00

👩‍🚀 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.