GithubHelp home page GithubHelp logo

Comments (3)

armed avatar armed commented on May 31, 2024

Hi, I got your point.

I'm thinking to handle negative numbers in includeParents for this purpose. Don't know whether is intuitive or I should make another option. What do you think, @AleskiWeb?

from gulp-flatten.

AleskiWeb avatar AleskiWeb commented on May 31, 2024

Hi @armed and thanks for the quick reply. Yeah I think that sounds intuitive enough, only other way would be to create a new method called options.IncludeParentsReverse but either way sounds about as intuitive. I just think if it was a different option then you could, for example:

really/complex/build/system/file.js

if you wanted to get the end result of

really/system/file.js

Then the negative numbers way wouldn't really allow for it. If it was a different option you could use:

.pipe(flatten({ includeParents: 1, includeParentsReverse: 1 }))

Not sure if that is a fair scenario but just something to consider? Either way would be fine for my particular instance.

from gulp-flatten.

armed avatar armed commented on May 31, 2024

@AleskiWeb, just published 0.2.0 to npm. Both top and bottom parents now supported. See readme.

from gulp-flatten.

Related Issues (9)

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.