This commit is contained in:
pelikhan 2022-02-11 10:33:54 -08:00
Родитель a232727115
Коммит 276a9eec43
3 изменённых файлов: 100 добавлений и 90 удалений

Просмотреть файл

@ -1,87 +1,88 @@
{
"name": "node-red-contrib-jacdac",
"version": "1.2.10",
"description": "Microsoft Jacdac for Node-Red",
"keywords": [
"node-red",
"jacdac"
],
"repository": "github:microsoft/node-red-contrib-jacdac",
"scripts": {
"add-node": "node ./utils/add-node.js",
"copy": "copyfiles -u 2 \"./src/nodes/**/*.{png,svg}\" \"./dist/nodes/\"",
"build:editor": "rollup -c rollup.config.editor.js",
"build:editor:watch": "rollup -c rollup.config.editor.js -w",
"build:runtime": "tsc -p tsconfig.runtime.json",
"build:runtime:watch": "tsc -p tsconfig.runtime.watch.json --watch --preserveWatchOutput",
"build": "rm -rf dist && yarn copy && yarn build:editor && yarn build:runtime",
"test": "jest --forceExit --detectOpenHandles --colors",
"test:watch": "jest --forceExit --detectOpenHandles --watchAll",
"dev": "rm -rf dist && yarn copy && concurrently --kill-others --names \"COPY,EDITOR,RUNTIME,TEST\" --prefix \"({name})\" --prefix-colors \"yellow.bold,cyan.bold,greenBright.bold,magenta.bold\" \"onchange -v 'src/**/*.png' 'src/**/*.svg' -- yarn copy\" \"yarn build:editor:watch\" \"yarn build:runtime:watch\" \"yarn test:watch\"",
"lint": "prettier --ignore-path .eslintignore --check '**/*.{js,ts,md}'; eslint --ext .js,.ts .",
"lint:fix": "prettier --ignore-path .eslintignore --write '**/*.{js,ts,md}'; eslint --ext .js,.ts . --fix"
},
"author": "Microsoft",
"license": "MIT",
"engines": {
"node": ">=14.17.0"
},
"node-red": {
"nodes": {
"jacdac-report": "./dist/nodes/jacdac-report/jacdac-report.js",
"jacdac-event": "./dist/nodes/jacdac-event/jacdac-event.js",
"jacdac-command": "./dist/nodes/jacdac-command/jacdac-command.js"
}
},
"dependencies": {
"jacdac-ts": "^1.24.14",
"rpio": "^2.4.2"
},
"optionalDependencies": {
"usb": "^2.1.2",
"serialport": "^9.2.8"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/express": "^4.17.13",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.17",
"@types/node-red": "^1.2.0",
"@types/node-red-node-test-helper": "^0.2.2",
"@types/sinon": "^10.0.11",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"colorette": "^2.0.16",
"concurrently": "^7.0.0",
"copyfiles": "^2.4.1",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^26.1.0",
"glob": "^7.2.0",
"jest": "^27.5.1",
"mustache": "^4.2.0",
"node-red": "^2.2.0",
"node-red-node-test-helper": "^0.2.7",
"onchange": "^7.1.0",
"prettier": "^2.5.1",
"rollup": "^2.67.2",
"semantic-release": "^19.0.2",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
},
"jest": {
"testEnvironment": "node",
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testMatch": [
"**/__tests__/**/*.test.ts"
]
"name": "node-red-contrib-jacdac",
"version": "1.2.10",
"description": "Microsoft Jacdac for Node-Red",
"keywords": [
"node-red",
"jacdac"
],
"repository": "github:microsoft/node-red-contrib-jacdac",
"scripts": {
"add-node": "node ./utils/add-node.js",
"copy": "copyfiles -u 2 \"./src/nodes/**/*.{png,svg}\" \"./dist/nodes/\"",
"build:editor": "rollup -c rollup.config.editor.js",
"build:editor:watch": "rollup -c rollup.config.editor.js -w",
"build:runtime": "tsc -p tsconfig.runtime.json",
"build:runtime:watch": "tsc -p tsconfig.runtime.watch.json --watch --preserveWatchOutput",
"build": "rm -rf dist && yarn copy && yarn build:editor && yarn build:runtime",
"test": "jest --forceExit --detectOpenHandles --colors",
"test:watch": "jest --forceExit --detectOpenHandles --watchAll",
"dev": "rm -rf dist && yarn copy && concurrently --kill-others --names \"COPY,EDITOR,RUNTIME,TEST\" --prefix \"({name})\" --prefix-colors \"yellow.bold,cyan.bold,greenBright.bold,magenta.bold\" \"onchange -v 'src/**/*.png' 'src/**/*.svg' -- yarn copy\" \"yarn build:editor:watch\" \"yarn build:runtime:watch\" \"yarn test:watch\"",
"lint": "prettier --ignore-path .eslintignore --check '**/*.{js,ts,md}'; eslint --ext .js,.ts .",
"lint:fix": "prettier --ignore-path .eslintignore --write '**/*.{js,ts,md}'; eslint --ext .js,.ts . --fix"
},
"author": "Microsoft",
"license": "MIT",
"engines": {
"node": ">=14.17.0"
},
"node-red": {
"nodes": {
"jacdac-report": "./dist/nodes/jacdac-report/jacdac-report.js",
"jacdac-event": "./dist/nodes/jacdac-event/jacdac-event.js",
"jacdac-command": "./dist/nodes/jacdac-command/jacdac-command.js"
}
},
"dependencies": {
"jacdac-ts": "^1.24.15",
"rpio": "^2.4.2",
"spi-device": "^3.1.2"
},
"optionalDependencies": {
"usb": "^2.1.2",
"serialport": "^9.2.8"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/express": "^4.17.13",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.17",
"@types/node-red": "^1.2.0",
"@types/node-red-node-test-helper": "^0.2.2",
"@types/sinon": "^10.0.11",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"colorette": "^2.0.16",
"concurrently": "^7.0.0",
"copyfiles": "^2.4.1",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^26.1.0",
"glob": "^7.2.0",
"jest": "^27.5.1",
"mustache": "^4.2.0",
"node-red": "^2.2.0",
"node-red-node-test-helper": "^0.2.7",
"onchange": "^7.1.0",
"prettier": "^2.5.1",
"rollup": "^2.67.2",
"semantic-release": "^19.0.2",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
},
"jest": {
"testEnvironment": "node",
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testMatch": [
"**/__tests__/**/*.test.ts"
]
}
}

