Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit d165832

Browse files
committed
#8 coveralls as optional config
1 parent f2b3969 commit d165832

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slush-biojs",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "A slush generator for BioJS modules",
55
"keywords": [
66
"slushgenerator",

templates/gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var mocha = require('gulp-mocha');
2525
var mochaPhantomJS = require('gulp-mocha-phantomjs'); <% } %>
2626

2727
// code style
28-
var jshint = require('gulp-jshint');
29-
var coveralls = require('gulp-coveralls');
28+
var jshint = require('gulp-jshint'); <% if (coverage){ %>
29+
var coveralls = require('gulp-coveralls'); <% } %>
3030

3131
// gulp helper
3232
var source = require('vinyl-source-stream'); // converts node streams into vinyl streams

templates/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
},
3333
"dependencies": {},
3434
"devDependencies": {<% if (vis){ %>
35-
"biojs-sniper": "^0.0.4", <% } %>
36-
"blanket": "^1.1.6",
35+
"biojs-sniper": "^0.0.4", <% } %> <% if (coverage){ %>
36+
"blanket": "^1.1.6", <% } %>
3737
"browserify": "5.x",
38-
"chai": "^1.9.1",
39-
"coveralls": "^2.11.1",
38+
"chai": "^1.9.1", <% if (coverage){ %>
39+
"coveralls": "^2.11.1", <% } %>
4040
"del": "^0.1.3",
4141
"gulp": "^3.8.8",
42-
"gulp-chmod": "^1.1.1",
43-
"gulp-coveralls": "^0.1.3",
42+
"gulp-chmod": "^1.1.1", <% if (coverage){ %>
43+
"gulp-coveralls": "^0.1.3", <% } %>
4444
"gulp-gzip": "0.0.8",
4545
"gulp-jshint": "^1.8.4",
4646
"gulp-mocha": "^1.0.0", <% if (vis){ %>
@@ -55,7 +55,7 @@
5555
"mocha-lcov-reporter": "0.0.1",
5656
"vinyl-source-stream": "^1.0.0",
5757
"watchify": "^1.0.6"
58-
},
58+
}, <% if (coverage){ %>
5959
"config": {
6060
"blanket": {
6161
"pattern": [
@@ -66,7 +66,7 @@
6666
"travis-cov": {
6767
"threshold": 60
6868
}
69-
},
69+
}, <% } %>
7070
"shields": {
7171
"test": {
7272
"img": "https://travis-ci.org/<%= userName %>/<%= appNameSlug %>.svg?branch=master",

0 commit comments

Comments
 (0)