You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apex.apache.org by an...@apache.org on 2015/09/07 19:05:14 UTC

[2/5] incubator-apex-site git commit: add copy:js gulp task

add copy:js 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/c6c0ea08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/tree/c6c0ea08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/diff/c6c0ea08

Branch: refs/heads/master
Commit: c6c0ea0888b2638df671c5d66d872e88f80ddd73
Parents: 0a2dded
Author: Andy Perlitch <an...@gmail.com>
Authored: Sun Sep 6 10:08:14 2015 -0700
Committer: Andy Perlitch <an...@gmail.com>
Committed: Sun Sep 6 10:08:14 2015 -0700

----------------------------------------------------------------------
 gulpfile.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/c6c0ea08/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index b67dc31..2858de0 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -70,8 +70,16 @@ gulp.task('less', function () {
     .pipe(gulp.dest(path.join(BUILD_LOCATION, 'css')));
 });
 
+// Copies necessary dependencies to dist
+gulp.task('copy:js', function() {
+  return gulp.src([
+    './bower_components/bootstrap/dist/js/bootstrap.min.js'
+  ])
+    .pipe(gulp.dest(path.join(BUILD_LOCATION, 'js')));
+});
+
 // Default task is to build the site
-gulp.task('default', ['less', 'html']);
+gulp.task('default', ['less', 'html', 'copy:js']);
 
 // Watch for changes
 gulp.task('watch', function() {