-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
38 lines (33 loc) · 844 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
35
36
37
38
var gulp = require('gulp'),
customMedia = require('rework-custom-media'),
connect = require('gulp-connect'),
$ = require('gulp-load-plugins')();
gulp.task('css', function () {
return gulp.src('src/grid.css')
.pipe($.rework(customMedia))
.pipe($.myth())
.pipe(gulp.dest('example'))
.pipe($.csso())
.pipe(gulp.dest('dist'));
});
gulp.task('watch', ['css', 'connect'], function () {
gulp.watch('src/grid.css', ['css']);
gulp.watch('example/**/*', function (event) {
return gulp.src(event.path)
.pipe(connect.reload());
});
});
gulp.task('deploy', function () {
gulp.src("./example/**/*")
.pipe($.ghPages());
});
gulp.task('connect', function () {
connect.server({
root: ['example'],
port: 1880,
livereload: {
port: 2880
}
})
});
gulp.task('default', ['css']);