123456789101112131415161718192021 |
- var gulp = require('gulp');
- var watch = require('gulp-watch');
- var del = require('del');
- var color = require('colors-cli')
- let log = (str)=>console.log(color.green(str));
- //移动编译到wwwroot/
- gulp.task('default', () => {
- //删除原始文件
- log('删除原始文件...');
- del('../Code/CZKJ.WLGL.Web/wwwroot/manage/*', { force: true });
- log('开始移动文件...');
- //移动
- return gulp.src('./dist/**')
- .pipe(gulp.dest('../Code/CZKJ.WLGL.Web/wwwroot/manage/'))
- .on('end', () => {
- // del('./dist');
- log('移动完成...');
- })
- });
|