blob: d1e70ecd2e56ff82126180a35cc07d7ad1b7f1cc [file] [log] [blame]
Matteo Scandolofc4b37b2017-02-02 12:18:47 -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() {
Matteo Scandoloa120cfd2017-02-06 16:03:36 -080015 return del([`${conf.paths.dist}/*`, conf.paths.tmp]);
Matteo Scandolofc4b37b2017-02-02 12:18:47 -080016}
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}