wiledal / gulp-include

Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.
158 stars 68 forks source link

Not recursive? #11

Closed bruno-c closed 10 years ago

bruno-c commented 10 years ago

If we have a scenario where

File 1:

//= require myfile.js
//= require someotherfile.js
//= require ../somemodule/main.js

somemodule/main.js:

//= require something.js
//= require blah.js

We're not going to get all the files from somemodule/main.js are we?

bashmish commented 10 years ago

+1 can't use such relative paths

jblandry commented 10 years ago

+1 I'm looking for a gulp version of this : https://github.com/vanetix/grunt-includes and recursivity is the only thing missing for me

bruno-c commented 10 years ago

For those looking for this kind of functionality, you might want to look into Mincer

lukehorvat commented 10 years ago

:+1: for this. Not a fan of //= require_tree, so being able to do some sort of selective recursion would be nice.

scottmas commented 10 years ago

Just submitted a pull request that supports this, and globbing.

bruno-c commented 10 years ago

@scottmas :100:

headcr4sh commented 10 years ago

@scottmas Nice! Hope your PR will be merged soon! :+1:

alexmccabe commented 8 years ago

I can see that this has been merged, but for me this isn't working. I am using Gulp 3.9 and the latest version of gulp-include available. I just get //=require ../components/setUtils.js in the source code after compile.

My path through:

index.js -> [require] ../utils/pluginExists.js -> [require] ../components/setUtils.js

Am I doing something wrong here?