# Gulp

Gulp is a JavaScript toolkit for automating development workflows and composing build pipelines.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## A Gulp Workflow for Frontend Development Automation

DevFeed: [A Gulp Workflow for Frontend Development Automation](<https://devfeed.tech/articles/a-gulp-workflow-for-frontend-development-automation-31233.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/a-gulp-workflow-for-frontend-development-automation>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-08-15T22:25:00Z

Content type: tutorial

Language: en

Sources: [nystudio107](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Gulp](<https://devfeed.tech/topics/gulp.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [workflow automation](<https://devfeed.tech/topics/workflow-automation.md>), [CSS](<https://devfeed.tech/topics/css.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [make](<https://devfeed.tech/topics/make.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [build](<https://devfeed.tech/tags/build.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cool](<https://devfeed.tech/tags/cool.md>), [css](<https://devfeed.tech/tags/css.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [development](<https://devfeed.tech/tags/development.md>), [es6](<https://devfeed.tech/tags/es6.md>), [faster](<https://devfeed.tech/tags/faster.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [frontend-development](<https://devfeed.tech/tags/frontend-development.md>), [gulp](<https://devfeed.tech/tags/gulp.md>), [helps](<https://devfeed.tech/tags/helps.md>), [here-s](<https://devfeed.tech/tags/here-s.md>), [insights](<https://devfeed.tech/tags/insights.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [scss](<https://devfeed.tech/tags/scss.md>), [stuff](<https://devfeed.tech/tags/stuff.md>), [tool](<https://devfeed.tech/tags/tool.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

A tutorial explaining why frontend workflow automation is useful and how Gulp can assemble a website's assets. It describes tasks for processing CSS and JavaScript, including SCSS compilation, browser prefixing, source maps, dependency inclusion, combining, minification, transpilation, and uglification.

### Source excerpt

Gulp is a workflow automation tool that helps you build cool stuff faster; here's how to use it for frontend development.

## A Better package.json for the Frontend

DevFeed: [A Better package.json for the Frontend](<https://devfeed.tech/articles/a-better-package-json-for-the-frontend-31231.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/a-better-package-json-for-the-frontend>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2016-12-23T19:46:00Z

Content type: tutorial

Language: en

Sources: [nystudio107](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Front end](<https://devfeed.tech/topics/frontend.md>), [Package Management](<https://devfeed.tech/topics/package-management.md>), [npm](<https://devfeed.tech/topics/npm.md>), [Yarn](<https://devfeed.tech/topics/yarn.md>), [Gulp](<https://devfeed.tech/topics/gulp.md>)

Tags: [better](<https://devfeed.tech/tags/better.md>), [consider](<https://devfeed.tech/tags/consider.md>), [days](<https://devfeed.tech/tags/days.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [frontend-development](<https://devfeed.tech/tags/frontend-development.md>), [gulp](<https://devfeed.tech/tags/gulp.md>), [here-s](<https://devfeed.tech/tags/here-s.md>), [insights](<https://devfeed.tech/tags/insights.md>), [like](<https://devfeed.tech/tags/like.md>), [mandatory](<https://devfeed.tech/tags/mandatory.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [npm](<https://devfeed.tech/tags/npm.md>), [npm-packages](<https://devfeed.tech/tags/npm-packages.md>), [package-json](<https://devfeed.tech/tags/package-json.md>), [setup](<https://devfeed.tech/tags/setup.md>), [tools](<https://devfeed.tech/tags/tools.md>), [webdev](<https://devfeed.tech/tags/webdev.md>), [webpack](<https://devfeed.tech/tags/webpack.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

This article explains how to use package.json as a centralized manifest for a website's frontend packages and workflow tooling. It discusses replacing Bower with npm, and notes that Yarn can manage the same registry with deterministic installs through yarn.lock.

### Source excerpt

Frontend workflow tools like gulp are almost mandatory for webdev these days; here's what I consider to be a better package.json setup

## Jekyll and Gulp workflow

DevFeed: [Jekyll and Gulp workflow](<https://devfeed.tech/articles/jekyll-and-gulp-workflow-37301.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/jekyll-gulp-workflow/>)

Author: Stanko

Published: 2016-02-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [Gulp](<https://devfeed.tech/topics/gulp.md>), [Jekyll](<https://devfeed.tech/topics/jekyll.md>), [Sass](<https://devfeed.tech/topics/sass.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [development](<https://devfeed.tech/tags/development.md>), [es6](<https://devfeed.tech/tags/es6.md>), [gulp](<https://devfeed.tech/tags/gulp.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jekyll](<https://devfeed.tech/tags/jekyll.md>), [sass](<https://devfeed.tech/tags/sass.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

This tutorial describes a Jekyll development workflow that uses Gulp to compile and watch SASS and JavaScript, run a local Jekyll server, proxy it through BrowserSync, and reload the browser on changes. The author notes that the setup may be outdated because they no longer use Jekyll.

### Source excerpt

Please note that I'm not using Jekyll anymore, so this post might be outdated. Update, November 2017 # I don't use this setup anymore, it might be outdated, proceed with caution. Original post # As you probably know this blog is powered by Jekyll. It is a really nice platform, but it lacks a few things I'm used to during development. First one is live reload on file changes (and injecting CSS), using SASS, autoprefixer, ES6... I tried to find a boilerplate, but everything I found didn't match my needs. Usually people would run gulp tasks for SASS and JavaScript files, and on change run jekyll build, which is insanely slow. They would use BrowserSync to serve _site folder. So I did what programmers do - written my own. I quickly made usual gulp tasks: styles - to compile SASS and autoprefix it scripts - to transpile ES6 goodness, and concatenate JavaScript files serve - to start local server, watch for changes and auto reload First thing I did is that I was running jekyll serve in one terminal, and gulp serve with BrowserSync in the other. This was working decently, but I wanted to run only one command, and let the tasks do everything for me. That is where node child process comes in. import childProcess from 'child_process'; const spawn = childProcess.spawn; gulp.task('jekyll', function (){ const jekyll = spawn('jekyll', ['serve'], { stdio: 'inherit' }); }); This task spawns a child process from gulp. Nice thing is that we can start it, and gulp will kill it on exit. Now we have up and running Jekyll server, and proxy it to BrowserSync. But darn, injecting CSS files didn't really work. Server was expeting CSS file to come from /css/style.css, but browserSync.stream in gulp pipe would inject it from the _sass folder. I solved this by copying css file to the .tmp/css and adding .tmp to the serveStatic option of the BrowserSync. One thing I should mention, that I keep my SASS files in the _sass folder, and JavaScript in the _js one. Gulp watches changes on SASS/JS, and

## A Gulp-Based External SVG Symbol Sprite Icon System

DevFeed: [A Gulp-Based External SVG Symbol Sprite Icon System](<https://devfeed.tech/articles/a-gulp-based-external-svg-symbol-sprite-icon-system-28847.md>)

Original publisher: [Read original article](<https://una.im/svg-icons/>)

Published: 2016-01-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Una Kravets](<https://devfeed.tech/sources/una-kravets.md>)

Topics: [SVG](<https://devfeed.tech/topics/svg.md>), [Gulp](<https://devfeed.tech/topics/gulp.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [SVG animations in CSS](<https://devfeed.tech/topics/svg-animations-in-css.md>), [web design](<https://devfeed.tech/topics/web-design.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [design](<https://devfeed.tech/tags/design.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [icons](<https://devfeed.tech/tags/icons.md>), [svg](<https://devfeed.tech/tags/svg.md>), [web-design](<https://devfeed.tech/tags/web-design.md>)

### AI overview

This article presents a Gulp-based external SVG symbol sprite system for flexible web icon management. It explains why SVG icons are suitable for scalable, cacheable assets that can be restyled and edited with CSS, and describes the benefits and security constraints of using an external sprite.

### Source excerpt

Icons are essential to most pattern libraries and web design systems. Let's take a look at a scalable approach!

## 2015 Year In Review & 2016 Resolutions

DevFeed: [2015 Year In Review & 2016 Resolutions](<https://devfeed.tech/articles/2015-year-in-review-2016-resolutions-28726.md>)

Original publisher: [Read original article](<https://una.im/2015-review/>)

Published: 2015-12-28T00:00:00Z

Content type: opinion

Language: en

Sources: [Una Kravets](<https://devfeed.tech/sources/una-kravets.md>)

Topics: [software-development](<https://devfeed.tech/topics/software-development.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Sass](<https://devfeed.tech/topics/sass.md>), [Gulp](<https://devfeed.tech/topics/gulp.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [developer](<https://devfeed.tech/tags/developer.md>), [development](<https://devfeed.tech/tags/development.md>), [github](<https://devfeed.tech/tags/github.md>), [guide](<https://devfeed.tech/tags/guide.md>), [retrospective](<https://devfeed.tech/tags/retrospective.md>), [sass](<https://devfeed.tech/tags/sass.md>), [year-in-review](<https://devfeed.tech/tags/year-in-review.md>)

### AI overview

A personal retrospective of 2015 projects, talks, writing, podcasts, and work at IBM, followed by resolutions for 2016. The article highlights web and front-end experiments, Sass and Gulp tools, CSS libraries, pattern libraries, prototypes, and community activities.

### Source excerpt

It's time for my annual reflection and goal resetting! It's been a crazy year for sure.

## 2015 Resolutions

DevFeed: [2015 Resolutions](<https://devfeed.tech/articles/2015-resolutions-28725.md>)

Original publisher: [Read original article](<https://una.im/2015-resolutions/>)

Published: 2014-12-31T00:00:00Z

Content type: article

Language: en

Sources: [Una Kravets](<https://devfeed.tech/sources/una-kravets.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Sass](<https://devfeed.tech/topics/sass.md>), [Gulp](<https://devfeed.tech/topics/gulp.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Angular](<https://devfeed.tech/topics/angular.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Express](<https://devfeed.tech/topics/express.md>), [Meteor](<https://devfeed.tech/topics/meteor.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Vim](<https://devfeed.tech/topics/vim.md>), [WebGL](<https://devfeed.tech/topics/webgl.md>)

Tags: [3d-graphics](<https://devfeed.tech/tags/3d-graphics.md>), [angular](<https://devfeed.tech/tags/angular.md>), [blog](<https://devfeed.tech/tags/blog.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [express](<https://devfeed.tech/tags/express.md>), [github](<https://devfeed.tech/tags/github.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [make](<https://devfeed.tech/tags/make.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [personal](<https://devfeed.tech/tags/personal.md>), [post](<https://devfeed.tech/tags/post.md>), [published](<https://devfeed.tech/tags/published.md>), [review](<https://devfeed.tech/tags/review.md>), [sass](<https://devfeed.tech/tags/sass.md>), [testing](<https://devfeed.tech/tags/testing.md>), [vim](<https://devfeed.tech/tags/vim.md>), [webgl](<https://devfeed.tech/tags/webgl.md>)

### AI overview

A personal review of 2014 and a set of goals for 2015. The author describes projects, travel, speaking, open-source contributions, and progress in JavaScript, Sass, Gulp, Meteor.js, Express.js, Angular, Node.js, testing, Vim, WebGL, and 3D graphics.

### Source excerpt

This is a personal post about my 2014 in review (because a lot happened) and my goals for 2015. Happy New Year!

## Setting up PageSpeed Insights to test Performance Locally via Gulp

DevFeed: [Setting up PageSpeed Insights to test Performance Locally via Gulp](<https://devfeed.tech/articles/setting-up-pagespeed-insights-to-test-performance-locally-via-gulp-28798.md>)

Original publisher: [Read original article](<https://una.im/gulp-local-psi/>)

Published: 2014-12-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [Una Kravets](<https://devfeed.tech/sources/una-kravets.md>)

Topics: [Gulp](<https://devfeed.tech/topics/gulp.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Google](<https://devfeed.tech/topics/google.md>), [Website](<https://devfeed.tech/topics/website.md>)

Tags: [google](<https://devfeed.tech/tags/google.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [performance](<https://devfeed.tech/tags/performance.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

This tutorial explains how to integrate Google PageSpeed Insights into an existing Gulp project so performance scores can be viewed in the terminal. It uses ngrok to expose a locally hosted website for testing without deploying it to a live server.

### Source excerpt

This is a walk through of how to set up Google PageSpeed Insights within your existing gulp project. This way, you can get your page speed score information within your terminal without first needing to push your site to a live server.

## An introduction to Gulp

DevFeed: [An introduction to Gulp](<https://devfeed.tech/articles/an-introduction-to-gulp-52438.md>)

Original publisher: [Read original article](<http://www.jackfranklin.co.uk/blog/an-intro-to-gulp/>)

Published: 2014-02-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jack Franklin](<https://devfeed.tech/sources/jack-franklin.md>)

Topics: [Gulp](<https://devfeed.tech/topics/gulp.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [npm](<https://devfeed.tech/topics/npm.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [IO](<https://devfeed.tech/topics/io.md>)

Tags: [gulp](<https://devfeed.tech/tags/gulp.md>), [introduction](<https://devfeed.tech/tags/introduction.md>)

### AI overview

Gulp uses Node streams to pass files matched by a glob through plugins, with tasks defined as JavaScript functions in `Gulpfile.js`. The excerpt demonstrates installing Gulp and `gulp-jshint`, creating a `lint` task that pipes `src/*.js` through JSHint and its reporter, setting `lint` as the default task, and watching source files to rerun it on changes. It contrasts this with Grunt's configuration-heavy approach: Grunt plugins often define tasks, while Gulp plugins provide methods and the author defines the tasks. The author leaves the choice between them to project needs and personal preference.

### Source excerpt

Gulp has been doing the rounds recently online through Twitter as an alternative to Grunt in the JS build tooling space. Whilst I am a huge fan of Grunt, looking at other options never hurts, so I thought a quick introduction to Gulp might be fun to do. Gulp works with Node streams. Whereas Gruntfiles can often become very difficult to maintain and large, Gulp tries to avoid too much configuration and keep things simple. The base idea is that you glob for some files, and pipe them through a plugin, changing the output in some way or another. If you need a refresher on streams, the Streams handbook is the best place to go. You install Gulp just like you'd expect, through npm: $ npm install -g gulp Much like Grunt looks for a Gruntfile, Gulp will look for a file called Gulpfile.js. You'll also need to install Gulp locally in the project too: $ npm install --save-dev gulp Gulp comes with a very minimal set of tools, and everything else comes in the form of plugins. We're going to use the JSHint plugin, so let's install that too: $ npm install --save-dev gulp-jshint Now we're ready to write our Gulpfile.js. It starts off by requiring gulp and jshint: var gulp = require("gulp"); var jshint = require("gulp-jshint"); Whereas with Grunt we have to call initConfig, passing in a huge object full of configuration, in Gulp we define tasks by calling gulp.task. This takes two arguments, the name of a task, and a function which will be run when you call that task. In the case of Grunt, most plugins will define a task for you (For example, the Grunt JSHint plugin defines the grunt jshint task for you), but in gulp plugins just provide methods to hook into. The tasks are all defined by you. Let's look at an example of a task. Here I've written a "lint" task that will run JSHint against all files in the root of the src/ directory: gulp.task("lint", function() { gulp.src("./src/*.js") .pipe(jshint()) .pipe(jshint.reporter("default")); }); Firstly, gulp.src will return a representatio