Skip to content

feat: astro template #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 4, 2024
26 changes: 26 additions & 0 deletions templates/website/astro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Various IDEs and Editors
.vscode/
.idea/
**/*~

# Mac OSX temporary files
.DS_Store
**/.DS_Store

# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production
12 changes: 12 additions & 0 deletions templates/website/astro/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
32 changes: 32 additions & 0 deletions templates/website/astro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Juno: Astro Starter Kit

```sh
npm create juno@latest -- --template astro
```

> 🧑‍🚀 **Seasoned dev?** Delete this file. Have fun!

![A screenshot of the starter kit](./screenshot.png)

A starter kit developer for [Juno](https://juno.build) using [Astro](https://docs.astro.build).

## ✨ Links & Resources

- Looking to get started with Juno? Check out the [documentation](https://juno.build).
- Have a look at the [Astro](https://docs.astro.build) for question regarding the templates.
- Have questions, comments or feedback? [Join our discord](https://discord.gg/wHZ57Z2RAG) or [OpenChat](https://oc.app/community/vxgpi-nqaaa-aaaar-ar4lq-cai/?ref=xanzv-uaaaa-aaaaf-aneba-cai).

## 🧞 Commands

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:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `juno deploy` | Deploy your project to a Satellite |

## 🚀 Launch

Explore this [guide](https://juno.build/docs/add-juno-to-an-app/create-a-satellite) to launch your Satellite into orbit via Juno's [administration console](https://console.juno.build).
22 changes: 22 additions & 0 deletions templates/website/astro/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import juno from "@junobuild/vite-plugin";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: "https://example.com",
integrations: [mdx(), sitemap(), tailwind()],
vite: {
plugins: [
juno({
container: true,
}),
],
},
devToolbar: {
enabled: false,
},
});
Loading
Loading