diff --git a/deno.json b/deno.json index 01f5230da..a90195415 100644 --- a/deno.json +++ b/deno.json @@ -108,6 +108,15 @@ "bun-link:dhkem-secp256k1": "cd npm/packages/dhkem-secp256k1 && bun link", "bun-link:hybridkem-x25519-kyber768": "cd npm/packages/hybridkem-x25519-kyber768 && bun link", "bun-link:hpke-js": "cd npm/packages/hpke-js && bun link", + "sample": "deno task sample:deno && deno task sample:node", + "sample:deno": "deno task sample:deno:core && deno task sample:deno:chacha20poly1305 && deno task sample:deno:dhkem-x25519 && deno task sample:deno:dhkem-x448 && deno task sample:deno:dhkem-secp256k1 && deno task sample:deno:hybridkem-x25519-kyber768 && deno task sample:deno:hpke-js", + "sample:deno:core": "cd packages/core && deno task sample:deno", + "sample:deno:chacha20poly1305": "cd packages/chacha20poly1305 && deno task sample:deno", + "sample:deno:dhkem-x25519": "cd packages/dhkem-x25519 && deno task sample:deno", + "sample:deno:dhkem-x448": "cd packages/dhkem-x448 && deno task sample:deno", + "sample:deno:dhkem-secp256k1": "cd packages/dhkem-secp256k1 && deno task sample:deno", + "sample:deno:hybridkem-x25519-kyber768": "cd packages/hybridkem-x25519-kyber768 && deno task sample:deno", + "sample:deno:hpke-js": "cd packages/hpke-js && deno task sample:deno", "sample:node": "deno task sample:node:core && deno task sample:node:chacha20poly1305 && deno task sample:node:dhkem-x25519 && deno task sample:node:dhkem-x448 && deno task sample:node:dhkem-secp256k1 && deno task sample:node:hybridkem-x25519-kyber768 && deno task sample:node:hpke-js", "sample:node:core": "cd packages/core && deno task sample:node", "sample:node:chacha20poly1305": "cd packages/chacha20poly1305 && deno task sample:node", diff --git a/packages/chacha20poly1305/deno.json b/packages/chacha20poly1305/deno.json index 6d9e80975..09118d2b1 100644 --- a/packages/chacha20poly1305/deno.json +++ b/packages/chacha20poly1305/deno.json @@ -51,6 +51,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/chacha20poly1305/esm/mod.js --bundle --format=esm --minify" } diff --git a/packages/core/deno.json b/packages/core/deno.json index 6cee4880a..bb459c634 100644 --- a/packages/core/deno.json +++ b/packages/core/deno.json @@ -48,6 +48,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/core/esm/mod.js --bundle --format=esm --minify" } diff --git a/packages/dhkem-secp256k1/deno.json b/packages/dhkem-secp256k1/deno.json index 43279d559..e7f88b4c0 100644 --- a/packages/dhkem-secp256k1/deno.json +++ b/packages/dhkem-secp256k1/deno.json @@ -51,6 +51,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/dhkem-secp256k1/esm/mod.js --bundle --format=esm --minify" } diff --git a/packages/dhkem-x25519/deno.json b/packages/dhkem-x25519/deno.json index 6baf80763..e359da767 100644 --- a/packages/dhkem-x25519/deno.json +++ b/packages/dhkem-x25519/deno.json @@ -52,6 +52,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/dhkem-x25519/esm/mod.js --bundle --format=esm --minify" } diff --git a/packages/dhkem-x448/deno.json b/packages/dhkem-x448/deno.json index 89e94f9dc..0169a75f8 100644 --- a/packages/dhkem-x448/deno.json +++ b/packages/dhkem-x448/deno.json @@ -52,6 +52,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/dhkem-x448/esm/mod.js --bundle --format=esm --minify" } diff --git a/packages/hpke-js/deno.json b/packages/hpke-js/deno.json index 1772b40c1..8a24e546c 100644 --- a/packages/hpke-js/deno.json +++ b/packages/hpke-js/deno.json @@ -51,6 +51,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/hpke-js/esm/mod.js --bundle --format=esm --minify" } diff --git a/packages/hybridkem-x25519-kyber768/deno.json b/packages/hybridkem-x25519-kyber768/deno.json index cfbf5b72d..789ba597d 100644 --- a/packages/hybridkem-x25519-kyber768/deno.json +++ b/packages/hybridkem-x25519-kyber768/deno.json @@ -51,6 +51,7 @@ "test:bun": "cd test/runtimes/bun && bun install && bun test", "cov": "deno coverage ./coverage --lcov --exclude='test'", "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", + "sample:deno": "cd samples/deno && deno run main.ts", "sample:node": "cd samples/node && npm install && node app.js", "minify": "esbuild ../../npm/packages/hybridkem-x25519-kyber768/esm/mod.js --bundle --format=esm --minify" }