apex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject [1/5] incubator-apex-site git commit: add watch gulp task
Date Mon, 07 Sep 2015 17:05:13 GMT
Repository: incubator-apex-site
Updated Branches:
  refs/heads/master b45e77a1b -> 5bfd6ae84


add watch gulp task


Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/commit/0a2dded4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/tree/0a2dded4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/diff/0a2dded4

Branch: refs/heads/master
Commit: 0a2dded4c22acf7e87b330b216fa72409e3043ff
Parents: b45e77a
Author: Andy Perlitch <andyperlitch@gmail.com>
Authored: Sat Sep 5 21:21:32 2015 -0700
Committer: Andy Perlitch <andyperlitch@gmail.com>
Committed: Sat Sep 5 21:21:32 2015 -0700

----------------------------------------------------------------------
 gulpfile.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/0a2dded4/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index 003e067..b67dc31 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -70,5 +70,11 @@ gulp.task('less', function () {
     .pipe(gulp.dest(path.join(BUILD_LOCATION, 'css')));
 });
 
+// Default task is to build the site
 gulp.task('default', ['less', 'html']);
 
+// Watch for changes
+gulp.task('watch', function() {
+  gulp.watch('./src/less/*.less', ['less']);
+  gulp.watch(['./src/pages/*.html', './src/partials/*.handlebars', './src/md/*.md'], ['html']);
+});
\ No newline at end of file


Mime
View raw message