1 Star 1 Fork 0

redhat123456/wx_calendar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gulpfile.js 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
drfu 提交于 2020-11-08 20:48 . feat: update dist of calendar_v1
const del = require('del')
const gulp = require('gulp')
const path = require('path')
const debug = require('gulp-debug')
const rootPath = path.join(__dirname, 'src')
function copyExample(dir) {
return gulp
.src(['src/**/*'], {
base: rootPath
})
.pipe(
debug({
title: '复制:'
})
)
.pipe(gulp.dest(dir))
}
function CopyCompJs() {
return gulp
.src('calendar-dist/*')
.pipe(
debug({
title: '复制:'
})
)
.pipe(gulp.dest('calendar_v1'))
}
function copyCalendar() {
return gulp
.src([
'src/component/calendar/**/*',
'!src/component/calendar/*.js',
'!src/component/calendar/{func,func/*}'
])
.pipe(
debug({
title: '复制:'
})
)
.pipe(gulp.dest('calendar_v1'))
}
exports.copyCalendar = gulp.series(copyCalendar, CopyCompJs)
gulp.task('default', gulp.series(copyCalendar, CopyCompJs))
gulp.task('example', () => copyExample('example'))
gulp.task('clean', function() {
return del(['calendar-dist'])
})
gulp.task('watch', () => {
gulp.watch(['src/**/*', 'src/*'], () => copyExample('dist'))
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/redhat123456/wx_calendar.git
git@gitee.com:redhat123456/wx_calendar.git
redhat123456
wx_calendar
wx_calendar
master

搜索帮助