Skip to content

Commit 10a8c99

Browse files
committed
Make gulp task names more semantic
1 parent 8000d62 commit 10a8c99

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gulpfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ var gulp = require('gulp'),
1818
path = require('path'),
1919
template = require('lodash').template;
2020

21-
gulp.task('default', ['clean', 'jshint', 'karma', 'compile']);
21+
gulp.task('default', ['clean', 'lint', 'test', 'compile']);
2222
gulp.task('dev', ['compile', 'watch']);
2323

2424
gulp.task('watch', function() {
25-
gulp.watch('src/**/*.js', ['karma', 'compile']);
26-
gulp.watch('test/spec/**/*.js', ['karma']);
25+
gulp.watch('src/**/*.js', ['test', 'compile']);
26+
gulp.watch('test/spec/**/*.js', ['test']);
2727
});
2828

2929
gulp.task('clean', function() {
3030
return gulp.src(['dist', 'test/coverage'], { read: false })
3131
.pipe(clean());
3232
});
3333

34-
gulp.task('jshint', function() {
34+
gulp.task('lint', function() {
3535
return gulp.src(['gulpfile.js', 'src/**/*.js', 'specs/**/*.js'])
3636
.pipe(jshint('.jshintrc'))
3737
.pipe(jshint.reporter('jshint-stylish'));
@@ -47,12 +47,12 @@ gulp.task('instrument', function() {
4747
.pipe(gulp.dest('src-instrumented'));
4848
});
4949

50-
gulp.task('karma', ['clean', 'instrument'], function() {
50+
gulp.task('test', ['clean', 'instrument'], function() {
5151
return gulp.src(['test/spec/*Spec.js'])
5252
.pipe(karma({ configFile: 'karma.conf.js' }));
5353
});
5454

55-
gulp.task('coveralls', ['karma'], function() {
55+
gulp.task('coveralls', ['test'], function() {
5656
return gulp.src(['test/coverage/**/lcov.info'])
5757
.pipe(coveralls());
5858
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy