-
Notifications
You must be signed in to change notification settings - Fork 105
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
Where is /.liftoff/templates/ ? #294
Comments
any docs or examples on how to create additional folders and files that are bound to a custom scheme would be greatly helpful as that is what I'm working towards |
Hey, sorry if the current documentation is confusing. I think you might find more information in That being said, I'm not sure that I follow your second question, but if you don't mind expanding on what you're trying to do a bit more I'll help as much as I can. |
Thanks for getting back to me!
I was able to figure out the templates folder thing. I created the liftoff/templates path as you said and threw my templates in there and it worked.
Ultimately, what I'm trying to do is create a new folder group for my UITests with folders with custom template files that I created. Any idea on how to create custom folder groups with liftoff?
I appreciate the help
…Sent from my iPhone
On Sep 20, 2018, at 11:12 AM, Gordon Fontenot ***@***.***> wrote:
Hey, sorry if the current documentation is confusing. I think you might find more information in man liftoffrc.
That being said, liftoff doesn't create that directory for you. If you want to override the current templates you would create that directory (or a similarly named directory in the folder you're running liftoff from) and then add your templates there.
I'm not sure that I follow your second question, but if you don't mind expanding on what you're trying to do a bit more I'll help as much as I can.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yep, we should have enough documentation on that. See this section of the README, you'll want to create a custom template like we do in the default config. I highly recommend reading through |
got it @gfontenot. I'll give it another shot |
I was looking through your code and I see that your project_configuration.rb has test_target_templates and app_target_templates as properties which basically drives the config for setting up folder structures for app and unit test. Is there a way to pass an additional property like 'ui_test_target_templates' for example? I'm assuming I'd need something like that to set up UITest folder structure also your default config hyperlink in your comment above points to the same URL as the README, was this intentional? |
Oops, no, I meant this link: https://github.com/liftoffcli/liftoff/blob/master/defaults/liftoffrc
No I don't think we support that right now. |
I'm not the strongest Ruby guy but if I wanted to contribute to solve for this, how could I do that? I'd love to give it a shot |
I'm not sure that I have a strong opinion on how to add this as a feature, honestly. The simplest thing to do would probably be to add it alongside the other template types, but that also doesn't scale super well and would make the assumption that the user will use XCUITest for their "ui tests". I'm not sure how I feel about that. I'm super open to hearing how you think it should work as a user and going from there. |
yeah I gotta look into your code a bit deeper but I was thinking of creating a new template type property in the project_configuration.rb file and doing a similar thing like what you did for test_target_templates configuration. I've noticed that UI and Unit tests in XCode kinda behave the same so I'm assuming the liftoff configuration for something like an additional 'ui_test_target_templates' config property would follow the same set up like what you've done for test_target_* |
Hey,
I successfully installed Liftoff but I can't find that templates folder on my machine. I'm trying to create a new template where I can have an additional folder and files. Closed issues say its at ~/.liftoff/templates/ but that doesn't exist on my machine?
Where else could it be?
I'd appreciate the help,
Thanks
The text was updated successfully, but these errors were encountered: