ruffle/web/packages/core/package.json

36 lines
1.6 KiB
JSON
Raw Normal View History

{
"name": "ruffle-core",
"version": "0.1.0",
"description": "Core bindings for Ruffle",
"license": "(MIT OR Apache-2.0)",
"main": "./pkg/index.js",
"types": "./pkg/index.d.ts",
2020-11-17 22:53:17 +00:00
"files": [
"pkg/"
],
"scripts": {
"build": "npm run build:cargo && npm run build:wasm-bindgen && npm run build:wasm-opt && npm run build:ts",
"build:cargo": "cargo build --release --target wasm32-unknown-unknown",
"build:wasm-bindgen": "wasm-bindgen ../../../target/wasm32-unknown-unknown/release/ruffle_web.wasm --target web --out-dir ./pkg --out-name ruffle_web",
2021-02-14 19:15:26 +00:00
"build:wasm-opt": "wasm-opt -o ./pkg/ruffle_web_bg.wasm -O -g ./pkg/ruffle_web_bg.wasm || npm run build:wasm-opt-failed",
"build:wasm-opt-failed": "echo 'NOTE: Since wasm-opt could not be found (or it failed), the resulting module might not perform that well, but it should still work.' && [[ $GITHUB_ACTIONS != true ]]",
"build:ts": "tsc -d && node tools/set_version.js",
"docs": "typedoc",
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha"
2020-05-17 22:37:33 +00:00
},
"devDependencies": {
"@types/mocha": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"cross-env": "^7.0.3",
"eslint": "^7.29.0",
"eslint-plugin-jsdoc": "^35.4.1",
2020-11-12 23:47:40 +00:00
"esm": "^3.2.25",
"mocha": "^9.0.1",
"replace-in-file": "^6.2.0",
"ts-node": "^10.0.0",
"typedoc": "^0.21.2",
"typescript": "^4.3.4"
}
}