-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
30 lines (30 loc) · 2.18 KB
/
package.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
27
28
29
30
{
"name": "CL2",
"description": "Compute-Less Clustered Lighting",
"author": {"name": "Yannis Lytis Gravezas", "email": "wizgrav@gmail.com"},
"scripts": {
"build": "webpack --mode=production ",
"dist": "webpack --mode=development ",
"wasm": "npm run wasm-lights && npm run wasm-model",
"wasm-simd": "npm run wasm-lights-simd && npm run wasm-model-simd",
"wasm-dev": "npm run wasm-lights-dev && npm run wasm-model-dev",
"wasm-lights": "emcc -O3 -flto --no-entry -o lights.wasm src/lights.c -s STANDALONE_WASM -s \"EXPORTED_FUNCTIONS=['_init', '_sort', '_raw', '_add', '_update', '_getCameraMatrix', '_getLightTexture']\"",
"wasm-lights-simd": "emcc -O3 -flto -msimd128 --no-entry -o lights.wasm src/lights.c -s STANDALONE_WASM -s \"EXPORTED_FUNCTIONS=['_init', '_sort', '_raw', '_add', '_update', '_getCameraMatrix', '_getLightTexture']\"",
"wasm-lights-dev": "emcc -g --no-entry -o lights.wasm src/lights.c -s STANDALONE_WASM -s \"EXPORTED_FUNCTIONS=['_init', '_sort', '_raw', '_add', '_update', '_getCameraMatrix', '_getLightTexture']\"",
"wasm-model": "emcc -O3 -flto --no-entry -o model.wasm src/model.cpp -s STANDALONE_WASM -s \"EXPORTED_FUNCTIONS=['_init', '_spawn', '_update', '_getCameraMatrix', '_getInstanceColors']\"",
"wasm-model-simd": "emcc -O3 -flto -msimd128 --no-entry -o model.wasm src/model.cpp -s STANDALONE_WASM -s \"EXPORTED_FUNCTIONS=['_init', '_spawn', '_update', '_getCameraMatrix', '_getInstanceColors']\"",
"wasm-model-dev": "emcc -g --no-entry -o model.wasm src/model.cpp -s STANDALONE_WASM -s \"EXPORTED_FUNCTIONS=['_init', '_spawn', '_update','_getCameraMatrix', '_getInstanceColors']\"",
"serve": "webpack serve --https --mode=development --devtool=eval-source-map --static-directory=. ./src/index.js"
},
"dependencies": {
"three": "git+https://github.com/mrdoob/three.js.git#dev"
},
"browser": "./src/index.js",
"devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"http-serve": "^1.0.1",
"webpack": "^5.56.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.1"
}
}