ruffle/web/packages/core/package.json

34 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": "cross-env-shell \"cargo build --release --target wasm32-unknown-unknown --features \\\"$CARGO_FEATURES\\\"\"",
"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",
2021-12-17 14:18:56 +00:00
"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.' && echo ; [ \"$CI\" != true ] # > nul",
"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": {
2021-10-01 18:10:27 +00:00
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.8.1",
"eslint": "^8.6.0",
"eslint-plugin-jsdoc": "^37.1.0",
"mocha": "^9.1.3",
"replace-in-file": "^6.3.2",
"ts-node": "^10.4.0",
"typedoc": "^0.22.10",
"typescript": "^4.5.2"
}
}