automerge/automerge-backend-wasm/package.json
Andrew Jeffery 01159056ef
Add dev command for building wasm backend (#199)
* Add dev command for building wasm backend

This aims to reduce the time spent building when testing with the wasm
backend. On my machine `yarn release` takes 20s while `yarn dev` takes
just 2s.

* Separate out building wasm
2021-06-29 17:12:24 +01:00

38 lines
1.7 KiB
JSON

{
"collaborators": [
"Orion Henry <orion@inkandswitch.com>",
"Alex Good <alex@memoryandthought.me>"
],
"name": "automerge-backend-wasm",
"description": "wasm-bindgen bindings to the automerge-backend rust implementation",
"version": "0.1.0",
"license": "MIT",
"files": [
"README.md",
"pkg.js",
"LICENSE",
"package.json",
"automerge_backend_wasm_bg.wasm",
"automerge_backend_wasm.js"
],
"main": "./dev/index.js",
"scripts": {
"cjs-release": "wasm-pack build --target nodejs --release --out-name index -d build/cjs && rm build/cjs/package.json",
"mjs-release": "wasm-pack build --target bundler --release --out-name index -d build/mjs && cp package.mjs.json build/mjs/package.json",
"prep-release": "rm build/*/.gitignore build/*/README.md build/*/LICENSE build/*/*.ts",
"release": "yarn cjs-release && yarn mjs-release && yarn prep-release && cp package.pkg.json build/package.json && cp README.md LICENSE build",
"cjs": "wasm-pack build --target nodejs --dev --out-name index -d build/cjs && rm build/cjs/package.json",
"mjs": "wasm-pack build --target bundler --dev --out-name index -d build/mjs && cp package.mjs.json build/mjs/package.json",
"dev": "yarn cjs && yarn mjs && yarn prep-release && cp package.pkg.json build/package.json && cp README.md LICENSE build",
"build": "rm -rf dev && wasm-pack build --target nodejs --dev --out-name index -d dev",
"profiling": "wasm-pack build --target nodejs --profiling --out-name index -d dev",
"mocha": "yarn build && mocha --bail --full-trace",
"webpack": "webpack",
"test": "cargo test && wasm-pack test --node",
"test:js": "./scripts/js_tests.sh"
},
"dependencies": {},
"devDependencies": {
"mocha": "^7.1.1"
}
}