Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed Mar 12, 2024
0 parents commit 720fcf0
Show file tree
Hide file tree
Showing 65 changed files with 7,531 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
packages/*/dist/
packages/*/node_modules/
packages/skyward.0/src/version.ts
packages/skyward/src/version.ts
apps/*/.wrangler/
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 120
}
21 changes: 21 additions & 0 deletions examples/example-vite/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Angkor&family=Kode+Mono:[email protected]&display=swap"
rel="stylesheet"
/>
<link type="text/css" rel="stylesheet" href="./src/index.css" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
34 changes: 34 additions & 0 deletions examples/example-vite/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@skyward/example-vite",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "tsx ./scripts/compile.ts && vite",
"build": "tsx ./scripts/compile.ts && tsc && vite build",
"preview": "vite preview",
"skyward:serve": "./node_modules/.bin/skyward serve",
"skyward:prepare": "tsx ./scripts/compile.ts && skyward upload src/data/"
},
"dependencies": {
"@nanostores/react": "^0.7.2",
"comlink": "^4.4.1",
"nanostores": "^0.10.0",
"o1js": "^0.16.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.18",
"postcss": "^8.4.35",
"skyward": "workspace:*",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8",
"vite-plugin-pwa": "^0.19.0",
"vite-plugin-top-level-await": "^1.4.1"
}
}
8 changes: 8 additions & 0 deletions examples/example-vite/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
},
};
1 change: 1 addition & 0 deletions examples/example-vite/public/skyward.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"1","programs":{"uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I":{"name":"hello-program","verificationKey":{"data":"AAAxHIvaXF+vRj2/+pyAfE6U29d1K5GmGbhiKR9lTC6LJ2o1ygGxXERl1oQh6DBxf/hDUD0HOeg/JajCp3V6b5wytil2mfx8v2DB5RuNQ7VxJWkha0TSnJJsOl0FxhjldBbOY3tUZzZxHpPhHOKHz/ZAXRYFIsf2x+7boXC0iPurETHN7j5IevHIgf2fSW8WgHZYn83hpVI33LBdN1pIbUc7oWAUQVmmgp04jRqTCYK1oNg+Y9DeIuT4EVbp/yN7eS7Ay8ahic2sSAZvtn08MdRyk/jm2cLlJbeAAad6Xyz/H9l7JrkbVwDMMPxvHVHs27tNoJCzIlrRzB7pg3ju9aQOu4h3thDr+WSgFQWKvcRPeL7f3TFjIr8WZ2457RgMcTwXwORKbqJCcyKVNOE+FlNwVkOK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header","integrity":"sha384-6VwJKiwVHDvWFkDQxsp67QbFnTz45IU0NUWRanXIA38s1maorH1OXvYJHeR5u59U"},"srs-fq-32768":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/srs-fq-32768","integrity":"sha384-tMtPofIUE-IUh3-P4e73x6kExbo75d1OxKdhxX9fNVEqMP2T9iwNERfrGU0MoPYD"},"srs-fp-65536.header":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/srs-fp-65536.header","integrity":"sha384-eThPovjIjgJIZwy9XlkDNCgBeGyHm3_mgNu1pfszISXN5s1jcSqxe62yDK2cuW_I"},"srs-fp-65536":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/srs-fp-65536","integrity":"sha384-FEtfEGpBVVkU9g0kFlwEhGJaW5-_TXFnQllx05egnz6zLUK55plX_ea1ak7ozEdF"},"step-vk-hello-program-addition.header":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/step-vk-hello-program-addition.header","integrity":"sha384-lrq1sLrJy6xm4L_giSvERrufW3BHK5HLsfIoafDVeXAhF3nxenambwvM9DnGWmkl"},"step-vk-hello-program-addition":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/step-vk-hello-program-addition","integrity":"sha384-nKo2lXtvyIS1fsMnZh98DnIV5QA9Y4eY28viRP_WYhGyakecslRY0-_jwA9Py0Nh"},"lagrange-basis-fp-512.header":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/lagrange-basis-fp-512.header","integrity":"sha384-reLFjS1GdZYbrxRz2bVULQryJXjMGf2wo312oLugcaDLjU8tmBdq_4QLBR_lsy4C"},"lagrange-basis-fp-512":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/lagrange-basis-fp-512","integrity":"sha384-GnRksOhIsZPKmel-oLGfVAruDkSgJSdsvmkFYJki-GVt9QKFfzgvyilFiZHJgWXH"},"wrap-vk-hello-program.header":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/wrap-vk-hello-program.header","integrity":"sha384-VG9qKkbKAOdXQ-pGCTgPYQWclKhoNb_7bqzHGjZUjbBwK2h5AKwKlzt5OC30F3i2"},"wrap-vk-hello-program":{"dataType":"string","href":"https://swrd.ukstv.me/JttCSnUZRUdjNYcRrnzbN/uJS7R9Qnl78lcuvLU7yVsZaAVYD_otIMyBjj8G2XV42I/wrap-vk-hello-program","integrity":"sha384-0wJkNgr27ZHluVb6e0UZyLQypWSPFHR9nYjBtedRWN0De52Kd0GPmwutKprjs12E"}}}}}
4 changes: 4 additions & 0 deletions examples/example-vite/scripts/compile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { prepare } from "skyward/prepare";
import { HelloProgram } from "../src/hello-program.js";

await prepare(HelloProgram)
Loading

0 comments on commit 720fcf0

Please sign in to comment.