Giter Site home page Giter Site logo

Comments (10)

dbashford avatar dbashford commented on August 14, 2024

The convention for that is to put a .gitkeep file in the folder you want to keep. Could definitely recurse though all the folders removing any leftover .gitkeeps.

from skelmimosa.

Anachron avatar Anachron commented on August 14, 2024

Oh yeah, that's nice. I didn't knew about the .gitkeep until now, thanks!
So I agree that it's best to do it that way, since it's gits internal system.

But since it may take some time to process all folders, maybe it should be optional?
So those Skeletons that don't use the feature won't trigger a recursive scan of all subfolders.

from skelmimosa.

dbashford avatar dbashford commented on August 14, 2024

For skeletons it doesn't really take much time at all. You'd have to have a huge skeleton for it to take more than a second.

from skelmimosa.

Anachron avatar Anachron commented on August 14, 2024

Sounds nice. You agree with the feature being useful or should everyone just do it by himself for the Skeletons that use this kind of feature? I'm planning to do some future work with it but I would enjoy not asking my users to do it by theirself.

from skelmimosa.

dbashford avatar dbashford commented on August 14, 2024

It is definitely preferable to remove the .gitkeep files that would be necessary to deliver empty directories.

from skelmimosa.

Anachron avatar Anachron commented on August 14, 2024

I take that as a yes to implement it into Mimosa. =)
Do you need any more information or is this enough?

from skelmimosa.

dbashford avatar dbashford commented on August 14, 2024

I'm good. =) And yeah, it makes total sense.

from skelmimosa.

dbashford avatar dbashford commented on August 14, 2024

Added this to skelmimosa, pushed to npm and bumped version of skelmimosa in use for mimosa, pushed that too.

from skelmimosa.

Anachron avatar Anachron commented on August 14, 2024

Wow! Awesome.
Will put in some .gitkeep into my Marionette-Skeleton and test it out.
Just curious: Did you test this? There is no skeleton using .gitkeep as far as I have seen.

from skelmimosa.

dbashford avatar dbashford commented on August 14, 2024

I tested with local repo. You can do a mimosa skel:new /foo/bar/baz foldeName to test skeletons locally. Scanning the directory and removing .gitkeeps is sort of ignorant of how the directory got there, so it should be fine via GH hosted skeletons.

from skelmimosa.

Related Issues (15)

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.