Skip to content

Commit

Permalink
Add deno task sample:deno.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Oct 6, 2024
1 parent 50a5631 commit 103e2b7
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/chacha20poly1305/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dhkem-secp256k1/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dhkem-x25519/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dhkem-x448/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions packages/hpke-js/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions packages/hybridkem-x25519-kyber768/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 103e2b7

Please sign in to comment.