This commit is contained in:
Soledad Penades 2014-01-15 21:15:37 +00:00
Родитель 0082e1c976
Коммит 60ea3fccfd
1 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -12,18 +12,17 @@ gulp.task('default', function() {
var projectGulp = file.path + '/gulpfile.js';
var projectBasename = path.basename(file.path);
console.log(projectGulp);
var cwd = process.cwd();
// call build script in that directory
console.log('PROCESSING ' + projectBasename);
// Call each project's build script, but change to its directory first
// Otherwise gulp won't find the files we want it to process!
process.chdir(file.path);
require(projectGulp).run('default');
process.chdir(cwd);
console.log('done with ' + projectGulp);
// TODO collect project/dist/archive.zip file onto our dist/{base}.zip
// Now collect project/dist/archive.zip file onto our dist/{base}.zip
gulp.src(file.path + '/dist/archive.zip')
.pipe(rename(projectBasename + '.zip'))
.pipe(gulp.dest('dist'));