-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pure-js
committed
Nov 25, 2016
1 parent
f20368f
commit 98e3b93
Showing
3 changed files
with
73 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
const gulp = require('gulp'), | ||
del = require('del'), | ||
// config = require('./gulp/config'), | ||
config = require('./gulp/config'), | ||
tasks = require('./gulp/tasks'), | ||
plugins = require('gulp-load-plugins')(); | ||
|
||
gulp.task('build', tasks.build); | ||
|
||
const clean = () => del(['build']); | ||
const clean = () => del([config.paths.build]); | ||
|
||
exports.clean = clean; | ||
|
||
function watch() { | ||
gulp.watch(config.paths.stylusWatch, tasks.build); | ||
gulp.watch(config.paths.pugWatch, tasks.build); | ||
} | ||
|
||
// gulp.task('deploy', () => | ||
// gulp.src(paths.dist + '**/*') | ||
// .pipe(plugins.ghPages()) | ||
// ); | ||
|
||
// The default task (called when you run `gulp` from cli) | ||
gulp.task('default', tasks.build); | ||
const dev = gulp.parallel(tasks.build, watch); | ||
gulp.task('default', dev); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters