forked from omkarkhair/sp-jello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
29 lines (27 loc) · 857 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var gulp = require('gulp');
var minify = require('gulp-minify');
var concat = require('gulp-concat');
var pkg = require('./package.json');
var jasmine = require('gulp-jasmine');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('./tests/*.js')
.pipe(jasmine())
.on('error', notify.onError({
title: 'Jasmine Test Failed',
message: 'One or more tests failed, see the cli for details.'
}));
});
gulp.task('default', function() {
gulp.src(['lib/jello.js', 'lib/jello.*.js'])
.pipe(concat('jello.js'))
.pipe(minify({
ext: {
src: '-' + pkg.version + '.js',
min: '-' + pkg.version + '.min.js'
},
exclude: [],
ignoreFiles: ['-min.js']
}))
.pipe(gulp.dest('bin'));
});