-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpfile.js
More file actions
33 lines (26 loc) · 774 Bytes
/
gulpfile.js
File metadata and controls
33 lines (26 loc) · 774 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
33
// gulpfile.js
// require('require-dir')('./gulp-tasks');
var gulp = require('gulp');
var test = require('./gulp-tasks/test');
var rimraf = require('gulp-rimraf');
// var deploy = require('./gulp-tasks/deploy');
var ghPages = require('gulp-gh-pages');
// Load all tasks from folder `gulp-tasks`
gulp.task('test', function() {
// place code for your default task here
test(gulp);
});
gulp.task('delete', ['gh-pages'],function(){
// genau
return gulp.src('./.publish/').pipe(rimraf());
});
gulp.task('gh-pages', function(){
return gulp.src('./**/*').pipe(ghPages());
});
gulp.task('deploy',['delete', 'gh-pages']);
// gulp.task('deploy', function() {
// // place code for your default task here
// deploy(gulp);
// });
// use it!
// gulp.watch('', ['test']);