A Front End development Gulp.js based workflow. 🚀
Updated dependencies. Refactored gulpfile.js Renamed jade to pug.
Update dependencies.
- [email protected]
+ browser-sync2.12.3
- [email protected]
+ [email protected]
- [email protected]
+ [email protected]
- [email protected]
+ [email protected]
- [email protected]
+ [email protected]
- [email protected]
+ [email protected]
- [email protected]
+ [email protected]
- [email protected]
+ [email protected]
Modified styles and templates to create a new and a better website and the web boilerplate of starterkit - starterkit website
Removed gulp-minify-css for gulp-cssnano as minify-css is deprecated.
- gulp-minify-css
+ gulp-cssnano
Created npm run dev, build, optimize and deploy to allow users list the gulp tasks without opening the file and run the tasks with the npm run scriptname
.
"scripts": {
"dev": "gulp",
"build": "gulp build",
"optimize": "gulp optimize",
"deploy": "gulp deploy"
},
Update dependencies to the last version.
[email protected]>6.1.1 [email protected]>2.9.12 [email protected]>2.1.1-b [email protected] -> 2.1.0 [email protected]>2.4.0
gulp critical
: This task extracts & inlines critical-path (above-the-fold) CSS from HTML using critical.
gulp.task('critical', function () {
return gulp.src(routes.files.htmlFiles)
.pipe(critical({
base: baseDirs.dist,
inline: true,
html: routes.files.htmlFiles,
css: routes.files.styleCss,
ignore: ['@font-face',/url\(/],
width: 1300,
height: 900
}))
.pipe(plumber({
errorHandler: notify.onError({
title: "Error: Critical failed.",
message:"<%= error.message %>"
})
}))
.pipe(gulp.dest(baseDirs.dist))
.pipe(notify({
title: 'Critical Path completed!',
message: 'css critical path done!'
}));
});
Added critical
to optimize
task.
Created a baseDirs
object to define the baseDirs of the project.
var baseDirs = {
dist:'dist/',
src:'src/',
assets: 'dist/assets/'
};
Updated dependencies:
Fixed image-min notification, update dependencies.
Updated devDependencies, modified the gh-page, updated description of package.json.
First stable release of the starterkit.