Skip to content

Commit 758953c

Browse files
committed
Move coverage and complexity reports into a build directory. Add gulp clean to delete build directory.
1 parent 5f1ffa0 commit 758953c

File tree

5 files changed

+24
-56
lines changed

5 files changed

+24
-56
lines changed

.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
.idea
2-
coverage/*
3-
complexity/*
4-
lib-cov
5-
bower_components/*
6-
node_modules/*
7-
*.seed
8-
*.log
91
*.csv
102
*.dat
11-
*.out
12-
*.pid
133
*.gz
144
*.iml
15-
16-
pids
5+
*.log
6+
*.out
7+
*.pid
8+
*.seed
9+
.idea
10+
build
11+
lib-cov
1712
logs
18-
results
19-
13+
node_modules/*
2014
npm-debug.log
21-
15+
pids
16+
results

bower.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

gulpfile.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,28 @@ var Server = require('karma').Server;
1414

1515
gulp.task('build-css', ['scss'], function () {
1616
var Comb = require('csscomb');
17-
var config = require('./.csscomb.json');
17+
var config = require('./config/csscomb.json');
1818
var comb = new Comb(config);
1919
comb.processPath('./src/css/');
2020
});
2121

22+
gulp.task('clean', function () {
23+
24+
var del = require('del');
25+
return del([
26+
'build'
27+
]);
28+
});
29+
30+
gulp.task('default', ['clean:mobile']);
31+
2232
gulp.task('complexity', function (done) {
2333

2434
var callback = function () {
2535
done();
2636
};
2737

28-
plato.inspect(paths.lint, 'complexity', {title: 'prerender', recurse: true}, callback);
38+
plato.inspect(paths.lint, 'build/complexity', {title: 'prerender', recurse: true}, callback);
2939
});
3040

3141

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ module.exports = function (config) {
4343
// optionally, configure the reporter
4444
coverageReporter: {
4545
reporters: [
46-
{type: 'json', dir: 'coverage/'},
47-
{type: 'html', dir: 'coverage/'}
46+
{type: 'json', dir: 'build/coverage/'},
47+
{type: 'html', dir: 'build/coverage/'}
4848
]
4949
},
5050

0 commit comments

Comments
 (0)