-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SerialPort Streams2 Implementation #431
Closed
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
a035a24
Initial commit
joshperry dd9e638
Replace deprecated
joshperry 26029d3
Opening and constructing
joshperry 2504d3e
Merge remote-tracking branch 'upstream/master' into streams2
joshperry f5ef189
Fix dependency
joshperry 040abe5
Test options, change from sandboxed to proxyquire
joshperry 5d7649f
Get platform from the `os` module
joshperry 87e103a
Goodbye parsers
joshperry addd918
Work on opening port
joshperry 56c829b
Fix line endings
joshperry 118b393
Initial read logic, need tests
joshperry 9142964
Fix buffer math
joshperry 153467b
Modify terminal bin to use new code
joshperry 5bded04
Convert terminal to use piped streams
joshperry ee743a8
Initial read/write tests and impl
joshperry 9bd2b65
Fix case insensitive options
joshperry 59b4f38
Elide transform code in core
joshperry 4f23328
Bump major rev
joshperry e9218ca
Windows fixes
joshperry 23e1c56
private host v2 binaries for now
joshperry de6ceab
Begin updating readme
joshperry 22a33ea
Multiple serial ports will now have their own write queue and thread.
giseburt 1912fee
Minor tweaks to close handling of write queue.
giseburt 30e72df
Temporarily removing cleanup on close.
giseburt db20b77
Fixed uninitialized pointer.
giseburt ddef966
Merge multi write buf patch
joshperry ca42d15
Add close() functionality
joshperry 20141e3
Set hardware flowcontrol when rtscts is true
joshperry fc1dad0
Version bump
joshperry cd86856
Nan v2 and Node v4 support
joshperry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,45 @@ | ||
'use strict'; | ||
module.exports = function(grunt) { | ||
|
||
require('jit-grunt')(grunt, {}); | ||
|
||
grunt.initConfig({ | ||
mochaTest: { | ||
test: { | ||
options: { reporter: 'spec' }, | ||
options: { | ||
reporter: 'spec', | ||
clearRequireCache: true | ||
}, | ||
src: ['test/**/*.js'] | ||
} | ||
}, | ||
jshint: { | ||
all: ['*.js', 'test/**/*.js', 'arduinoTest/**/*.js'], | ||
all: ['*.js', 'transforms/*.js', 'test/**/*.js', 'arduinoTest/**/*.js'], | ||
options: { | ||
node: true, | ||
'-W030': true, // to allow mocha expects syntax | ||
globals: { | ||
before: false, | ||
after: false, | ||
beforeEach: false, | ||
afterEach: false, | ||
describe: false, | ||
it: false | ||
} | ||
jshintrc: true | ||
} | ||
}, | ||
watch: { | ||
javascripts: { | ||
options: { | ||
spawn: false | ||
}, | ||
files: [ '*.js', 'transforms/*.js', 'test/**/*.js' ], | ||
tasks: ['jshint', 'mochaTest'] | ||
} | ||
} | ||
}); | ||
|
||
// On watch events, if the changed file is a test file then configure mochaTest to only | ||
// run the tests from that file. Otherwise run all the tests | ||
var defaultTestSrc = grunt.config('mochaTest.test.src'); | ||
grunt.event.on('watch', function(action, filepath) { | ||
if (filepath.match('test/')) { | ||
grunt.config('mochaTest.test.src', ['test/global.js', filepath]); | ||
} else { | ||
grunt.config('mochaTest.test.src', defaultTestSrc); | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-mocha-test'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.registerTask('default', ['jshint', 'mochaTest']); | ||
|
||
}; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "../.jshintrc", | ||
|
||
"globals": { | ||
/* mocha defines */ | ||
"describe": true, | ||
"it": true, | ||
"before": true, | ||
"beforeEach": true, | ||
"after": true, | ||
"afterEach": true | ||
} | ||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are irrelevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Irrelevant unless you want the lint step in the build process to pass. It complains when there are mixed quotes, among other things.