Skip to content

Commit

Permalink
Updated NPM packages to latest versions and also updated Gulp file to…
Browse files Browse the repository at this point in the history
… use new 4.0 syntax for task dependencies.
  • Loading branch information
LearnWebCode committed Dec 19, 2018
1 parent 4c624f5 commit ee7d9de
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
13 changes: 7 additions & 6 deletions fictional-university/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ gulp.task('watch', function() {
gulp.watch('./**/*.php', function() {
browserSync.reload();
});
gulp.watch(settings.themeLocation + 'css/**/*.css', ['waitForStyles']);
gulp.watch([settings.themeLocation + 'js/modules/*.js', settings.themeLocation + 'js/scripts.js'], ['waitForScripts']);
gulp.watch(settings.themeLocation + 'css/**/*.css', gulp.parallel('waitForStyles'));
gulp.watch([settings.themeLocation + 'js/modules/*.js', settings.themeLocation + 'js/scripts.js'], gulp.parallel('waitForScripts'));
});

gulp.task('waitForStyles', ['styles'], function() {
gulp.task('waitForStyles', gulp.series('styles', function() {
return gulp.src(settings.themeLocation + 'style.css')
.pipe(browserSync.stream());
});
}))

gulp.task('waitForScripts', ['scripts'], function() {
gulp.task('waitForScripts', gulp.series('scripts', function(cb) {
browserSync.reload();
});
cb()
}))
38 changes: 20 additions & 18 deletions fictional-university/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,26 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "7.0.0-beta.46",
"@babel/preset-env": "7.0.0-beta.46",
"autoprefixer": "8.4.1",
"babel-loader": "^8.0.0-beta",
"browser-sync": "2.24.4",
"gulp": "3.9.1",
"gulp-postcss": "7.0.1",
"postcss-color-function": "4.0.1",
"postcss-hexrgba": "1.0.1",
"postcss-import": "11.1.0",
"postcss-mixins": "6.2.0",
"postcss-nested": "3.0.0",
"postcss-simple-vars": "4.1.0",
"webpack": "4.8.2"
"@babel/core": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"autoprefixer": "^9.4.2",
"babel-loader": "^8.0.4",
"browser-sync": "^2.26.3",
"gulp": "^4.0.0",
"gulp-cli": "^2.0.1",
"gulp-postcss": "^8.0.0",
"postcss-color-function": "^4.0.1",
"postcss-hexrgba": "^1.0.1",
"postcss-import": "^12.0.1",
"postcss-mixins": "^6.2.1",
"postcss-nested": "^4.1.0",
"postcss-simple-vars": "^5.0.1",
"webpack": "^4.27.1",
"webpack-cli": "^3.1.2"
},
"dependencies": {
"jquery": "3.3.1",
"normalize.css": "8.0.0",
"slick-carousel": "1.8.1"
"jquery": "^3.3.1",
"normalize.css": "^8.0.1",
"slick-carousel": "^1.8.1"
}
}
}

0 comments on commit ee7d9de

Please sign in to comment.