Commit ae196b13 authored by Артем Иксанов's avatar Артем Иксанов
Browse files

add vendor scripts

parent 4ac014fe
......@@ -6,6 +6,13 @@ const gulp = require('gulp'),
minify = require('gulp-minify'),
fs = require('fs');
const vendorjs = [
'node_modules/sourcebuster/dist/sourcebuster.js',
'node_modules/js-cookie/src/js.cookie.js',
'node_modules/inputmask/dist/jquery.inputmask.js',
'node_modules/@terwanerik/scrolltrigger/dist/ScrollTrigger.js'
];
const modulejs = [
'src/js/scroll-to.js',
'src/js/analytics.js',
......@@ -13,9 +20,11 @@ const modulejs = [
'src/js/animation.js'
];
const scripts = vendorjs.concat(modulejs);
const build = gulp.series(
gulp.parallel(
() => gulp.src(modulejs).on('error', (err) => global.errorHandler(err))
() => gulp.src(scripts).on('error', (err) => global.errorHandler(err))
.pipe(concat('mjlanding.js'))
.pipe(gulp.dest('public/js'))
.pipe(minify({
......
{
"name": "mjlanding",
"version": "0.1.0",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "https://git.meiji.media/meiji/js-landing-app"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment