Comments (7)
Can you provide a clearer example? Not sure what you're asking
from gulp.
I want to fork on a event and process files within that fork thus for the above, given:
src/{a,b}/{foo,bar}.coffee
would produce:
src/{a,b}.js
from gulp.
Why not just use two streams? I'm not sure I see the use case or that it's common enough to add what seems like a hefty feature
from gulp.
can you show me an example? do you mean two tasks? because I would need a task per directory and per every other directory with a *.coffee file within it which would quickly become painful
from gulp.
For the example in your last post:
gulp.task('coffee', function() {
var dirs = ['a','b'];
dirs.forEach(function(d){
gulp.src('./src/'+d+'/**.coffee')
.pipe(coffee())
.pipe(jshint())
.pipe(concat(d+'.js'))
.pipe(gulp.dest('./static'));
});
});
from gulp.
the coffee files would be spread over many dir's but I guess I could read the dirs at runtime, I never thought of that, thanks.
from gulp.
Gulp tries to find a good point between sugar and simplicity. Features like this we will usually do it as code and not include it in the core library. If you find yourself doing something tedious over and over feel free to write a userland module that simplifies it and tag it as a gulp plugin!
from gulp.
Related Issues (20)
- Gulp links to protestware - blocks pipelines HOT 1
- TypeScript Module `gulpfile.mts` Not Supported HOT 2
- `npm audit` vulnerability for `glob-parent` package
- Watchers do not detect specific files
- Curly braces in glob without commas do not work HOT 2
- unlink not work HOT 2
- Dependency unset-value has a Prototype Pollution vulnerability
- Upgrade Gupl-cli version to 2.3.0 HOT 1
- gulp.src *.123456 vs *.1234567
- error TS2305: Module '"gulp"' has no exported member 'parallel' HOT 2
- Atualizacao Gulp Util
- gulp does not work if base path has brackets [ ] HOT 1
- Bump glob-watcher to 6.0.0
- Update glob-version to lates major version HOT 1
- Error: Cannot find module 'gulp-cli' HOT 2
- Bun support HOT 2
- Gulp 4: How do I prevent from duplicated dependent task execution? #1392 HOT 1
- Request to provide a more beginner-friendly tutorial on gulp website. HOT 1
- CVE-2020-2869
- Audit Vulnerability , security Report for "glob-parent" Package in `gulp` package
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.