Skip to content

Commit

Permalink
chore: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo-ds committed May 25, 2023
1 parent b7bf2aa commit bf0dc64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
[![License](https://img.shields.io/github/license/gizmo-ds/totp-wasm-zig?style=flat-square)](./LICENSE)
[![CI](https://img.shields.io/github/actions/workflow/status/gizmo-ds/totp-wasm-zig/testing.yml?branch=main&label=docker%20image&style=flat-square)](https://github.com/gizmo-ds/totp-wasm-zig/actions/workflows/testing.yml)

# Demo

[https://totp-wasm-zig.vercel.app](https://totp-wasm-zig.vercel.app)

# Requirements

- [Zig](https://ziglang.org/)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"examples/node"
],
"scripts": {
"build": "esbuild packages/totp-wasm/index.ts --bundle --format=esm --platform=node --target=es2017 --minify --outfile=packages/totp-wasm/index.js",
"build": "cd examples/browser && pnpm run build",
"build:js": "esbuild packages/totp-wasm/index.ts --bundle --format=esm --platform=node --target=es2017 --minify --outfile=packages/totp-wasm/index.js",
"build:wasm": "zig build && zig build bind",
"test:deno": "deno test -A --import-map examples/deno/deno.json examples/deno/mod.ts",
"test:node": "esno examples/node/index.ts"
Expand Down
4 changes: 4 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"github": { "silent": true },
"outputDirectory": "examples/browser/dist"
}

0 comments on commit bf0dc64

Please sign in to comment.