forked from raychenfj/ion-multi-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
39 lines (29 loc) · 1013 Bytes
/
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
/**
* Pack Ion-multi-picker
*/
var gulp = require('gulp'),
gulpWatch = require('gulp-watch'),
del = require('del'),
runSequence = require('run-sequence'),
argv = process.argv;
gulp.task('del', function () {
return del(['dist', '*.scss', '*.tgz']);
});
gulp.task('copyhtml', function () {
gulp.src('src/components/multi-picker/*.html').pipe(gulp.dest('dist/components/multi-picker'));
})
gulp.task('copyscss', function () {
gulp.src('src/components/multi-picker/*.scss').pipe(gulp.dest('dist/components/multi-picker'));
});
var shell = require('gulp-shell');
gulp.task('ngc', shell.task(['ngc -p ./config/tsconfig.build.json']));
gulp.task('pack', shell.task(['npm pack']));
gulp.task('post', function () {
return del(['./config/node_modules', './config/src']);
});
gulp.task('pack', function () {
runSequence('del', 'copyhtml', 'copyscss', 'ngc', 'pack', 'post')
});
gulp.task('default', function () {
runSequence('del', 'copyhtml', 'copyscss', 'ngc', 'post')
})