mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
This change migrates to typescript. The tests have been modified to conform to typescript and to cleanup cases when they weren't actually working (only one or two cases). I've defined the existing bindings interface for all platforms. There are changes I'd love to make but didn't here (update/set/get/getBaudRate etc are messy). This should in theory be a drop in for the existing bindings. If there are bugs I imagine they're type related not functionality. I dropped abstract bindings as having it a separate package didn't make sense during the refactor. I'd like to iterate on the design a bit more before returning to that class. Mockbinding may also now be drifted slightly from this package. I'll clean those inconsistencies up when I upgrade the main repo.
113 lines
2.9 KiB
JSON
113 lines
2.9 KiB
JSON
{
|
|
"name": "@serialport/bindings-cpp",
|
|
"description": "SerialPort Hardware bindings for node serialport written in c++",
|
|
"version": "0.0.0-development",
|
|
"main": "lib",
|
|
"keywords": [
|
|
"serialport-binding",
|
|
"COM",
|
|
"com port",
|
|
"hardware",
|
|
"iot",
|
|
"modem",
|
|
"serial port",
|
|
"serial",
|
|
"serialport",
|
|
"tty",
|
|
"UART"
|
|
],
|
|
"dependencies": {
|
|
"@serialport/binding-abstract": "10.0.1",
|
|
"@serialport/parser-readline": "10.0.1",
|
|
"debug": "^4.3.2",
|
|
"node-addon-api": "4.2.0",
|
|
"node-gyp-build": "^4.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@semantic-release/exec": "^6.0.3",
|
|
"@serialport/binding-mock": "10.0.1",
|
|
"@types/chai": "^4.3.0",
|
|
"@types/chai-subset": "^1.3.3",
|
|
"@types/debug": "^4.1.7",
|
|
"@types/mocha": "^9.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
"@typescript-eslint/parser": "^5.10.0",
|
|
"cc": "^3.0.1",
|
|
"chai": "^4.3.4",
|
|
"chai-subset": "^1.6.0",
|
|
"codecov": "^3.8.3",
|
|
"esbuild": "^0.14.12",
|
|
"esbuild-register": "^3.3.2",
|
|
"eslint": "^8.2.0",
|
|
"mocha": "^9.1.3",
|
|
"node-abi": "3.5.0",
|
|
"node-gyp": "^7.1.2",
|
|
"nyc": "^15.1.0",
|
|
"plop": "^2.7.6",
|
|
"prebuildify": "^5.0.0",
|
|
"prebuildify-cross": "^4.0.2",
|
|
"semantic-release": "^18.0.1",
|
|
"sinon": "^12.0.1",
|
|
"typescript": "^4.5.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=12.17.0 <13.0 || >=14.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "rm -rf dist && tsc -p tsconfig-build.json",
|
|
"install": "node-gyp-build",
|
|
"prebuild": "prebuildify --napi --target 14.0.0 --force --strip --verbose",
|
|
"prebuild-cross": "prebuildify-cross --napi --target 14.0.0 --force --strip --verbose",
|
|
"rebuild": "node-gyp rebuild",
|
|
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
|
"format": "eslint lib test --fix",
|
|
"lint": "eslint lib test && cc --verbose",
|
|
"test": "nyc --reporter=html --reporter=text --reporter lcovonly mocha",
|
|
"test:arduino": "TEST_PORT=$(./bin/find-arduino.js) npm test",
|
|
"test:watch": "mocha -w",
|
|
"semantic-release": "semantic-release",
|
|
"typecheck": "tsc"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"license": "MIT",
|
|
"gypfile": true,
|
|
"cc": {
|
|
"filter": [
|
|
"legal/copyright",
|
|
"build/include"
|
|
],
|
|
"files": [
|
|
"src/*.cpp",
|
|
"src/*.h"
|
|
],
|
|
"linelength": "120"
|
|
},
|
|
"binary": {
|
|
"napi_versions": [
|
|
6
|
|
]
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/serialport/bindings-cpp.git"
|
|
},
|
|
"funding": "https://opencollective.com/serialport/donate",
|
|
"changelog": {
|
|
"labels": {
|
|
"breaking": ":boom: BREAKING CHANGES :boom:",
|
|
"feature-request": "Features",
|
|
"bug": "Bug Fixes",
|
|
"docs": "Documentation",
|
|
"internal": "Chores"
|
|
}
|
|
},
|
|
"mocha": {
|
|
"bail": true,
|
|
"require": [
|
|
"esbuild-register"
|
|
],
|
|
"spec": "lib/**/*.test.*"
|
|
}
|
|
}
|