broccoli-jscodeshift
v1.0.2
Published
Broccoli plugin for running jscodeshift transforms
Downloads
4
Readme
broccoli-jscodeshift
Installation
yarn add broccoli-jscodeshift
Usage
// Brocfile.js
const JSCodeShift = require('broccoli-jscodeshift');
module.export = new JSCodeShift(['./src'], {
transform: 'https://raw.githubusercontent.com/mikaelbr/rm-debugger/master/index.js'
});
Arguments
input : (required) The input node, either a Broccoli tree or array of strings
options
.transform : (required) A path to the transform to execute
.resultsCallback : (optional) A callback to execute with the results from JSCodeShift`