Skip to content

Commit 3f01d2d

Browse files
committed
electron support
1 parent 4a2a3cf commit 3f01d2d

File tree

4 files changed

+61
-8
lines changed

4 files changed

+61
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ gyp-mac-tool
88
.node_pre_gyprc
99
/.idea
1010
.nyc_output
11+
dists

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
'targets': [
33
{
4-
'target_name': 'serialport',
4+
'target_name': 'serialport-v4',
55
'sources': [
66
'src/serialport.cpp',
77
],

lib/bindings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var bindings = require('bindings')('serialport.node');
3+
var bindings = require('bindings')('serialport-v4.node');
44
var listUnix = require('./list-unix');
55

66
var linux = process.platform !== 'win32' && process.platform !== 'darwin';

package.json

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "serialport",
3-
"version": "4.0.7",
4-
"description": "Node.js package to access serial ports. Welcome your robotic javascript overlords. Better yet, program them!",
2+
"name": "serialport-v4",
3+
"version": "4.0.9",
4+
"description": "fork with electron support of Node.js package to access serial ports. Welcome your robotic javascript overlords. Better yet, program them!",
55
"author": {
66
"name": "Chris Williams",
77
"email": "voodootikigod@gmail.com",
88
"url": "http://www.voodootikigod.com"
99
},
1010
"binary": {
11-
"module_name": "serialport",
11+
"module_name": "serialport-v4",
1212
"module_path": "build/{configuration}/",
13-
"host": "https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7"
13+
"host": "https://github.com/akaJes/node-serialport/releases/download/4.0.9"
1414
},
1515
"main": "./lib/serialport",
1616
"repository": {
1717
"type": "git",
18-
"url": "git://github.com/EmergingTechnologyAdvisors/node-serialport.git"
18+
"url": "git://github.com/akaJes/node-serialport.git"
1919
},
2020
"keywords": [
2121
"serialport",
@@ -73,6 +73,7 @@
7373
"mocha": "^2.4.5",
7474
"node-pre-gyp-github": "^1.1.2",
7575
"nyc": "^6.4.4",
76+
"pre-gyp-pack": "^1.0.1",
7677
"sandboxed-module": "^2.0.3",
7778
"sinon": "^1.17.3",
7879
"sinon-chai": "^2.8.0"
@@ -88,12 +89,63 @@
8889
"serialport-term": "./bin/serialport-terminal.js"
8990
},
9091
"license": "MIT",
92+
"pre-gyp-pack": {
93+
"owner": "akaJes",
94+
"repo": "node-serialport",
95+
"platforms": {
96+
"electron": {
97+
"1.6.10": [
98+
"ia32",
99+
"x64"
100+
],
101+
"1.4.16": [
102+
"ia32",
103+
"x64"
104+
],
105+
"1.3.13": [
106+
"ia32",
107+
"x64"
108+
],
109+
"1.2.8": [
110+
"ia32",
111+
"x64"
112+
],
113+
"1.0.2": [
114+
"ia32",
115+
"x64"
116+
]
117+
},
118+
"node": {
119+
"8.0.0": [
120+
"ia32",
121+
"x64"
122+
],
123+
"7.10.0": [
124+
"ia32",
125+
"x64"
126+
],
127+
"6.10.3": [
128+
"ia32",
129+
"x64"
130+
],
131+
"5.12.0": [
132+
"ia32",
133+
"x64"
134+
],
135+
"4.8.3": [
136+
"ia32",
137+
"x64"
138+
]
139+
}
140+
}
141+
},
91142
"scripts": {
92143
"install": "node-pre-gyp install --fallback-to-build",
93144
"rebuild-all": "npm rebuild && node-gyp rebuild",
94145
"gyp-rebuild": "node-gyp rebuild",
95146
"stress": "mocha --no-timeouts test/arduinoTest/stress.js",
96147
"integration": "mocha test/arduinoTest/integration.js test/integration-lite.js",
148+
"package": "pre-gyp-pack",
97149
"grunt": "grunt",
98150
"lint": "grunt --verbose lint",
99151
"test": "nyc grunt --verbose test",

0 commit comments

Comments
 (0)