mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
added locomotive-scroll as dependencies, gulp-copy task WIP
This commit is contained in:
14
build/copy.js
Normal file
14
build/copy.js
Normal file
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"author": "Locomotive <info@locomotive.ca>",
|
||||
"dependencies": {
|
||||
"pjax": "*",
|
||||
"svg4everybody": "*"
|
||||
"svg4everybody": "*",
|
||||
"locomotive-scroll": "git@github.com:locomotivemtl/locomotive-scroll.git#deven-add-scroll"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-concat": "*"
|
||||
|
||||
Reference in New Issue
Block a user