-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
52 lines (44 loc) · 1.03 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'use strict';
var gulp = require('gulp');
var clean = require('gulp-clean');
var runSequence = require('run-sequence');
gulp.task('default', function(done) {
runSequence('clean', 'assets', done);
});
gulp.task('assets', ['assets:app', 'assets:vendor']);
gulp.task('assets:app', function() {
return gulp.src([
'./assets/**/*',
'./favicon.ico'
], {
base: '.'
})
.pipe(gulp.dest('./dist'));
});
gulp.task('assets:vendor', function() {
return gulp.src([
'./node_modules/budgetkey-ng2-components/assets/**/*'
], {
base: './node_modules/budgetkey-ng2-components'
}).pipe(gulp.dest('./dist'));
});
gulp.task('clean', ['clean:dist', 'clean:ts']);
gulp.task('clean:dist', function () {
return gulp.src([
'./dist'
], {
read: false
}).pipe(clean());
});
gulp.task('clean:ts', function () {
return gulp.src([
'./app/**/*.js',
'./app/**/*.js.map',
'./e2e/**/*.js',
'./e2e/**/*.js.map',
'./karma-test-shim.js',
'./karma-test-shim.js.map'
], {
read: false
}).pipe(clean());
});