11 Star 179 Fork 55

XE / xe-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gulpfile.js 429 Bytes
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2021-01-14 18:10 . optimize
const gulp = require('gulp')
const replace = require('gulp-replace')
const pack = require('./package.json')
gulp.task('copy_resource', () => {
return gulp.src('./func/*')
.pipe(gulp.dest('./'))
})
gulp.task('update_version', () => {
return gulp.src('./func/ctor.js')
.pipe(replace(/'@VERSION'/, `'${pack.version}'`))
.pipe(gulp.dest('./'))
})
gulp.task('build', gulp.series('copy_resource', 'update_version'))
JavaScript
1
https://gitee.com/x-extends/xe-utils.git
git@gitee.com:x-extends/xe-utils.git
x-extends
xe-utils
xe-utils
master

搜索帮助