Skip to content
Permalink
Browse files

update package versions for web and switch to gulp 4

  • Loading branch information...
romannurik committed Nov 3, 2019
1 parent 3941ad1 commit df36b80d2318c08cc873467f056dcf75b7c87caf
Showing with 7,933 additions and 6,503 deletions.
  1. +9 −17 web/gulpfile.js
  2. +7,887 −6,453 web/package-lock.json
  3. +37 −33 web/package.json
@@ -6,19 +6,13 @@ const fs = require('fs');
const history = require('connect-history-api-fallback');
const merge = require('merge-stream');
const path = require('path');
const requireDir = require('require-dir');
const runSequence = require('run-sequence');
const recursiveReaddirSync = require('recursive-readdir-sync');
const source = require('vinyl-source-stream');
const swig = require('swig');
const swigExtras = require('swig-extras');
const through = require('through2');
const url = require('url');
const yaml = require('js-yaml');

const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
const exclude = require('gulp-ignore').exclude;

const DEV_MODE = false;

@@ -204,7 +198,12 @@ gulp.task('clean', cb => {
});


gulp.task('serve', ['build'], () => {
gulp.task('build', gulp.series('styles', gulp.parallel('html', 'scripts', 'copy', 'images')));

gulp.task('default', gulp.series('clean', 'build'));


gulp.task('serve', gulp.series('build', () => {
browserSync({
notify: false,
server: {
@@ -230,10 +229,10 @@ gulp.task('serve', ['build'], () => {
gulp.watch(['frontend/styles/**/*.{scss,css}'], ['styles', browserSync.reload]);
gulp.watch(['frontend/scripts/**/*.{js,json}'], ['scripts', browserSync.reload]);
gulp.watch(['frontend/images/**/*'], browserSync.reload);
});
}));


gulp.task('serve:dist', ['default'], () => {
gulp.task('serve:dist', gulp.series('default', () => {
browserSync({
notify: false,
server: {
@@ -244,12 +243,5 @@ gulp.task('serve:dist', ['default'], () => {
index: 'frontend/html/landing.html'
}
});
});


gulp.task('build', cb => {
runSequence('styles', ['html', 'scripts', 'copy', 'images'], cb);
});

}));

gulp.task('default', ['clean', 'build']);

0 comments on commit df36b80

Please sign in to comment.
You can’t perform that action at this time.