blob: d1e70ecd2e56ff82126180a35cc07d7ad1b7f1cc [file] [log] [blame]
Matteo Scandoloe19fa102017-03-09 15:38:59 -08001const path = require('path');
2
3const gulp = require('gulp');
4const del = require('del');
5const filter = require('gulp-filter');
6const rename = require('gulp-rename');
7const replace = require('gulp-replace');
8
9const conf = require('../conf/gulp.conf');
10
11gulp.task('clean', clean);
12gulp.task('other', other);
13
14function clean() {
15 return del([`${conf.paths.dist}/*`, conf.paths.tmp]);
16}
17
18function other() {
19 const fileFilter = filter(file => file.stat.isFile());
20
21 return gulp.src([
22 path.join(conf.paths.src, '/**/*'),
23 path.join(`!${conf.paths.src}`, '/**/*.{scss,ts,html}')
24 ])
25 .pipe(fileFilter)
26 .pipe(gulp.dest(conf.paths.dist));
27}
28
29function other() {
30 const fileFilter = filter(file => file.stat.isFile());
31
32 return gulp.src([
33 path.join(conf.paths.src, '/**/*'),
34 path.join(`!${conf.paths.src}`, '/**/*.{scss,ts,html}')
35 ])
36 .pipe(fileFilter)
37 .pipe(gulp.dest(conf.paths.dist));
38}