-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2ffe30e
Showing
29 changed files
with
13,523 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.