-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
262 additions
and
431 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 +1,9 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
'use strict' | ||
|
||
const path = require('path'); | ||
const fs = require('fs'); | ||
const realPath = fs.realpathSync(__dirname); | ||
const script = path.join(realPath, 'psock.js'); | ||
const path = require('path') | ||
const fs = require('fs') | ||
const realPath = fs.realpathSync(__dirname) | ||
const script = path.join(realPath, 'psock.js') | ||
|
||
require(script.toString()); | ||
require(script.toString()) |
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,7 @@ | ||
### 0.2.0 | ||
+ Correct documentation | ||
+ Switch to [standardjs.com][sjs] code style | ||
+ Add `--cee` switch to prefix sent messages with `@cee: ` | ||
+ Ensure local echo and socket sends are asynchronous | ||
|
||
[sjs]: http://standardjs.com/ |
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,35 +1,33 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
const gulp = require('gulp'); | ||
const $ = require('gulp-load-plugins')(); | ||
const gulp = require('gulp') | ||
const $ = require('gulp-load-plugins')() | ||
|
||
const srcIncludes = [ | ||
'**/*.js', | ||
'!node_modules/**', | ||
'!coverage/**', | ||
'!test/**' // tests can be wonky | ||
]; | ||
'!coverage/**' | ||
] | ||
|
||
gulp.task('lint', function lintTask() { | ||
gulp.task('lint', function lintTask () { | ||
return gulp | ||
.src(srcIncludes) | ||
.pipe($.eslint()) | ||
.pipe($.eslint.formatEach()) | ||
.pipe($.eslint.failAfterError()); | ||
}); | ||
.pipe($.standard()) | ||
.pipe($.standard.reporter('default', { breakOnError: true })) | ||
}) | ||
|
||
gulp.task('pre-test', function preTest() { | ||
gulp.task('pre-test', function preTest () { | ||
return gulp | ||
.src(srcIncludes) | ||
.src(srcIncludes.concat(['!test/**'])) | ||
.pipe($.istanbul()) | ||
.pipe($.istanbul.hookRequire()); | ||
}); | ||
.pipe($.istanbul.hookRequire()) | ||
}) | ||
|
||
gulp.task('test', ['lint', 'pre-test'], function testTask() { | ||
gulp.task('test', ['lint', 'pre-test'], function testTask () { | ||
return gulp | ||
.src(['test/*.js']) | ||
.pipe($.mocha({ui: 'qunit', reporter: 'min'})) | ||
.pipe($.istanbul.writeReports()); | ||
}); | ||
.pipe($.istanbul.writeReports()) | ||
}) | ||
|
||
gulp.task('default', ['test']); | ||
gulp.task('default', ['test']) |
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.