FormidableLabs / formidable-react-component-boilerplate

MIT License
22 stars 2 forks source link

use meta file name whenever possible for generator ease #31

Closed boygirl closed 9 years ago

boygirl commented 9 years ago

cc/ @ryan-roemer

this sets up aliases for src/component/[FILE_NAME] so that there are fewer names to change on a generated project.

ryan-roemer commented 9 years ago

@boygirl -- First, CI needs a fixin'.

Second, I'm not sure this is the right approach -- we've now traded explicit file paths of something programmatically greppable (boilerplate-component and BoilerplateComponent) for something that's programmatically ambiguous (component and Component) and we have now substantially enhanced the webpack complexity involved, which will necessarily have to be undone by implementers.

Are you sure we can't just post-process for the generator with intelligent regex'ing on boilerplate-component and BoilerplateComponent?

boygirl commented 9 years ago

I'll give that a shot! If it doesn't pan out nicely, I'll change component and Component to something less ambiguous.