-
Notifications
You must be signed in to change notification settings - Fork 10
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 #40 from mmoulton/develop
Release 0.4.0
- Loading branch information
Showing
12 changed files
with
644 additions
and
348 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
/npm-debug.log |
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,36 +1,22 @@ | ||
{ | ||
"globals": { | ||
"describe": false, | ||
"it": false, | ||
"before": false, | ||
"beforeEach": false, | ||
"after": false, | ||
"afterEach": false | ||
}, | ||
|
||
"node" : true, | ||
|
||
"bitwise": true, | ||
"camelcase": false, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"forin": true, | ||
"immed": true, | ||
"indent": 2, | ||
"latedef": false, | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": true, | ||
"nonew": true, | ||
"plusplus": true, | ||
"indent": 2, | ||
"quotmark": true, | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"quotmark": "single", | ||
"strict": true, | ||
"trailing": true, | ||
|
||
"eqnull": true, | ||
|
||
"white": true | ||
} | ||
"undef": true, | ||
"unused": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
script: './node_modules/.bin/grunt travis' | ||
- '0.12' | ||
|
||
script: 'grunt test' | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
sudo: 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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* Copyright(c) 2013 Mike Moulton <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
|
||
'use strict'; | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* Copyright(c) 2013 Mike Moulton <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var grunt = require('grunt'), | ||
|
@@ -26,7 +27,18 @@ var BOOL_OPTIONS = [ | |
'bail', | ||
'recursive', | ||
'debug-brk', | ||
'ignore-leaks' | ||
'async-only', | ||
'check-leaks', | ||
'sort', | ||
'inline-diffs', | ||
'no-exit', | ||
'expose-gc', | ||
'gc-global', | ||
'harmony', | ||
'harmony-proxies', | ||
'harmony-collections', | ||
'harmony-generators', | ||
'prof' | ||
]; | ||
var STRING_OPTIONS = [ | ||
'reporter', | ||
|
@@ -80,14 +92,13 @@ function getBaseOptions(options) { | |
|
||
if (typeof options.require === 'string') { | ||
options.require = [options.require]; | ||
} | ||
else if (!Array.isArray(options.require)) { | ||
} else if (!Array.isArray(options.require)) { | ||
options.require = []; | ||
} | ||
|
||
// Instrument the source with blanket | ||
if (options.instrument) { | ||
options.require.push(path.relative(process.cwd(), __dirname + '/instrument')); | ||
options.require.push(path.relative(process.cwd(), path.join(__dirname, '/instrument'))); | ||
} | ||
|
||
return options; | ||
|
Oops, something went wrong.