Skip to content

Commit 047b79a

Browse files
committed
add debug info to gulp
1 parent 7a41d93 commit 047b79a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

gulpfile.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var gulp = require('gulp'),
88
jasmine = require('gulp-jasmine-phantom'),
99
bump = require('gulp-bump'),
1010
header = require('gulp-header'),
11+
debug = require('gulp-debug'),
1112
util = require('gulp-util');
1213

1314
var name = 'jquery.atwho';
@@ -16,10 +17,6 @@ gulp.task('coffee', function() {
1617
gulp.src('src/*.coffee')
1718
.pipe(coffee({bare: true}).on('error', util.log))
1819
.pipe(gulp.dest('./build/js'));
19-
20-
gulp.src('spec/**/*.coffee')
21-
.pipe(coffee({bare: true}).on('error', util.log))
22-
.pipe(gulp.dest('spec/build'))
2320
});
2421

2522
gulp.task('concat', function() {
@@ -78,7 +75,12 @@ gulp.task('compress', function() {
7875
.pipe(gulp.dest('dist/css'));
7976
});
8077

81-
gulp.task('jasmine', function () {
78+
gulp.task('test', function () {
79+
gulp.src('spec/**/*.coffee')
80+
.pipe(coffee({bare: true}).on('error', util.log))
81+
.pipe(debug({title: "compiled specs"}))
82+
.pipe(gulp.dest('spec/build'))
83+
8284
gulp.src('spec/build/javascripts/*.spec.js')
8385
.pipe(jasmine({
8486
integration: true,
@@ -98,5 +100,4 @@ gulp.task('jasmine', function () {
98100
});
99101

100102
gulp.task('compile', ['coffee', 'umd', 'concat']);
101-
gulp.task('test', ['compile', 'jasmine']);
102103
gulp.task('default', ['compile', 'bump', 'mark', 'compress']);

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"gulp-coffee": "^2.3.1",
2929
"gulp-concat": "^2.6.0",
3030
"gulp-cssmin": "^0.1.7",
31+
"gulp-debug": "^2.1.2",
3132
"gulp-jasmine": "^2.2.1",
3233
"gulp-jasmine-phantom": "^2.0.1",
3334
"gulp-rename": "^1.2.2",

0 commit comments

Comments
 (0)