12345678910111213141516 |
- 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'))
|