Skip to content

Commit d585257

Browse files
committed
some gulp cleanup
1 parent d40ff89 commit d585257

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

builder/patternlab_gulp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ module.exports = function(gulp) {
2121
gulp.task('patternlab:version', function(){
2222
var patternlab = patternlab_engine();
2323
patternlab.version();
24-
})
24+
});
2525

2626
gulp.task('patternlab:only_patterns', ['clean'], function(){
2727
var patternlab = patternlab_engine();
2828
patternlab.build_patterns_only(false);
29-
})
29+
});
3030

3131
gulp.task('patternlab:help', function(){
3232
var patternlab = patternlab_engine();
3333
patternlab.help();
34-
})
34+
});
3535

36-
}
36+
};

gulpfile.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ gulp.loadTasks(__dirname+'/builder/patternlab_gulp.js');
2727
gulp.task('clean', function(cb){
2828
del.sync(['./public/patterns/*'], {force: true});
2929
cb();
30-
})
30+
});
3131

3232
//build the banner
3333
gulp.task('banner', function(){
@@ -51,32 +51,32 @@ gulp.task('banner', function(){
5151
today : new Date().getFullYear() }
5252
))
5353
.pipe(gulp.dest('./builder'));
54-
})
54+
});
5555

5656
//copy tasks
5757
gulp.task('cp:js', function(){
5858
return gulp.src('**/*.js', {cwd:'./source/js'})
59-
.pipe(gulp.dest('./public/js'))
59+
.pipe(gulp.dest('./public/js'));
6060
});
6161
gulp.task('cp:img', function(){
6262
return gulp.src(
6363
[ '**/*.gif', '**/*.png', '**/*.jpg', '**/*.jpeg' ],
6464
{cwd:'./source/images'} )
65-
.pipe(gulp.dest('./public/images'))
65+
.pipe(gulp.dest('./public/images'));
6666
});
6767
gulp.task('cp:font', function(){
6868
return gulp.src('*', {cwd:'./source/fonts'})
69-
.pipe(gulp.dest('./public/fonts'))
70-
});
69+
.pipe(gulp.dest('./public/fonts'));
70+
});;
7171
gulp.task('cp:data', function(){
7272
return gulp.src('annotations.js', {cwd:'./source/_data'})
73-
.pipe(gulp.dest('./public/data'))
74-
})
73+
.pipe(gulp.dest('./public/data'));
74+
});
7575
gulp.task('cp:css', function(){
7676
return gulp.src('./source/css/style.css')
7777
.pipe(gulp.dest('./public/css'))
7878
.pipe(browserSync.stream());
79-
})
79+
});
8080

8181
//server and watch tasks
8282
gulp.task('connect', ['lab'], function(){
@@ -99,13 +99,13 @@ gulp.task('connect', ['lab'], function(){
9999
browserSync.reload();
100100
});
101101

102-
})
102+
});
103103

104104
//unit test
105105
gulp.task('nodeunit', function(){
106106
return gulp.src('./test/**/*_tests.js')
107107
.pipe(nodeunit());
108-
})
108+
});
109109

110110
//sass tasks, turn on if you want to use
111111
// gulp.task('sass:style', function(){
@@ -130,12 +130,12 @@ gulp.task('nodeunit', function(){
130130
gulp.task('lab-pipe', ['lab'], function(cb){
131131
cb();
132132
browserSync.reload();
133-
})
133+
});
134134

135135
gulp.task('default', ['lab']);
136136

137137
gulp.task('assets', ['cp:js', 'cp:img', 'cp:font', 'cp:data', /*'sass:style', 'sass:styleguide'*/]);
138-
gulp.task('prelab', ['clean', 'banner', 'assets']);
138+
gulp.task('prelab', ['clean', 'assets']);
139139
gulp.task('lab', ['prelab', 'patternlab'], function(cb){cb();});
140140
gulp.task('patterns', ['patternlab:only_patterns']);
141141
gulp.task('serve', ['lab', 'connect']);

0 commit comments

Comments
 (0)