formatting + clean up
This commit is contained in:
Родитель
0082e1c976
Коммит
60ea3fccfd
11
gulpfile.js
11
gulpfile.js
|
@ -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'));
|
||||
|
|
Загрузка…
Ссылка в новой задаче