Comments (3)
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.
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.
@AleskiWeb, just published 0.2.0 to npm. Both top and bottom parents now supported. See readme.
from gulp-flatten.
Related Issues (9)
- includeParents use negative values as "except" HOT 3
- options example output contains "bootstrap.min.js" while the src glob is "**/*.css" HOT 1
- TypeError: Cannot read property 'reduce' of undefined HOT 2
- Replace deprecated dependency gulp-util
- Tag for current state?
- Flatten fails when directories contains a '.' HOT 2
- Handling files with equal names HOT 2
- Add support for filesystem depth HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-flatten.