Last active
May 27, 2018 21:15
-
-
Save seleb/35f406ed49c290923cf6ea589d15c199 to your computer and use it in GitHub Desktop.
one-liner for generating a set of es6 import/exports from an s-tengine2 scenario
This file contains 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
assets.map(asset=>`export { default as ${asset.id} } from './${asset.src}'`).join(";\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment