[22:43:55] Finished 'css jsx img default' from default 19 ms
>
Hello @lifeispeachy301, thanks! :) And apologies for the delay.
Yes you could load the gulpfiles separately or have an instance for each sub project. You could also do this with gulp but would have to namespace the tasks yourself meaning gulp.task('sub1:css', [Function]); gulp.task('sub2:jade', [Function]);
etc. Could you share the project's structure and what you want to achieve? This way a I could write you a better approach for it.
./gulpfile.js
could look like// main instance
var gulp = require('gulp-runtime').create();
// each folder chould just export a function
var api = require('./api/gulpfile');
var cms = require('./cms/gulpfile');
var installations = require('./installations/gulpfile');
// stack all the exported functions (in parallel)
var stack = gulp.stack(api, cms, installations);
// run them
stack(/* args */);
// ./api/gulpfile.js, ./cms/gulpfile.js, etc.
var gulp = require('gulp-runtime').create('api');
gulp.task('styles', function(){
return gulp.src(__dirname + '/**/*.{scss,styl}')
.pipe(gulp.dest('./build/'));
});
gulp.task('templates', function(){
return gulp.src(__dirname + '/**/*.{jade,hbs}')
.pipe(gulp.dest('./build/'));
});
// make a stack function (to be run in the main gulpfile)
var stack = gulp.stack('styles templates');
// and export it
module.exports = stack;
gulp.stack
always returns a function
gulp
from that snippet above you would have to change this
var stack = gulp.stack('styles templates');
stack(); // run it <--- added part
// and export it
module.exports = stackt;