How to use the codemod-cli.runTransform function in codemod-cli

To help you get started, we’ve selected a few codemod-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-codemods / ember-angle-brackets-codemod / bin / cli.js View on Github external
(async () => {
  await gatherTelemetryForUrl(process.argv[2], analyzeEmberObject);

  require('codemod-cli').runTransform(
    __dirname,
    'angle-brackets' /* transform name */,
    process.argv.slice(2) /* paths or globs */,
    'hbs'
  );
})();
github ember-codemods / ember-native-class-codemod / bin / cli.js View on Github external
(async () => {
  await gatherTelemetryForUrl(process.argv[2], analyzeEmberObject);

  require('codemod-cli').runTransform(
    __dirname,
    'ember-object',
    process.argv.slice(2) /* paths or globs */
  );
})();

codemod-cli

a command line tool for generating, testing, and publishing codemods

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis