1 Star 0 Fork 15

shawn.xuxiao/idlize

forked from Nikolay Igotti/idlize 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 8.49 KB
一键复制 编辑 原始数据 按行查看 历史
{
"name": "@azanat/idlize",
"version": "1.2.6",
"description": "",
"main": "lib/index.js",
"bin": "lib/index.js",
"files": [
"lib/*.js",
"stdlib.d.ts",
"whitelist.json",
"peer_lib/**/*",
"templates/**/*"
],
"license": "Apache-2.0",
"keywords": [],
"dependencies": {
"@types/node": "^18.0.0",
"@types/webidl2": "^24.4.1",
"commander": "^10.0.0",
"comment-parser": "^1.4.1",
"cross-env": "^7.0.3",
"node-addon-api": "^8.0.0",
"node-api-headers": "^1.1.0",
"typescript": "^4.9.5",
"webidl2": "^24.4.1"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/chai": "^4.3.1",
"@types/mocha": "^9.1.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"chai": "^4.3.6",
"eslint": "^8.13.0",
"eslint-plugin-unused-imports": "^2.0.0",
"mocha": "^9.2.2",
"rollup": "^4.12.1",
"source-map-support": "^0.5.21"
},
"scripts": {
"download:sdk": "node ./download-sdk.mjs",
"compile": "npm run download:sdk && npm run install:peer:deps && rollup -c",
"clean": "rimraf build dist lib generated native/build* native/lib* native/cross* native/NativeBridge* native/ace*",
"run": "npm run compile && node . --dts2idl --input-dir ./interface_sdk-js/api/@internal/component/ets/ --input-file common.d.ts --verify-idl --common-to-attributes --docs=opt",
"run:all": "npm run compile && node . --dts2idl --input-dir ./interface_sdk-js/api/@internal/component/ets/ --verify-idl --common-to-attributes --docs=opt",
"run2h": "npm run compile && node . --idl2h --input-dir ./idl",
"run2dts": "npm run compile && node . --idl2dts --input-dir ./idl",
"run2peer:all": "npm run compile && node --stack_trace_limit=200 . --call-log --api-version 99 --dts2peer --input-dir ./interface_sdk-js/api/@internal/component/ets/ --output-dir ./generated/peers",
"run2peer": "npm run compile && node . --call-log --api-version 99 --dts2peer --input-dir ./interface_sdk-js/api/@internal/component/ets/ --generate-interface Blank --output-dir ./generated/peers --need-interfaces",
"lint": "npm run compile && node . --linter --input-dir ./interface_sdk-js/api/@internal/component/ets/ --input-file common.d.ts --output-dir linter --linter-whitelist whitelist.json",
"lint:all": "npm run compile && node . --linter --input-dir ./interface_sdk-js/api/@internal/component/ets/ --output-dir linter --linter-whitelist whitelist.json",
"check:peers": "npm run run2peer:all && tsc -p ./tsconfig-generated.json && cp peer_lib/package.json.peers.in build/peers/package.json",
"check:subset": "npm run compile && node . --call-log --api-version 99 --dts2peer --input-dir ./tests/subset/ets/ --output-dir ./generated/subset && tsc -p ./tsconfig-subset.json && cp peer_lib/package.json.subset.in build/subset/package.json",
"check:subset:run": "npm run rollup:host:subset && npm run compile:native-node-host-subset && node lib/main.js",
"check:peers:run": "npm run rollup:host:full && npm run compile:native-node-host-full && node lib/main.js",
"test:subset": "npm run check:subset && mocha ./build/subset/tests/subset/unit/",
"check:subset:fuzz": "npm run compile && node . --dts2test --input-dir ./tests/subset/ets --output-dir ./generated/fuzz && npm run check:subset && npm run compile:native-node-host-subset && node ./build/subset/generated/fuzz",
"check:peers:native": "npm run run2peer:all && npm run compile:native-node-host-full",
"configure:native-node-host-java-subset": "cd ./native && meson setup -Dsource_set=java-subset -Devents_test=false build-node-host-java-subset",
"compile:native-node-host-java-subset": "npm run configure:native-node-host-java-subset && cd native && meson compile --verbose -C build-node-host-java-subset && meson install -C build-node-host-java-subset",
"configure:native-node-host-subset": "cd ./native && meson setup -Dsource_set=subset build-node-host-subset",
"compile:native-node-host-subset": "npm run configure:native-node-host-subset && cd native && meson compile --verbose -C build-node-host-subset && meson install -C build-node-host-subset",
"configure:native-node-host-full": "cd ./native && meson setup build-node-host-full",
"compile:native-node-host-full": "npm run configure:native-node-host-full && cd native && meson compile --verbose -C build-node-host-full && meson install -C build-node-host-full",
"compile:stub:deps": "cd ./peer_lib/ts && tsc -p ./tsconfig.json",
"copy:peer:deps": "cp -r ./peer_lib/ts/@koalaui ./node_modules",
"install:peer:deps": "npm run compile:stub:deps && npm run copy:peer:deps",
"sanity": "npm run check:peers:run && npm run run:all && npm run lint:all",
"panda:sdk:install": "cd panda && npm run panda:sdk:install",
"compile:arkts:subset": "npm run compile && node . --api-version 99 --dts2peer --input-dir ./tests/subset/ets/ --output-dir ./generated/subset --language arkts && bash ./panda/arkts/arktsc --arktsconfig ./arktsconfig-subset.json --ets-module",
"compile:arkts:peers": "bash ./panda/arkts/arktsc --arktsconfig ./arktsconfig-peers.json --ets-module",
"run:panda": "npm run make:arkts && npm run compile:arkts:subset && npm run compile:native-node-host-subset && LD_LIBRARY_PATH=./native PANDA_LIB_PATH=./build/abc/subset/koalaui/arkoala-arkui/arkts/src/ bash ./panda/arkts/ark ./build/abc/subset/koalaui/arkoala-arkui/arkts/src/index.abc",
"run:dummy-panda": "npm run compile:native-node-host-subset && ./native/build-node-host-subset/dummy-panda",
"compile:java": "npm run compile && node . --api-version 99 --dts2peer --input-dir ./tests/java-subset/ --output-dir ./generated/java-subset --language java --need-interfaces && npm run compile:native-node-host-java-subset && javac ./generated/java-subset/koalaui/arkoala/java/src/*.java -d ./generated/java-subset",
"run:java": "npm run compile:java && npm run compile:native-node-host-java-subset && java -Djava.library.path=./native -cp ./generated/java-subset org.koalaui.arkoala.Main",
"make:arkts": "npm run compile && node . --api-version 99 --dts2peer --input-dir ./tests/subset/ --output-dir ./generated/subset --language arkts",
"compile:arkts": "bash ./panda/arkts/arktsc --arktsconfig ./arktsconfig-subset.json --ets-module",
"compile:native-ohos-subset-arm32": "npm run check:subset && node ./native/nativeBuild.mjs subset arm32",
"compile:native-ohos-subset-arm64": "npm run check:subset && node ./native/nativeBuild.mjs subset arm64",
"compile:native-ohos-full-arm32": "npm run check:peers && node ./native/nativeBuild.mjs full arm32",
"compile:native-ohos-full-arm64": "npm run check:peers && node ./native/nativeBuild.mjs full arm64",
"run:ohos-subset-arm32:perf": "npm run compile:native-ohos-subset-arm32 && node ./ohos-app/runPerf.mjs subset arm32 mock",
"run:ohos-subset-arm64:perf": "npm run compile:native-ohos-subset-arm64 && node ./ohos-app/runPerf.mjs subset arm64 mock",
"run:ohos-full-arm32:perf": "npm run compile:native-ohos-full-arm32 && node ./ohos-app/runPerf.mjs full arm32 mock",
"compile:native-ohos-subset-arm64:v8": "npm run check:subset && node ./native/nativeBuild.mjs subset arm64 v8",
"run:ohos-subset-arm64:perf:v8": "npm run compile:native-ohos-subset-arm64:v8 && node ohos-v8/runPerfOnV8.mjs subset",
"rollup:ohos:full:arm64": "npm run check:peers && cross-env mode=peers isOhos=true arch=arm64 rollup -c rollup.config.components.mjs",
"rollup:ohos:full:arm32": "npm run check:peers && cross-env mode=peers isOhos=true arch=arm rollup -c rollup.config.components.mjs",
"rollup:ohos:subset:arm64": "npm run check:subset && cross-env mode=subset isOhos=true arch=arm64 rollup -c rollup.config.components.mjs",
"rollup:ohos:subset:arm32": "npm run check:subset && cross-env mode=subset isOhos=true arch=arm rollup -c rollup.config.components.mjs",
"rollup:host:subset": "npm run check:subset && cross-env mode=subset rollup -c rollup.config.main.mjs",
"rollup:host:full": "npm run check:peers && cross-env mode=peers rollup -c rollup.config.main.mjs"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shawnxuxiao/idlize.git
git@gitee.com:shawnxuxiao/idlize.git
shawnxuxiao
idlize
idlize
master

搜索帮助