-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
deno.json
26 lines (23 loc) · 1.21 KB
/
deno.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "@gfx/canvas",
"github": "https://github.com/DjDeveloperr/skia_canvas",
"version": "0.5.8",
"exports": "./mod.ts",
"exclude": ["skia", "scripts", "bench", "native", "test", "testdata"],
"tasks": {
"build": "cd native/build && CC=clang CXX=clang++ cmake .. && cmake --build . --config Release",
"build-macos-x86_64": "cd native/build && CC=clang CXX=clang++ cmake .. -DMACOS_TARGET_ARCH=x86_64 && cmake --build . --config Release",
"build-win": "rm -rf native/build && mkdir native/build && cd native/build && cmake .. -G \"Visual Studio 17 2022\" -T ClangCL && cmake --build . --config Release",
"test": "deno run -A --unstable-ffi ./test/test.ts",
"test-prebuilt": "deno run -A --unstable-ffi --import-map=./test/import_map.json ./test/test.ts",
"test-pdf": "deno run -A --unstable-ffi ./test/pdf.ts",
"test-svg": "deno run -A --unstable-ffi ./test/svg.ts",
"bench-deno": "deno bench -A --unstable-ffi bench/deno.js",
"bench-node": "node bench/node.mjs",
"bench": "deno run -A --unstable-ffi bench/main.js",
"build-skia": "deno run -A --unstable-ffi scripts/build_skia.ts"
},
"fmt": {
"exclude": ["skia", "bench/node_modules", "build", "native/build"]
}
}