Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update node packages and gulpfile #701

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var autoprefixer = require('gulp-autoprefixer');
var plumber = require('gulp-plumber');
const gulp = require('gulp');
const sass = require('gulp-sass');
const browserSync = require('browser-sync');
const autoprefixer = require('gulp-autoprefixer');
const plumber = require('gulp-plumber');
let reload = browserSync.reload;

var config = {
const config = {
djangoHost: 'localhost',
djangoPort: 8000,
jsPort: 8001,
Expand Down Expand Up @@ -42,8 +42,8 @@ gulp.task('watch', function () {
}
});

gulp.watch(config.watchSassFiles, ['styles']);
gulp.watch(config.watchSassFiles, gulp.series('styles'));
gulp.watch(config.watchHtmlFiles).on('change', reload);
});

gulp.task('default', ['styles', 'watch']);
gulp.task('default', gulp.series('styles', 'watch'));
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Django Suit development tools",
"author": "Kaspars Sprogis",
"devDependencies": {
"browser-sync": "^2.17.1",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.3.2"
"browser-sync": "^2.24.6",
"gulp": "^4.0.0",
"gulp-autoprefixer": "^5.0.0",
"gulp-plumber": "^1.2.0",
"gulp-sass": "^4.0.1"
}
}
Loading