Skip to content

Commit 0f210de

Browse files
committed
gemini-cli edits and changes to convert from node + vite to deno
1 parent bbad405 commit 0f210de

File tree

12 files changed

+1603
-358
lines changed

12 files changed

+1603
-358
lines changed

.github/workflows/pages.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,16 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24-
- name: Setup Node.js
25-
uses: actions/setup-node@v4
24+
- name: Setup Deno
25+
uses: denoland/setup-deno@v1
2626
with:
27-
node-version: 20
28-
cache: 'npm'
27+
deno-version: v1.x
2928

30-
- name: Install dependencies
31-
run: npm ci
32-
33-
- name: Get short SHA
34-
id: vars
35-
run: echo "sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
29+
- name: Cache Deno dependencies
30+
run: deno cache scripts/build.js
3631

3732
- name: Build project
38-
run: |
39-
echo "VITE_COMMIT_SHA=${{ steps.vars.outputs.sha }}" >> .env
40-
npm run build
33+
run: deno task build
4134

4235
- name: Setup GitHub Pages
4336
uses: actions/configure-pages@v4

deno.json

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
{
2-
"unstable": [
3-
"raw-imports"
4-
],
52
"tasks": {
6-
"dev": "deno run -A --watch main.js"
7-
"bundle:sdk": "deno bundle --platform=browser --output=dist/sdk.bundle.js src/sdk/mod.js",
8-
"bundle:sdk:min": "deno bundle --platform=browser --output=dist/sdk.bundle.min.js --minify src/sdk/mod.js",
9-
"bundle:auth": "deno bundle --unstable-raw-imports --platform=browser --output=dist/signet-auth.bundle.min.js --minify src/sdk/components/signet-auth/main.ts",
10-
"minify:sdk": "deno task bundle:sdk:min",
11-
"compress": "deno run --allow-read --allow-write src/cli/compress.js",
12-
"wc": "deno bundle --code-splitting --unstable-raw-imports --platform browser --outdir ./dist/ --output ./dist/sdk.bundle.min.js ./src/sdk/components/signet-auth/main.ts && deno task compress",
13-
"build": "deno task bundle:sdk && deno task bundle:sdk:min && deno task compress"
14-
3+
"dev": "deno run -A --watch main.js",
4+
"build": "deno run -A scripts/build.js",
5+
"start": "deno run -A server.js"
156
},
167
"imports": {
17-
"@std/assert": "jsr:@std/assert@^1.0.16",
18-
"Hono": "npm:hono@^4.11.1",
8+
"@std/fs": "https://deno.land/std@0.177.0/fs/mod.ts",
9+
"@std/path": "https://deno.land/std@0.177.0/path/mod.ts",
10+
"hono": "npm:hono@^4.11.1",
11+
"hono/deno": "npm:hono@^4.11.1/deno",
1912
"autoprefixer": "npm:autoprefixer@10.4.23",
13+
"cssnano": "npm:cssnano@^7.0.1",
2014
"postcss": "npm:postcss@8.5.6",
21-
"postcss-font-grabber": "npm:postcss-font-grabber@3.1.0",
22-
"postcss-import": "npm:postcss-import@16.1.1"
15+
"postcss-cli": "npm:postcss-cli@^11.0.0",
16+
"postcss-import": "npm:postcss-import@16.1.1",
17+
"postcss-preset-env": "npm:postcss-preset-env@^9.5.11"
2318
}
2419
}

0 commit comments

Comments
 (0)