-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to have templates for index, stories and test files? #26
Comments
Hi @nealoke ! Thanks a lot for your feedback 🙂 |
Waaw that was fast 😄 Basically I'm trying to create my own templates for all possible files (eg styles, stories, tests, index and componentName.js) I'm using the following My
Template folder (ccarc/templates)
Expected output
Actual output
|
So, the problem is the naming of the file after the choice of component name? |
@CVarisco see updated explanation, it was a mess before sorry! |
@nealoke Thanks a lot for your information! There is a bug on the copy of the templates files to the destination folder. But for clarification, the |
@CVarisco Thank you so very much for this tool and for looking into it :) I will have a look but I really am not familiar with contributing to projects 😢 . I've stripped the Also be aware that the |
@CVarisco I've figured out where it is going wrong, you mind pushing this to NPM? The issue lies in the Current
So this does not replace the Fixed
|
See #27 👍 My first contrib to anything opensourced 🔥 🚀 😄 |
Woooooo 🔝 🎉 I'm very happy for you 🙂 ! I published a new version (v0.8.5) on NPM with your fix! |
Is it possible to also write templates for
index.js
,template.stories.js
andtemplate.spec.js
? When I try it with my current templates it does not output it correctly or am I doing it wrong?I can't find that much docs on how to do this, nor how to use the
COMPONENT_NAME
in animport COMPONENT_NAME from './COMPONENT_NAME.js
The text was updated successfully, but these errors were encountered: