Use a task runner for more granularity/parallelism
This commit is contained in:
@@ -26,19 +26,15 @@
|
||||
"src_js/**"
|
||||
],
|
||||
"scripts": {
|
||||
"benchmark": "yarn build && node tests/run-bench $(find tests/benchmarks -name '*.js')",
|
||||
"build": "yarn build:js && yarn build:native",
|
||||
"build:configure": "which ninja && emcmake cmake -S . -B build -G Ninja || emcmake cmake -S . -B build",
|
||||
"build:copy-dts": "cd src_js && find . -name '*.d.ts' | cpio -pdm ../dist",
|
||||
"build:js": "babel src_js --source-maps --out-dir dist && yarn build:copy-dts",
|
||||
"build:native": "yarn build:configure && cmake --build build",
|
||||
"benchmark": "just benchmark",
|
||||
"build": "just build",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"test": "yarn test:asmjs-async && yarn test:asmjs-sync && yarn test:wasm-async && yarn test:wasm-sync",
|
||||
"test:asmjs-async": "yarn build --target asmjs-async && WASM=0 SYNC=0 jest",
|
||||
"test:asmjs-sync": "yarn build --target asmjs-sync && WASM=0 SYNC=1 jest",
|
||||
"test:wasm-async": "yarn build --target wasm-async && WASM=1 SYNC=0 jest",
|
||||
"test:wasm-sync": "yarn build --target wasm-sync && WASM=1 SYNC=1 jest"
|
||||
"test": "just test",
|
||||
"test:asmjs-async": "just test:asmjs-async",
|
||||
"test:asmjs-sync": "just test:asmjs-sync",
|
||||
"test:wasm-async": "just test:wasm-async",
|
||||
"test:wasm-sync": "just test:wasm-sync"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.20.7",
|
||||
@@ -49,7 +45,10 @@
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-jest": "^27.1.7",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"glob": "^8.0.3",
|
||||
"jest": "^29.3.1",
|
||||
"prettier": "^2.4.1"
|
||||
"just-scripts": "^2.1.0",
|
||||
"prettier": "^2.4.1",
|
||||
"which": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user