-
Notifications
You must be signed in to change notification settings - Fork 22
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
13 changed files
with
220 additions
and
244 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 @@ | ||
{"extends": ["standard"]} |
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,2 +1,4 @@ | ||
node_modules | ||
/coverage | ||
npm-debug.log | ||
.DS_Store |
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,5 +1,20 @@ | ||
# | ||
# .travis.yml | ||
# | ||
|
||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- "5" | ||
- "4.4" | ||
- "4.3" | ||
- "4.2" | ||
- "4.1" | ||
- "4.0" | ||
sudo: false | ||
|
||
script: | ||
- npm run lint | ||
- npm run test-coverage | ||
- npm run coveralls | ||
|
||
cache: | ||
directories: | ||
- node_modules |
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,29 +1,29 @@ | ||
#!/usr/bin/env node | ||
|
||
var vfs = require('vinyl-fs'), | ||
through = require('through2'), | ||
fs = require('fs'), | ||
lcovResultMerger = require('../index'); | ||
var vfs = require('vinyl-fs') | ||
var through = require('through2') | ||
var fs = require('fs') | ||
var lcovResultMerger = require('../index') | ||
|
||
if (process.argv.length < 3) { | ||
console.error(""); | ||
console.error("Usage: node lcov-result-merger 'pattern'" + | ||
" ['output file']"); | ||
console.error("EX: node lcov-result-merger 'target/**/lcov.out'" + | ||
" 'target/lcov-merged.out'"); | ||
console.error(""); | ||
process.exit(1); | ||
console.error('') | ||
console.error("Usage: node lcov-result-merger 'pattern'" + | ||
" ['output file']") | ||
console.error("EX: node lcov-result-merger 'target/**/lcov.out'" + | ||
" 'target/lcov-merged.out'") | ||
console.error('') | ||
process.exit(1) | ||
} | ||
|
||
var files = process.argv[2]; | ||
var outputFile = process.argv[3]; | ||
var files = process.argv[2] | ||
var outputFile = process.argv[3] | ||
|
||
vfs.src(files) | ||
.pipe(lcovResultMerger()) | ||
.pipe(through.obj(function (file) { | ||
if ( outputFile ) { | ||
fs.writeFileSync(outputFile, file.contents); | ||
} else { | ||
process.stdout.write(file.contents); | ||
} | ||
})); | ||
.pipe(lcovResultMerger()) | ||
.pipe(through.obj(function (file) { | ||
if (outputFile) { | ||
fs.writeFileSync(outputFile, file.contents) | ||
} else { | ||
process.stdout.write(file.contents) | ||
} | ||
})) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.