blob: 6cc14bc66bb04972742a5137d0762a482304ab12 [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001const path = require('path');
2
3const gulp = require('gulp');
4const del = require('del');
5const filter = require('gulp-filter');
6
7const conf = require('../conf/gulp.conf');
8
9gulp.task('clean', clean);
10gulp.task('other', other);
11
12function clean() {
13 return del([conf.paths.dist, conf.paths.tmp]);
14}
15
16function other() {
17 const fileFilter = filter(file => file.stat.isFile());
18
19 return gulp.src([
20 path.join(conf.paths.src, '/**/*'),
21 path.join(`!${conf.paths.src}`, '/**/*.{scss,ts,html}')
22 ])
23 .pipe(fileFilter)
24 .pipe(gulp.dest(conf.paths.dist));
25}