-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (28 loc) · 864 Bytes
/
gulpfile.js
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
33
34
var gulp = require('gulp');
var less = require('gulp-less');
var del = require('del');
const zip = require('gulp-zip');
var gulpSequence = require('gulp-sequence');
//gulp.task('less', function () {
// return gulp.src('./less/**/*.less')
// .pipe(less({
// paths: [ path.join(__dirname, 'less', 'includes') ]
// }))
// .pipe(gulp.dest('./public/css'));
//});
gulp.task('build', gulpSequence('clean', 'copy', 'zip'));
gulp.task('clean', function(cb) {
return del('build/codez**');
});
gulp.task('copy', function(cb) {
return gulp.src([ 'source/**' ]).pipe(gulp.dest('build/codez/'))
});
gulp.task('zip', function(cb) {
return gulp.src('build/codez/**')
.pipe(zip('correct-flag.zip'))
.pipe(gulp.dest('build'))
});
gulp.task('watch', function(){
gulp.watch('source/**', ['copy']);
// Other watchers
});