2 Star 0 Fork 0

MBPSCD/ion-multi-picker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gulpfile.js 1013 Bytes
一键复制 编辑 原始数据 按行查看 历史
陈逢隽 提交于 2017-07-29 12:25 . add prepare script
/**
* 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')
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/MBPSCD/ion-multi-picker.git
git@gitee.com:MBPSCD/ion-multi-picker.git
MBPSCD
ion-multi-picker
ion-multi-picker
master

搜索帮助