-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge all orphaned tags: 'v1.1.2', 'v2.0.2', 'v2.1.1', 'v2.2.2', 'v2.…
…3.3', 'v2.4.3', 'v2.5.1', 'v2.6.1', 'v2.7.3', 'v2.8.1', 'v2.9.1', 'v2.10.3', 'v2.11.1', 'v2.13.4', 'v2.14.0', 'v2.14.1', 'v3.6.1'
- Loading branch information
Showing
84 changed files
with
3,512 additions
and
902 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 140 | ||
block_comment_start = /* | ||
block_comment = * | ||
block_comment_end = */ | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[readme.markdown] | ||
indent_size = off | ||
max_line_length = off | ||
|
||
[*.json] | ||
max_line_length = off | ||
|
||
[*.yml] | ||
max_line_length = off | ||
|
||
[Makefile] | ||
max_line_length = off | ||
|
||
[.travis.yml] | ||
indent_size = 2 |
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,6 @@ | ||
{ | ||
"root": true, | ||
"rules": { | ||
"indent": ["error", 4], | ||
}, | ||
} |
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 +1,7 @@ | ||
node_modules | ||
# gitignore | ||
|
||
/node_modules | ||
|
||
# Only apps should have lockfiles | ||
yarn.lock | ||
package-lock.json |
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 @@ | ||
package-lock=false |
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,4 +1,38 @@ | ||
language: node_js | ||
os: | ||
- linux | ||
node_js: | ||
- "0.8" | ||
- "10" | ||
- "9" | ||
- "8" | ||
- "7" | ||
- "6" | ||
- "5" | ||
- "4" | ||
- "iojs" | ||
- "0.12" | ||
- "0.10" | ||
- "0.8" | ||
before_install: | ||
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac' | ||
- 'nvm install-latest-npm' | ||
install: | ||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;' | ||
script: | ||
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi' | ||
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi' | ||
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi' | ||
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi' | ||
sudo: false | ||
env: | ||
- TEST=true | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- node_js: "lts/*" | ||
env: PRETEST=true | ||
allow_failures: | ||
- node_js: "9" | ||
- node_js: "7" | ||
- node_js: "5" | ||
- node_js: "iojs" |
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,8 +1,43 @@ | ||
#!/usr/bin/env node | ||
|
||
var path = require('path'); | ||
process.argv.slice(2).forEach(function(file) { | ||
require(path.resolve(process.cwd(), file)); | ||
var resolveModule = require('resolve').sync; | ||
var resolvePath = require('path').resolve; | ||
var parseOpts = require('minimist'); | ||
var glob = require('glob'); | ||
|
||
var opts = parseOpts(process.argv.slice(2), { | ||
alias: { r: 'require' }, | ||
string: 'require', | ||
default: { r: [] } | ||
}); | ||
|
||
var cwd = process.cwd(); | ||
|
||
if (typeof opts.require === 'string') { | ||
opts.require = [opts.require]; | ||
} | ||
|
||
opts.require.forEach(function(module) { | ||
if (module) { | ||
/* This check ensures we ignore `-r ""`, trailing `-r`, or | ||
* other silly things the user might (inadvertently) be doing. | ||
*/ | ||
require(resolveModule(module, { basedir: cwd })); | ||
} | ||
}); | ||
|
||
opts._.forEach(function (arg) { | ||
// If glob does not match, `files` will be an empty array. | ||
// Note: `glob.sync` may throw an error and crash the node process. | ||
var files = glob.sync(arg); | ||
|
||
if (!Array.isArray(files)) { | ||
throw new TypeError('unknown error: glob.sync did not return an array or throw. Please report this.'); | ||
} | ||
|
||
files.forEach(function (file) { | ||
require(resolvePath(cwd, file)); | ||
}); | ||
}); | ||
|
||
// vim: ft=javascript |
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
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,10 @@ | ||
var test = require('../../'); | ||
var path = require('path'); | ||
|
||
test.createStream({ objectMode: true }).on('data', function (row) { | ||
console.log(JSON.stringify(row)) | ||
}); | ||
|
||
process.argv.slice(2).forEach(function (file) { | ||
require(path.resolve(file)); | ||
}); |
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,8 @@ | ||
var test = require('../../'); | ||
var path = require('path'); | ||
|
||
test.createStream().pipe(process.stdout); | ||
|
||
process.argv.slice(2).forEach(function (file) { | ||
require(path.resolve(file)); | ||
}); |
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,5 @@ | ||
var test = require('../../../'); | ||
test(function (t) { | ||
t.plan(1); | ||
t.equal('beep', 'boop'); | ||
}); |
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,11 @@ | ||
var test = require('../../../'); | ||
test(function (t) { | ||
t.plan(2); | ||
t.equal(1+1, 2); | ||
t.ok(true); | ||
}); | ||
|
||
test('wheee', function (t) { | ||
t.ok(true); | ||
t.end(); | ||
}); |
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.