Created
June 15, 2017 08:46
-
-
Save romain-h/31c3a01c89a59625bfdc2b0b70f18709 to your computer and use it in GitHub Desktop.
[codemods - medium post]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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