temp
This commit is contained in:
33
deno-wasm/deno.json
Normal file
33
deno-wasm/deno.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
"deno.window"
|
||||
]
|
||||
},
|
||||
"tasks": {
|
||||
"start": "deno run --allow-net deno-server/server.ts",
|
||||
"build:wasm": "deno compile --target wasm -- --outfile dist/index.wasm src/index.ts"
|
||||
},
|
||||
"imports": {
|
||||
"http/": "https://deno.land/std@0.220.1/http/"
|
||||
},
|
||||
"lint": {
|
||||
"include": [
|
||||
"./src/**/*.ts",
|
||||
"index.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"./types"
|
||||
],
|
||||
"rules": {
|
||||
"tags": [
|
||||
"recommended"
|
||||
],
|
||||
"include": [],
|
||||
"exclude": [
|
||||
"require-await",
|
||||
"no-explicit-any"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
5
deno-wasm/src/index.ts
Normal file
5
deno-wasm/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// export const add = (a: number, b: number) => a + b;
|
||||
|
||||
import { add } from "../../dist/index.wasm";
|
||||
|
||||
console.log(add(1, 2));
|
||||
Reference in New Issue
Block a user