-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from yaacov/no-serialport
force close server, catch server callback timeouts, do not force serialport import
- Loading branch information
Showing
11 changed files
with
111 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
'use strict'; | ||
"use strict"; | ||
|
||
var gulp = require('gulp'); | ||
var pump = require('pump'); | ||
const jsdoc = require('gulp-jsdoc3'); | ||
const clean = require('gulp-clean'); | ||
var gulp = require("gulp"); | ||
var pump = require("pump"); | ||
const jsdoc = require("gulp-jsdoc3"); | ||
const clean = require("gulp-clean"); | ||
|
||
gulp.task('default', function() { | ||
gulp.task("default", function() { | ||
// place code for your default task here | ||
}); | ||
|
||
gulp.task('docs', ['doc', 'docExamples']); | ||
gulp.task('build', ['apis', 'ports', 'servers', 'utils']); | ||
gulp.task('publish', ['build', 'docs']); | ||
gulp.task("docs", ["doc", "docExamples"]); | ||
gulp.task("build", ["apis", "ports", "servers", "utils"]); | ||
gulp.task("publish", ["build", "docs"]); | ||
|
||
gulp.task('clean', function() { | ||
return gulp.src(['modbus-serial', 'docs/gen']) | ||
.pipe(clean({force: true})) | ||
gulp.task("clean", function() { | ||
return gulp.src(["modbus-serial", "docs/gen"]) | ||
.pipe(clean({ force: true })); | ||
}); | ||
|
||
gulp.task('doc', function(cb) { | ||
gulp.src(['README.md', 'apis/**/*.js', 'ports/**/*.js', 'servers/**/*.js', 'utils/**/*.js'], {read: false}) | ||
.pipe(jsdoc(cb)) | ||
gulp.task("doc", function(cb) { | ||
gulp.src(["README.md", "apis/**/*.js", "ports/**/*.js", "servers/**/*.js", "utils/**/*.js"], { read: false }) | ||
.pipe(jsdoc(cb)); | ||
}); | ||
|
||
gulp.task('docExamples', function() { | ||
return gulp.src('examples/**/*').pipe(gulp.dest('docs/gen/examples')) | ||
gulp.task("docExamples", function() { | ||
return gulp.src("examples/**/*").pipe(gulp.dest("docs/gen/examples")); | ||
}); | ||
|
||
gulp.task('apis', function(cb) { | ||
gulp.task("apis", function(cb) { | ||
pump([ | ||
gulp.src('apis/**/*.js'), | ||
gulp.dest('modbus-serial/apis') | ||
gulp.src("apis/**/*.js"), | ||
gulp.dest("modbus-serial/apis") | ||
], | ||
cb | ||
) | ||
); | ||
}); | ||
|
||
gulp.task('ports', function(cb) { | ||
gulp.task("ports", function(cb) { | ||
pump([ | ||
gulp.src('ports/**/*.js'), | ||
gulp.dest('modbus-serial/ports') | ||
gulp.src("ports/**/*.js"), | ||
gulp.dest("modbus-serial/ports") | ||
], | ||
cb | ||
) | ||
); | ||
}); | ||
|
||
gulp.task('servers', function(cb) { | ||
gulp.task("servers", function(cb) { | ||
pump([ | ||
gulp.src('servers/**/*.js'), | ||
gulp.dest('modbus-serial/servers') | ||
gulp.src("servers/**/*.js"), | ||
gulp.dest("modbus-serial/servers") | ||
], | ||
cb | ||
) | ||
); | ||
}); | ||
|
||
gulp.task('utils', function(cb) { | ||
gulp.task("utils", function(cb) { | ||
pump([ | ||
gulp.src('utils/**/*.js'), | ||
gulp.dest('modbus-serial/utils') | ||
gulp.src("utils/**/*.js"), | ||
gulp.dest("modbus-serial/utils") | ||
], | ||
cb | ||
) | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.