blob: d766d14bbd9682e4874db7137d06d4d0c3b3b89b [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');
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08006const rename = require('gulp-rename');
Matteo Scandoloe0d71ea2016-12-19 11:56:12 -08007const replace = require('gulp-replace');
Matteo Scandolod819c922016-12-02 14:06:14 -08008
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
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080018function 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
Matteo Scandolod819c922016-12-02 14:06:14 -080029function 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}