-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
63 lines (56 loc) · 1.38 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
var gulp = require('gulp'),
jade = require('gulp-jade'),
compass = require('gulp-compass');
// browserSync = require('browser-sync');
// gulp.task('server', function () {
// browserSync({
// port: 9000,
// server: {
// baseDir: 'app/dist'
// }
// });
// });
gulp.task('jade', function() {
var YOUR_LOCALS = {};
gulp.src('app/jade/*.jade')
.pipe(jade({
pretty: '\t'
}))
.pipe(gulp.dest('app/dist'))
});
gulp.task('compass', function() {
gulp.src('app/scss/main.scss')
.pipe(compass({
config_file: './config.rb',
css: 'app/dist/css',
sass: 'app/scss'
}))
.pipe(gulp.dest('app/assets/temp'));
});
gulp.task('watch', function(){
gulp.watch('app/jade/**/*.jade',['jade']);
gulp.watch('app/scss/**/*.scss',['compass']);
});
//Js
// gulp.task('js', function() {
// gulp.src('app/js/*')
// .pipe(gulp.dest('app/dist/js/'))
// });
// Шрифты
// gulp.task('fonts', function() {
// gulp.src('app/fonts/*')
// .pipe(gulp.dest('app/dist/fonts/'))
// });
// Картинки
// gulp.task('images', function () {
// return gulp.src('app/img/**/*')
// .pipe(gulp.dest('app/dist/img'));
// });
// gulp.task('watchin', function (){
// gulp.watch([
// 'app/*',
// 'app/dist/*.html',
// 'app/dist/css/**/*.css'
// ]).on('change', browserSync.reload);
// });
gulp.task('default', [ 'watch']);