From c7c22d8e8e3dbbad05dfae0a20e6ef8958ff5a6f Mon Sep 17 00:00:00 2001 From: Deven Caron Date: Tue, 16 Oct 2018 17:20:21 -0400 Subject: [PATCH] added locomotive-scroll as dependencies, gulp-copy task WIP --- build/copy.js | 14 ++++++++++++++ gulpfile.babel.js | 2 ++ package.json | 3 ++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 build/copy.js diff --git a/build/copy.js b/build/copy.js new file mode 100644 index 0000000..2b68e16 --- /dev/null +++ b/build/copy.js @@ -0,0 +1,14 @@ +import gulp from 'gulp'; +import paths from '../mconfig.json'; +import error from './error.js'; + +function copy() { + return gulp + .src([`./node_modules/locomotive-scroll/assets/scripts/scroll/vendors/*`]) + .on('error', function(err) { + error(this, err); + }) + .pipe(gulp.dest(`${paths.scripts.src}/scroll/vendors`)); +} + +export default copy; diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 5d3ea6c..5b0ee45 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -5,6 +5,7 @@ import concat from './build/concat.js'; import svgs from './build/svgs.js'; import serve from './build/serve.js'; import watch from './build/watch.js'; +import copy from './build/copy.js'; import { buildStyles, buildScripts } from './build/build.js'; const compile = gulp.series(styles, scripts, svgs, concat); @@ -14,3 +15,4 @@ const build = gulp.series(compile, buildStyles, buildScripts); gulp.task('default', main); gulp.task('compile', compile); gulp.task('build', build); +gulp.task('copy', copy); diff --git a/package.json b/package.json index 16bcdb4..2c96562 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "author": "Locomotive ", "dependencies": { "pjax": "*", - "svg4everybody": "*" + "svg4everybody": "*", + "locomotive-scroll": "git@github.com:locomotivemtl/locomotive-scroll.git#deven-add-scroll" }, "devDependencies": { "gulp-concat": "*"