Gulp.js is a JavaScript task runner which helps automate repetitive tasks like minification, compilation, unit testing, linting, etc.
1
vote
0answers
36 views
Gulpfile to build and serve a book off a manuscript
I have a gulpfile.js that compiles the manuscript (resume project) and serves it as a book on the browser using browser-sync.
How to optimize this ...
3
votes
0answers
65 views
Gulpfile Optimizations
I'm looking for some advice in how well this gulp file is written out and any suggestions on improving it. Any insight is appreciated
...
2
votes
0answers
194 views
Gulp file for Jade, SASS, Optimize-html, jekyll and more
I have the following gulpfile which I use for development. It used to be a simple gulpfile with just jade compiling, sass, jekyll-rebuild, etc. but then I decided to add HTML Optimization my gulpfile ...
1
vote
1answer
88 views
Gulp task to increment a major, minor, or patch level of the version number of the last build
Working codepen: http://codepen.io/leongaban/pen/oxwLzE?editors=1010
The function below takes in user entered text through the cli: V=patch gulp build
It then ...
3
votes
1answer
1k views
Gulpfile.js optimization and image caching
I'm trying to write gulpfile.js, which will follow modern best practices for optimization. This project includes jekyll, SASS and some image optimization tasks. I'm pretty new to JavaScript and Gulp, ...
1
vote
1answer
165 views
Managing JS assets
My main concern in this script is the 'js' task. Each time I change 'frontend.js' I concat and minify 'jquery.js', 'bootstrap.js', and frontend.js. I'm only really editing one file, yet on every save ...
7
votes
1answer
2k views
Optimizing gulpfile.js
I'm fairly new to JavaScript and Gulp. I was following this article for creating my gulpfile, trying to follow best practices, but it seems to me that this peace of code can be optimized and written ...
1
vote
0answers
309 views
Gulp file for a simple SVG/Sass project
Here's a simple gulpfile.js I'm using on a very simple project which basically consists of an animation built with Sass, SVG and very little JS.
...