Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jan 18, 2025
0 parents commit 2ffe30e
Show file tree
Hide file tree
Showing 29 changed files with 13,523 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to Juno

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

- name: Deploy to Juno
uses: junobuild/juno-action@main
with:
args: deploy
env:
JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }}
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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

target

.sanity/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
12 changes: 12 additions & 0 deletions .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",
},
},
],
};
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Juno: Astro Starter Kit

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

> 🧑‍🚀 **Seasoned dev?** Delete this file. Have fun!
![A screenshot of the starter kit](https://raw.githubusercontent.com/junobuild/create-juno/main/screenshots/screenshot-starter.png)

A starter kit developed 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 [Astro](https://docs.astro.build) for question regarding the templates.
- Got 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 frontend dev server at `localhost:4321` |
| `juno dev start` | Quickstart the local development emulator (requires Docker) |
| `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).
43 changes: 43 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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";

import sanity from "@sanity/astro";
import react from "@astrojs/react";

import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({
site: "https://itmdf-xiaaa-aaaal-ar3ca-cai.icp0.io",

integrations: [
mdx(),
sitemap(),
tailwind(),
sanity({
projectId: "ftezax4j",
dataset: "production",
// Set useCdn to false if you're building statically.
useCdn: false,
studioBasePath: "/studio",
}),
react(),
],

vite: {
plugins: [juno()],
},

devToolbar: {
enabled: false,
},

output: "static",

adapter: node({
mode: "standalone",
}),
});
9 changes: 9 additions & 0 deletions juno.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "@junobuild/config";

export default defineConfig({
satellite: {
id: "itmdf-xiaaa-aaaal-ar3ca-cai",
source: "dist/client",
predeploy: ["./scripts/build.sh"],
},
});
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "ic-sanity",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write ."
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^4.0.1",
"@astrojs/rss": "^4.0.10",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.3",
"@junobuild/config": "^0.0.17",
"@junobuild/vite-plugin": "^0.0.19",
"astro": "^5.0.3",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1",
"tailwindcss": "^3.4.16",
"typescript": "^5.4.3"
},
"dependencies": {
"@astrojs/node": "^9.0.1",
"@astrojs/react": "^4.1.5",
"@sanity/astro": "^3.1.9",
"@sanity/client": "^6.25.0",
"@sanity/visual-editing": "^2.12.3",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sanity": "^3.70.0",
"styled-components": "^6.1"
}
}
Loading

0 comments on commit 2ffe30e

Please sign in to comment.