mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description "onnxruntime-common" starts to get more and more complicated, so it's a good idea to add unit tests for it. Includes the following changes: - move `mocha` from each subfolder (js/web/, js/node/) to root (js/), so that it will be installed once and all subfolder can use. - add folder `test` in js/common/ as root folder for ort-common tests. - add sub folder `type-tests`. this folder contains a few typescript source code, which are excluded from the tsconfig.json. they are not compiled by default. instead, file `type-tests.ts` calls typescript compiler (tsc) to check for the files under this folder whether the compilation result is as expected. If tsc compiles a file successfully when a failure is expected, this is considered an failed test. - add sub folder `unit-tests`. files under this folder will be compiled by default. we use default mode of mocha (using `describe()` and `it()`) to setup test groups and cases. - update eslint rules accordingly.
85 lines
2.6 KiB
JSON
85 lines
2.6 KiB
JSON
{
|
|
"license": "MIT",
|
|
"browser": "dist/ort-web.min.js",
|
|
"unpkg": "dist/ort.min.js",
|
|
"name": "onnxruntime-web",
|
|
"repository": {
|
|
"url": "https://github.com/Microsoft/onnxruntime.git",
|
|
"type": "git"
|
|
},
|
|
"author": "fs-eire",
|
|
"version": "1.16.0",
|
|
"jsdelivr": "dist/ort.min.js",
|
|
"dependencies": {
|
|
"flatbuffers": "^1.12.0",
|
|
"guid-typescript": "^1.0.9",
|
|
"long": "^5.2.3",
|
|
"onnxruntime-common": "file:../common",
|
|
"platform": "^1.3.6",
|
|
"protobufjs": "^7.2.4"
|
|
},
|
|
"scripts": {
|
|
"preprepare": "node -e \"require('node:fs').copyFileSync('./node_modules/long/index.d.ts', './node_modules/long/umd/index.d.ts')\"",
|
|
"prepare": "tsc",
|
|
"build:doc": "node ./script/generate-webgl-operator-md && node ./script/generate-webgpu-operator-md",
|
|
"pull:wasm": "node ./script/pull-prebuilt-wasm-artifacts",
|
|
"test:e2e": "node ./test/e2e/run",
|
|
"build": "node ./script/build",
|
|
"test": "tsc --build ../scripts && node ../scripts/prepare-onnx-node-tests && node ./script/test-runner-cli",
|
|
"prepack": "node ./script/build && node ./script/prepack"
|
|
},
|
|
"keywords": [
|
|
"ONNX",
|
|
"ONNXRuntime",
|
|
"ONNX Runtime"
|
|
],
|
|
"devDependencies": {
|
|
"@chiragrupani/karma-chromium-edge-launcher": "^2.2.2",
|
|
"@types/chai": "^4.3.4",
|
|
"@types/emscripten": "^1.39.6",
|
|
"@types/flatbuffers": "^1.10.0",
|
|
"@types/karma": "^6.1.0",
|
|
"@types/minimatch": "^5.1.2",
|
|
"@types/minimist": "^1.2.2",
|
|
"@types/platform": "^1.3.4",
|
|
"@webgpu/types": "^0.1.30",
|
|
"base64-js": "^1.5.1",
|
|
"chai": "^4.3.7",
|
|
"electron": "^23.1.2",
|
|
"globby": "^13.1.3",
|
|
"karma": "^6.4.1",
|
|
"karma-browserstack-launcher": "^1.6.0",
|
|
"karma-chai": "^0.1.0",
|
|
"karma-chrome-launcher": "^3.1.1",
|
|
"karma-edge-launcher": "^0.4.2",
|
|
"karma-electron": "^7.3.0",
|
|
"karma-firefox-launcher": "^2.1.2",
|
|
"karma-mocha": "^2.0.1",
|
|
"karma-mocha-reporter": "^2.2.5",
|
|
"karma-safari-applescript-launcher": "^0.1.1",
|
|
"karma-sourcemap-loader": "^0.4.0",
|
|
"minimatch": "^7.4.2",
|
|
"minimist": "^1.2.8",
|
|
"numpy-parser": "^1.2.3",
|
|
"strip-json-comments": "^5.0.0"
|
|
},
|
|
"main": "dist/ort-web.node.js",
|
|
"exports": {
|
|
".": {
|
|
"node": {
|
|
"types": "./types.d.ts",
|
|
"default": "./dist/ort-web.node.js"
|
|
},
|
|
"default": {
|
|
"types": "./types.d.ts",
|
|
"default": "./dist/ort.min.js"
|
|
}
|
|
},
|
|
"./webgpu": {
|
|
"types": "./types.d.ts",
|
|
"default": "./dist/ort.webgpu.min.js"
|
|
}
|
|
},
|
|
"types": "./types.d.ts",
|
|
"description": "A Javascript library for running ONNX models on browsers"
|
|
}
|