Skip to content

Commit 7c17b94

Browse files
committed
update demo
1 parent a90eb44 commit 7c17b94

File tree

7 files changed

+54
-60
lines changed

7 files changed

+54
-60
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
cache-dependency-path: demo/package-lock.json
23+
24+
- name: Install dependencies
25+
run: |
26+
cd demo
27+
npm ci
28+
29+
- name: Build
30+
run: |
31+
cd demo
32+
npm run build
33+
34+
- name: Deploy to GitHub Pages
35+
uses: peaceiris/actions-gh-pages@v3
36+
if: github.ref == 'refs/heads/main'
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./demo/out

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
A TypeScript SDK for interacting with PolkaVM Query (PVQ)
44

5-
## Installation
6-
7-
```bash
8-
# Install the published package
9-
npm install @open-web3/pvq
10-
# or
11-
yarn add @open-web3/pvq
12-
# or
13-
pnpm add @open-web3/pvq
14-
15-
# Or install from source
16-
pnpm add pvq-sdk
17-
```
185

196
## Quick Start
207

demo/.gitignore

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
6+
.pnp.js
7+
.yarn/install-state.gz
128

139
# testing
1410
/coverage
@@ -28,10 +24,9 @@
2824
npm-debug.log*
2925
yarn-debug.log*
3026
yarn-error.log*
31-
.pnpm-debug.log*
3227

33-
# env files (can opt-in for committing if needed)
34-
.env*
28+
# local env files
29+
.env*.local
3530

3631
# vercel
3732
.vercel

demo/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

demo/next.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
output: 'export',
5+
trailingSlash: true,
6+
images: {
7+
unoptimized: true
8+
},
9+
basePath: '',
10+
assetPrefix: '',
511
};
612

713
export default nextConfig;

demo/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"export": "next build",
11+
"deploy": "npm run build && touch out/.nojekyll"
1012
},
1113
"dependencies": {
1214
"@open-web3/pvq": "^0.5.0",

demo/public/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file tells GitHub Pages not to process this site with Jekyll

0 commit comments

Comments
 (0)