forked from mnmxmx/rough-drawing-effect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
37 lines (29 loc) · 908 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
var gulp = require('gulp');
var requireDir = require('require-dir');
var runSequence = require('run-sequence');
requireDir('./gulp/tasks');
// 開発watch
gulp.task('watch', function(){
// gulp.watch('src/assets/img/mobile/topic/*.png', ["sprite"]);
gulp.watch(['src/assets/css/**/*.{scss,css}'], ['css']);
gulp.watch('src/assets/js/**/*.js', ['js']);
gulp.watch('src/assets/glsl/**/*.{vert,frag}', ['glsl']);
gulp.watch('src/**/*.html', ['html']);
// gulp.watch(['src/assets/img/**/*.{png,jpg,jpeg,gif,svg}', 'src/assets/video/**/*.webm'], ['img']);
});
// 開発task
gulp.task('predefault', function(){
runSequence(
'css',
'html',
'glsl',
'js',
// 'img',
'browserSync',
'watch'
);
});
// srcからdstへ(開発用)... dstへファイルを上書きする
gulp.task('default', ['predefault'], function(){
console.log('running default tasks...');
});