Skip to content

Commit

Permalink
Update for latest packages and Node 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Feb 7, 2015
1 parent 862b143 commit a9de151
Show file tree
Hide file tree
Showing 10 changed files with 342 additions and 201 deletions.
20 changes: 11 additions & 9 deletions Gruntfile.js
Expand Up @@ -5,10 +5,10 @@
// for empty object using iteration _should_ be quicker than getting all the
// keys, at least when V8 implements iteration properly).

var reports = require('./node_modules/grunt-jslint/lib/reports'),
orig_standard = reports.standard;
var reporters = require('./node_modules/grunt-jslint/lib/reporters'),
orig_standard = reporters.standard;

reports.standard = function (report)
reporters.standard = function (report)
{
var errors = report.files['lib/qlobber.js'], i;

Expand All @@ -33,17 +33,19 @@ reports.standard = function (report)
};

// HACK! Bump code coverage for the hack above!
reports.standard({ files: { 'lib/qlobber.js': [{ code: 'strange_loop'}] }});
reports.standard({ files: { 'lib/qlobber.js': [{ code: 'foo' }, { code: 'strange_loop' }] }});
reporters.standard({ files: { 'lib/qlobber.js': [{ code: 'strange_loop'}] }});
reporters.standard({ files: { 'lib/qlobber.js': [{ code: 'foo' }, { code: 'strange_loop' }] }});

