idlize

Форк
0
/
package.json 
96 строк · 8.7 Кб
1
{
2
    "name": "@azanat/idlize",
3
    "version": "1.2.6",
4
    "description": "",
5
    "main": "lib/index.js",
6
    "bin": "lib/index.js",
7
    "files": [
8
        "lib/*.js",
9
        "stdlib.d.ts",
10
        "whitelist.json",
11
        "peer_lib/**/*",
12
        "templates/**/*"
13
    ],
14
    "license": "Apache-2.0",
15
    "keywords": [],
16
    "dependencies": {
17
        "@types/node": "^18.0.0",
18
        "@types/webidl2": "^24.4.1",
19
        "commander": "^10.0.0",
20
        "comment-parser": "^1.4.1",
21
        "cross-env": "^7.0.3",
22
        "node-addon-api": "^8.0.0",
23
        "node-api-headers": "^1.1.0",
24
        "typescript": "^4.9.5",
25
        "webidl2": "^24.4.1"
26
    },
27
    "devDependencies": {
28
        "@rollup/plugin-node-resolve": "^15.2.3",
29
        "@rollup/plugin-replace": "^5.0.7",
30
        "@rollup/plugin-terser": "^0.4.4",
31
        "@rollup/plugin-typescript": "^11.1.6",
32
        "@types/chai": "^4.3.1",
33
        "@types/mocha": "^9.1.0",
34
        "@types/node": "^18.0.0",
35
        "@typescript-eslint/eslint-plugin": "^5.20.0",
36
        "@typescript-eslint/parser": "^5.20.0",
37
        "chai": "^4.3.6",
38
        "eslint": "^8.13.0",
39
        "eslint-plugin-unused-imports": "^2.0.0",
40
        "mocha": "^9.2.2",
41
        "rollup": "^4.12.1",
42
        "source-map-support": "^0.5.21"
43
    },
44
    "scripts": {
45
        "download:sdk": "node ./download-sdk.mjs",
46
        "compile": "npm run download:sdk && rollup -c",
47
        "clean": "rimraf build dist lib generated native/build* native/lib* native/cross* native/NativeBridge* native/ace*",
48
        "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",
49
        "run:all": "npm run compile && node . --dts2idl --input-dir ./interface_sdk-js/api/@internal/component/ets/ --verify-idl --common-to-attributes --docs=opt",
50
        "run2h": "npm run compile && node . --idl2h --input-dir ./idl",
51
        "run2dts": "npm run compile && node . --idl2dts --input-dir ./idl",
52
        "run2peer:all": "npm run compile && node --stack_trace_limit=200 . --api-version 99  --dts2peer --input-dir ./interface_sdk-js/api/@internal/component/ets/ --output-dir ./generated/peers",
53
        "run2peer": "npm run compile && node . --api-version 99 --dts2peer --input-dir ./interface_sdk-js/api/@internal/component/ets/ --generate-interface Blank --output-dir ./generated/peers --need-interfaces",
54
        "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",
55
        "lint:all": "npm run compile && node . --linter --input-dir ./interface_sdk-js/api/@internal/component/ets/ --output-dir linter --linter-whitelist whitelist.json",
56
        "check:peers": "npm run run2peer:all && tsc -p ./tsconfig-generated.json && cp peer_lib/package.json.peers.in build/peers/package.json",
57
        "check:subset": "npm run compile && node . --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",
58
        "check:subset:run": "npm run rollup:host:subset && npm run compile:native-node-host-subset && node lib/main.js",
59
        "check:peers:run": "npm run rollup:host:full && npm run compile:native-node-host-full && node lib/main.js",
60
        "test:subset": "npm run check:subset && mocha ./build/subset/tests/subset/unit/",
61
        "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",
62
        "check:peers:native": "npm run run2peer:all && npm run compile:native-node-host-full",
63
        "configure:native-node-host-java-subset": "cd ./native && meson setup -Dsource_set=java-subset -Devents_test=false build-node-host-java-subset",
64
        "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",
65
        "configure:native-node-host-subset": "cd ./native && meson setup -Dsource_set=subset build-node-host-subset",
66
        "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",
67
        "configure:native-node-host-full": "cd ./native && meson setup build-node-host-full",
68
        "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",
69
        "sanity": "npm run check:peers:run && npm run run:all && npm run lint:all",
70
        "panda:sdk:install": "cd panda && npm run panda:sdk:install",
71
        "compile:arkts:subset": "npm run compile && node . --api-version 99 --dts2peer --need-interfaces --input-dir ./tests/subset/ets/ --output-dir ./generated/subset --language arkts && bash ./panda/arkts/arktsc --arktsconfig ./arktsconfig-subset.json --ets-module",
72
        "run:link-panda-interfaces": "bash ./panda/arkts/arklink --output ./build/abc/subset/koalaui/arkoala-arkui/arkts/src/dts_interfaces.abc -- `find ./build/abc/subset/koalaui/arkoala-arkui/arkts/src/ -name *Interfaces.abc`",
73
        "compile:arkts:peers": "bash ./panda/arkts/arktsc --arktsconfig ./arktsconfig-peers.json --ets-module",
74
        "run:panda": "npm run make:arkts && npm run compile:arkts:subset && npm run run:link-panda-interfaces && npm run compile:native-node-host-subset && LD_LIBRARY_PATH=./native PANDA_LIB_PATH=./build/abc/subset/koalaui/arkoala-arkui/arkts/src/ DTS_INTERFACES_FILE=dts_interfaces.abc EXCLUDE_PANDA_FILE=index.abc:*Interfaces.abc bash ./panda/arkts/ark ./build/abc/subset/koalaui/arkoala-arkui/arkts/src/index.abc",
75
        "run:dummy-panda": "npm run compile:native-node-host-subset && ./native/build-node-host-subset/dummy-panda",
76
        "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 -sourcepath ./generated/java-subset/koalaui/arkoala/java/src -d ./generated/java-subset/bin ./generated/java-subset/koalaui/arkoala/java/src/org/koalaui/arkoala/Main.java",
77
        "run:java": "npm run compile:java && npm run compile:native-node-host-java-subset && java -Djava.library.path=./native -cp ./generated/java-subset/bin org.koalaui.arkoala.Main",
78
        "make:arkts": "npm run compile && node . --api-version 99 --dts2peer --input-dir ./tests/subset/ --output-dir ./generated/subset --language arkts",
79
        "compile:arkts": "bash ./panda/arkts/arktsc --arktsconfig ./arktsconfig-subset.json --ets-module",
80
        "compile:native-ohos-subset-arm32": "npm run check:subset && node ./native/nativeBuild.mjs subset arm32",
81
        "compile:native-ohos-subset-arm64": "npm run check:subset && node ./native/nativeBuild.mjs subset arm64",
82
        "compile:native-ohos-full-arm32": "npm run check:peers && node ./native/nativeBuild.mjs full arm32",
83
        "compile:native-ohos-full-arm64": "npm run check:peers && node ./native/nativeBuild.mjs full arm64",
84
        "run:ohos-subset-arm32:perf": "npm run compile:native-ohos-subset-arm32 && node ./ohos-app/runPerf.mjs subset arm32 mock",
85
        "run:ohos-subset-arm64:perf": "npm run compile:native-ohos-subset-arm64 && node ./ohos-app/runPerf.mjs subset arm64 mock",
86
        "run:ohos-full-arm32:perf": "npm run compile:native-ohos-full-arm32 && node ./ohos-app/runPerf.mjs full arm32 mock",
87
        "compile:native-ohos-subset-arm64:v8": "npm run check:subset && node ./native/nativeBuild.mjs subset arm64 v8",
88
        "run:ohos-subset-arm64:perf:v8": "npm run compile:native-ohos-subset-arm64:v8 && node ohos-v8/runPerfOnV8.mjs subset",
89
        "rollup:ohos:full:arm64": "npm run check:peers && cross-env mode=peers isOhos=true arch=arm64 rollup -c rollup.config.components.mjs",
90
        "rollup:ohos:full:arm32": "npm run check:peers && cross-env mode=peers isOhos=true arch=arm rollup -c rollup.config.components.mjs",
91
        "rollup:ohos:subset:arm64": "npm run check:subset && cross-env mode=subset isOhos=true arch=arm64 rollup -c rollup.config.components.mjs",
92
        "rollup:ohos:subset:arm32": "npm run check:subset && cross-env mode=subset isOhos=true arch=arm rollup -c rollup.config.components.mjs",
93
        "rollup:host:subset": "npm run check:subset && cross-env mode=subset rollup -c rollup.config.main.mjs",
94
        "rollup:host:full": "npm run check:peers && cross-env mode=peers rollup -c rollup.config.main.mjs"
95
    }
96
}
97

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.