GithubHelp home page GithubHelp logo

Where is /.liftoff/templates/ ? about liftoff HOT 10 OPEN

zas9vf avatar zas9vf commented on June 2, 2024
Where is /.liftoff/templates/ ?

from liftoff.

Comments (10)

zas9vf avatar zas9vf commented on June 2, 2024

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

from liftoff.

gfontenot avatar gfontenot commented on June 2, 2024

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.

from liftoff.

zas9vf avatar zas9vf commented on June 2, 2024

from liftoff.

gfontenot avatar gfontenot commented on June 2, 2024

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 man liftoffrc, since that's where the bulk of the documentation currently lives. If you still need help after looking through there, let me know and I can try to fill in the gaps.

from liftoff.

zas9vf avatar zas9vf commented on June 2, 2024

got it @gfontenot. I'll give it another shot

from liftoff.

zas9vf avatar zas9vf commented on June 2, 2024

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?

from liftoff.

gfontenot avatar gfontenot commented on June 2, 2024

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

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

No I don't think we support that right now.

from liftoff.

zas9vf avatar zas9vf commented on June 2, 2024

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

from liftoff.

gfontenot avatar gfontenot commented on June 2, 2024

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.

from liftoff.

zas9vf avatar zas9vf commented on June 2, 2024

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_*

from liftoff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.