I should had my mouth shut, it will take some more time. Is looking really good.
If anyone is interested go to runtime/context.js and the manifold package
context.js
you have a repl
series one two parallel one two
[22:37:10] Started 'default' in parallel
[22:37:10] Started 'css jsx img default' in series from default
[22:37:10] - Finished 'css' in 8.06 ms
[22:37:10] 'gulp-runtime' found an error in 'jsx'
[22:37:10] Parse Error: Unespected Identifier
at Stack.handle (/Users/stringparser/code/gulp-runtime/example.js:8:11)
at /Users/stringparser/code/runtime/index.js:132:32
at b (domain.js:183:18)
at asyncRunner (/Users/stringparser/code/runtime/node_modules/async-done/index.js:38:18)
at process._tickDomainCallback (node.js:486:13)
[22:37:10] - Finished 'jsx' in 2.16 ms
[22:37:10] - Finished 'img' in 4.1 ms
[22:37:10] - Finished 'default' in 117 μs
[22:37:10] Finished 'css jsx img default' from default 16 ms
[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