You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
429 B
16 lines
429 B
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'))
|
|
|