added print folder to gulpfile install

This commit is contained in:
Joan Sanchez 2019-01-22 11:16:14 +01:00
parent ec1d36f8b9
commit 668da9ac12
1 changed files with 1 additions and 7 deletions

View File

@ -129,13 +129,7 @@ function install() {
const install = require('gulp-install'); const install = require('gulp-install');
const print = require('gulp-print'); const print = require('gulp-print');
let packageFiles = ['front/package.json']; let packageFiles = ['front/package.json', 'print/package.json'];
let services = fs.readdirSync(servicesDir);
services.forEach(service => {
let packageJson = `${servicesDir}/${service}/package.json`;
if (fs.existsSync(packageJson))
packageFiles.push(packageJson);
});
return gulp.src(packageFiles) return gulp.src(packageFiles)
.pipe(print(filepath => { .pipe(print(filepath => {
return `Installing packages in ${filepath}`; return `Installing packages in ${filepath}`;