Skip to content

Commit ad78afa

Browse files
authored
Merge pull request #37 from cooklang/prep-ts-bindings-folder
Prepare TS WASM Bindings From Existing Playground
2 parents 2497521 + ce13536 commit ad78afa

13 files changed

Lines changed: 1953 additions & 129 deletions

File tree

.github/workflows/playground.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
17-
- name: Setup wasm-pack
18-
uses: jetli/wasm-pack-action@v0.4.0
16+
- uses: actions/setup-node@v4
1917
with:
20-
version: "latest"
18+
node-version: 22
2119

2220
- name: Git describe
2321
id: ghd
2422
uses: proudust/gh-describe@v1
2523

24+
- run: npm ci
2625
- name: Build
2726
run: |
2827
cd playground
29-
wasm-pack build --target web --release --no-pack --no-typescript
30-
rm pkg/.gitignore
28+
npm run build
3129
env:
3230
BUILD_COOKLANG_RS_VERSION: ${{ steps.ghd.outputs.describe }}
3331

@@ -36,5 +34,4 @@ jobs:
3634
if: github.ref == 'refs/heads/main'
3735
with:
3836
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: ./playground
40-
exclude_assets: ".github,src,Cargo.toml,build.rs"
37+
publish_dir: ./playground/dist

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ target/
33
out/
44
.idea
55
.build
6+
7+
# Node
8+
node_modules
9+
.wireit
10+
dist

0 commit comments

Comments
 (0)