Gulp fixes

This commit is contained in:
Juan Ferrer 2019-01-09 10:24:42 +01:00
parent 244ea39f92
commit 4532570410
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -88,6 +88,7 @@
"test": "nodemon -q back/tests.js -w modules",
"dbtest": "nodemon -q services/db/tests.js -w services/db/tests",
"services": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js services",
"lint": "eslint ./ --cache --ignore-pattern .gitignore"
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
"docker": "docker build -t salix-db ./services/db"
}
}