module.exports = function (grunt)
{
grunt.initConfig(
{
jslint: {
files: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'test/*.js', 'bench/**/*.js' ],
directives: {
white: true
all: {
src: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'test/*.js', 'bench/**/*.js' ],
directives: {
white: true
}
}
},

Expand Down Expand Up @@ -86,7 +88,7 @@ module.exports = function (grunt)
grunt.loadNpmTasks('grunt-apidox');
grunt.loadNpmTasks('grunt-exec');

grunt.registerTask('lint', 'jslint');
grunt.registerTask('lint', 'jslint:all');
grunt.registerTask('test', 'cafemocha');
grunt.registerTask('docs', 'apidox');
grunt.registerTask('coverage', ['exec:cover', 'exec:check_cover']);
Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage.json

Large diffs are not rendered by default.

43 changes: 30 additions & 13 deletions coverage/lcov-report/index.html
Expand Up @@ -100,16 +100,30 @@
.cstat-no { background: #fc8c84; color: #111; }
.fstat-no { background: #ffc520; color: #111 !important; }
.cbranch-no { background: yellow !important; color: #111; }

.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }

.missing-if-branch {
display: inline-block;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: black;
color: yellow;
xtext-decoration: line-through;
}
.missing-if-branch .typ {

.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}

.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}

Expand Down Expand Up @@ -140,7 +154,7 @@
margin-left: 0.5em;
}
div.coverage-summary .yui3-datatable-sort-indicator {
background: url("http://yui.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
background: url("https://yui-s.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
}
div.coverage-summary .yui3-datatable-sorted .yui3-datatable-sort-indicator {
background-position: 0 -20px;
Expand Down Expand Up @@ -176,24 +190,27 @@
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }

</style>
</head>
<body>
<div class="header high">
<h1>Code coverage report for <span class="entity">All files</span></h1>
<h2>

Statements: <span class="metric">100% <small>(109 / 109)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Statements: <span class="metric">100% <small>(111 / 111)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Branches: <span class="metric">100% <small>(48 / 48)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Functions: <span class="metric">100% <small>(11 / 11)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Functions: <span class="metric">100% <small>(12 / 12)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Lines: <span class="metric">100% <small>(109 / 109)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Lines: <span class="metric">100% <small>(111 / 111)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;

Ignored: <span class="metric"><span class="ignore-none">none</span></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"></div>
</div>
Expand All @@ -218,39 +235,39 @@ <h2>
<td class="file high" data-value="qlobber/"><a href="qlobber/index.html">qlobber/</a></td>
<td data-value="100" class="pic high"><span class="cover-fill cover-full" style="width: 100px;"></span><span class="cover-empty" style="width:0px;"></span></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="30" class="abs high">(30&nbsp;/&nbsp;30)</td>
<td data-value="28" class="abs high">(28&nbsp;/&nbsp;28)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="4" class="abs high">(4&nbsp;/&nbsp;4)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">(2&nbsp;/&nbsp;2)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="30" class="abs high">(30&nbsp;/&nbsp;30)</td>
<td data-value="28" class="abs high">(28&nbsp;/&nbsp;28)</td>
</tr>

<tr>
<td class="file high" data-value="qlobber/lib/"><a href="qlobber/lib/index.html">qlobber/lib/</a></td>
<td data-value="100" class="pic high"><span class="cover-fill cover-full" style="width: 100px;"></span><span class="cover-empty" style="width:0px;"></span></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="79" class="abs high">(79&nbsp;/&nbsp;79)</td>
<td data-value="83" class="abs high">(83&nbsp;/&nbsp;83)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="44" class="abs high">(44&nbsp;/&nbsp;44)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="9" class="abs high">(9&nbsp;/&nbsp;9)</td>
<td data-value="10" class="abs high">(10&nbsp;/&nbsp;10)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="79" class="abs high">(79&nbsp;/&nbsp;79)</td>
<td data-value="83" class="abs high">(83&nbsp;/&nbsp;83)</td>
</tr>

</tbody>
</table>
</div>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Jul 04 2013 09:09:25 GMT+0100 (BST)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Feb 07 2015 21:06:25 GMT+0000 (GMT)</div>
</div>

<script src="prettify.js"></script>

<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script src="https://yui-s.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script>

YUI().use('datatable', function (Y) {
Expand Down
66 changes: 46 additions & 20 deletions coverage/lcov-report/qlobber/Gruntfile.js.html
Expand Up @@ -100,16 +100,30 @@
.cstat-no { background: #fc8c84; color: #111; }
.fstat-no { background: #ffc520; color: #111 !important; }
.cbranch-no { background: yellow !important; color: #111; }

.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }

.missing-if-branch {
display: inline-block;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: black;
color: yellow;
xtext-decoration: line-through;
}
.missing-if-branch .typ {

.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}

.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}

Expand Down Expand Up @@ -140,7 +154,7 @@
margin-left: 0.5em;
}
div.coverage-summary .yui3-datatable-sort-indicator {
background: url("http://yui.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
background: url("https://yui-s.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
}
div.coverage-summary .yui3-datatable-sorted .yui3-datatable-sort-indicator {
background-position: 0 -20px;
Expand Down Expand Up @@ -176,14 +190,16 @@
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }

</style>
</head>
<body>
<div class="header high">
<h1>Code coverage report for <span class="entity">qlobber/Gruntfile.js</span></h1>
<h2>

Statements: <span class="metric">100% <small>(28 / 28)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Statements: <span class="metric">100% <small>(27 / 27)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Branches: <span class="metric">100% <small>(4 / 4)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Expand All @@ -192,8 +208,9 @@ <h2>
Functions: <span class="metric">100% <small>(2 / 2)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Lines: <span class="metric">100% <small>(28 / 28)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Lines: <span class="metric">100% <small>(27 / 27)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;

Ignored: <span class="metric"><span class="ignore-none">none</span></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"><a href="../index.html">All files</a> &#187; <a href="index.html">qlobber/</a> &#187; Gruntfile.js</div>
</div>
Expand Down Expand Up @@ -295,8 +312,11 @@ <h2>
94
95
96
97</td><td class="line-coverage"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1</span>
97
98
99
100</td><td class="line-coverage"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -377,6 +397,9 @@ <h2>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
Expand All @@ -398,10 +421,10 @@ <h2>
// for empty object using iteration _should_ be quicker than getting all the
// keys, at least when V8 implements iteration properly).
&nbsp;
var reports = require('./node_modules/grunt-jslint/lib/reports'),
orig_standard = reports.standard;
var reporters = require('./node_modules/grunt-jslint/lib/reporters'),
orig_standard = reporters.standard;
&nbsp;
reports.standard = function (report)
reporters.standard = function (report)
{
var errors = report.files['lib/qlobber.js'], i;
&nbsp;
Expand All @@ -426,17 +449,19 @@ <h2>
};
&nbsp;
// HACK! Bump code coverage for the hack above!
reports.standard({ files: { 'lib/qlobber.js': [{ code: 'strange_loop'}] }});
reports.standard({ files: { 'lib/qlobber.js': [{ code: 'foo' }, { code: 'strange_loop' }] }});
reporters.standard({ files: { 'lib/qlobber.js': [{ code: 'strange_loop'}] }});
reporters.standard({ files: { 'lib/qlobber.js': [{ code: 'foo' }, { code: 'strange_loop' }] }});
&nbsp;
module.exports = function (grunt)
{
grunt.initConfig(
{
jslint: {
files: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'test/*.js', 'bench/**/*.js' ],
directives: {
white: true
all: {
src: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'test/*.js', 'bench/**/*.js' ],
directives: {
white: true
}
}
},
&nbsp;
Expand All @@ -447,12 +472,13 @@ <h2>
apidox: {
input: 'lib/qlobber.js',
output: 'README.md',
fullSourceDescription: true
fullSourceDescription: true,
extraHeadingLevels: 1
},
&nbsp;
exec: {
cover: {
cmd: './node_modules/.bin/istanbul cover ./node_modules/.bin/grunt test'
cmd: './node_modules/.bin/istanbul cover ./node_modules/.bin/grunt -- test'
},
&nbsp;
check_cover: {
Expand All @@ -478,7 +504,7 @@ <h2>
grunt.loadNpmTasks('grunt-apidox');
grunt.loadNpmTasks('grunt-exec');
&nbsp;
grunt.registerTask('lint', 'jslint');
grunt.registerTask('lint', 'jslint:all');
grunt.registerTask('test', 'cafemocha');
grunt.registerTask('docs', 'apidox');
grunt.registerTask('coverage', ['exec:cover', 'exec:check_cover']);
Expand All @@ -492,12 +518,12 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Jul 04 2013 09:09:25 GMT+0100 (BST)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Feb 07 2015 21:06:25 GMT+0000 (GMT)</div>
</div>

<script src="../prettify.js"></script>

<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script src="https://yui-s.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script>

YUI().use('datatable', function (Y) {
Expand Down

0 comments on commit a9de151

Please sign in to comment.