gulpfile.js 611 B

123456789101112131415161718192021
  1. var gulp = require('gulp');
  2. var watch = require('gulp-watch');
  3. var del = require('del');
  4. var color = require('colors-cli')
  5. let log = (str)=>console.log(color.green(str));
  6. //移动编译到wwwroot/
  7. gulp.task('default', () => {
  8. //删除原始文件
  9. log('删除原始文件...');
  10. del('../Code/CZKJ.WLGL.Web/wwwroot/manage/*', { force: true });
  11. log('开始移动文件...');
  12. //移动
  13. return gulp.src('./dist/**')
  14. .pipe(gulp.dest('../Code/CZKJ.WLGL.Web/wwwroot/manage/'))
  15. .on('end', () => {
  16. // del('./dist');
  17. log('移动完成...');
  18. })
  19. });