-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
37 lines (37 loc) · 1.35 KB
/
Copy pathpackage.json
File metadata and controls
37 lines (37 loc) · 1.35 KB
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
27
28
29
30
31
32
33
34
35
36
37
{
"name": "wasm-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "web-tooling webpack-dev-server",
"build": "web-tooling webpack",
"analyze": "web-tooling analyze",
"format": "web-tooling format",
"lint": "web-tooling lint",
"storybook": "web-tooling storybook:react",
"test": "web-tooling test",
"type-check": "web-tooling type-check",
"sync-web-tooling": "sync-folders --watch ../web-tooling/config ./node_modules/@sandvikcode/web-tooling/",
"clang": "rm -f ./public/main.wasm && clang/bin/clang++ -fno-exceptions -std=c++11 --target=wasm32-wasi --sysroot wasi-sysroot -iquote src -Wl,--allow-undefined-file=src/wasm.syms -Wl,--export-all -Wl,--lto-O2 -Wl,-z,stack-size=8388608 -O3 -s -o ./public/main.wasm ./src/*.cpp ./src/**/*.cpp",
"run-native": "rm -rf main.bin && clang/bin/clang++ -fno-exceptions -std=c++11 -O3 -o ./main.bin ./src/main.cpp && ./main.bin"
},
"husky": {
"hooks": {
"pre-commit": "web-tooling pre-commit",
"pre-push": "web-tooling pre-push"
}
},
"license": "ISC",
"devDependencies": {
"@sandvikcode/web-tooling": "^1.0.0",
"husky": "^3.1.0",
"sync-folders": "^2.0.0",
"ts-shader-loader": "^1.0.6",
"@types/webgl2": "^0.0.5"
},
"dependencies": {
"@wasmer/wasi": "^0.5.1",
"@wasmer/wasmfs": "^0.5.1"
}
}