Skip to content

Instantly share code, notes, and snippets.

@JaminFarr
JaminFarr / gulp-to-gulp4-codemod.js
Created January 30, 2020 14:57 — forked from Saturate/gulp-to-gulp4-codemod.js
Convert Gulp 3 to Gulp 4 with a codemod
// Use https://astexplorer.net/
export default function transformer(file, api) {
const j = api.jscodeshift;
const root = j(file.source);
const gulpTaskCalls = root.find(j.CallExpression, {
callee: {
object: {
name: 'gulp'