-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
33 lines (28 loc) · 753 Bytes
/
gulpfile.js
File metadata and controls
33 lines (28 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const gulp = require('gulp');
const concat = require('gulp-concat');
const expose = require('gulp-expose');
const del = require('del');
const copy = require('gulp-copy');
gulp.task('clean', async function() {
return del([
'dist/*'
]);
});
gulp.task('copy', async function() {
return gulp
.src(['src/Page.html',
'src/CheckRetentions.html',
'src/GetHoldingsCount.html',
'src/GetRetentions.html',
'src/appsscript.json',
'src/.clasp.json'])
.pipe(copy('dist', { prefix: 1 }))
});
gulp.task('build', async function(){
return gulp.src('src/*.js')
.pipe(concat('Code.gs'))
.pipe(gulp.dest('dist'));
});
gulp.task('dist', gulp.series('clean', gulp.parallel('copy', 'build'), async function() {
console.log('success')
}));