From 45325704101a231bfcdc1139b0f6a9555eab208a Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 9 Jan 2019 10:24:42 +0100 Subject: [PATCH] Gulp fixes --- gulpfile.js | 4 +++- package.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8d5974a6b..35227aaab 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 => { diff --git a/package.json b/package.json index 591604bed..99a959cb7 100644 --- a/package.json +++ b/package.json @@ -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" } }