Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save romain-h/31c3a01c89a59625bfdc2b0b70f18709 to your computer and use it in GitHub Desktop.
Save romain-h/31c3a01c89a59625bfdc2b0b70f18709 to your computer and use it in GitHub Desktop.
[codemods - medium post]
// Create imports and definitions
const files = [];
const names = [];
store.forEach((imports, type) => {
imports.forEach(imp => {
files.push(j.literal(`src/base/${type}/${kebabCase(imp)}`));
names.push(j.identifier(imp));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment