Giter Club home page Giter Club logo

Comments (4)

yonaskolb avatar yonaskolb commented on May 23, 2024 2

Yeah, that's a good feature. Given that the groups are synced to disk anyway though, I thought it would be less important, because as far as I know the only downside to using groups as opposed to folder references is that you have to manually manage them, but that isn't an issue with XcodeGen. Would specific problem would this solve for you?

I could imaging it maybe looking like this:

targets:
    - name: MyTarget
    - sources:
        - path: MyTarget
          name: MyTarget
          type: group
        - path: ../MyDirectory
          type: folderReference

This would add an optional name property (that defaults to the directory name), and an optional type (which would default to group). Sources could still be written as an array of strings that use the defaults, or you could specific this more verbose form with more flexibility. And a single source string would still be allow as it is now for simple cases (sources: MyTarget)

Using the more verbose form would mean you could potentially define an excludes: */*.uglyFiles for group types as well

What do you think?

from xcodegen.

pepicrft avatar pepicrft commented on May 23, 2024

That's a good one @ImLaufderZeit 😛

from xcodegen.

ImLaufderZeit avatar ImLaufderZeit commented on May 23, 2024

@yonaskolb, that sounds just awesome.

... Given that the groups are synced to disk anyway though, ..... Would specific problem would this solve for you?

Well, in fact, if #24 has been solved - there is no problem, exactly as you say. But still it's good to have it as an option, because you can manage assets including directory structure which means you can use multiple same name files if parent directory is different.

with folder references you can do below:

Assets/Home/background.png
Assets/SingIn/background.png

while with groups you cannot, since those have identical filenames.

And plus, with folder references you do not have to re-generate a project every time you add a file.

from xcodegen.

yonaskolb avatar yonaskolb commented on May 23, 2024

Resolves in #151

from xcodegen.

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.