Просмотреть файл

@ -21,11 +21,12 @@ function tryRequire(id: string) {
}
const rpio = tryRequire("rpio")
const spi = tryRequire("spi-device")
const usb = tryRequire("usb")
const serialport = tryRequire("serialport")
const transports: Transport[] = [
rpio && createNodeSPITransport(rpio),
rpio && createNodeSPITransport(rpio, spi),
usb && createUSBTransport(createNodeUSBOptions(usb.WebUSB)),
serialport && createNodeWebSerialTransport(serialport),
]

Просмотреть файл

@ -5062,10 +5062,10 @@ istanbul-reports@^3.1.3:
html-escaper "^2.0.0"
istanbul-lib-report "^3.0.0"
jacdac-ts@^1.24.14:
version "1.24.14"
resolved "https://registry.yarnpkg.com/jacdac-ts/-/jacdac-ts-1.24.14.tgz#819ade07766b980d18ddeb73d6dcd32f8a10f2e8"
integrity sha512-26RLiwBSaE8GbrTjcH+9N45xoFjGoRWwwCLFPuW4CVQyqQ7tMIRHVhGXUOf9tFN1NR51ATWUsRw61S6rNkaIzw==
jacdac-ts@^1.24.15:
version "1.24.15"
resolved "https://registry.yarnpkg.com/jacdac-ts/-/jacdac-ts-1.24.15.tgz#011da45a2bdad5a24f4c59fbe1f3ee9a7bec90b2"
integrity sha512-5aZVs6nkSAQJ+G2IdDbZu1uhmESjo3NKDZMkCHV2hjmcDGZX/veXMTEjdEis16e6zWwEgL0h+JIjjcDVgcXxFQ==
dependencies:
"@types/node" "^17.0.16"
"@types/w3c-web-serial" "^1.0.2"
@ -6338,7 +6338,7 @@ mute-stream@~0.0.4:
resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz"
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
nan@^2.14.1, nan@^2.15.0:
nan@^2.14.1, nan@^2.14.2, nan@^2.15.0:
version "2.15.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
@ -8006,6 +8006,14 @@ spdx-license-ids@^3.0.0:
resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz"
integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==
spi-device@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/spi-device/-/spi-device-3.1.2.tgz#ba0f4b79638e8cb9a64840fe38176666cffb482e"
integrity sha512-5ubnDcpFjMAiO32j7Jrg/EMSmnInoh9LFzh/abVSJxTjCbmUQdRDVgNG5mRlOpMZc+SCHNSzqKVHGe8n0mVKwA==
dependencies:
bindings "^1.5.0"
nan "^2.14.2"
split2@^3.0.0, split2@^3.1.0:
version "3.2.2"
resolved "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz"