forked from ericjgagnon/wickedpicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (28 loc) · 866 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
30
31
32
33
34
/**
* Created by ericgagnon on 7/1/15.
*/
var gulp = require('gulp');
var sass = require('gulp-sass');
var minifyCSS = require('gulp-minify-css');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
gulp.task('sass', function () {
gulp.src('./sass/wickedpicker.scss')
.pipe(sass({
includePaths: require('node-bourbon').includePaths
})).pipe(gulp.dest('./stylesheets'))
.pipe(minifyCSS())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('./dist'));
});
gulp.task('uglify', function () {
return gulp.src('src/*.js')
.pipe(uglify())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('./dist'));
});
gulp.task('default', ['watch']);
gulp.task('watch', function () {
gulp.watch('./sass/**/*.scss', ['sass']);
});
gulp.task('compress', ['uglify', 'sass']);