From aafb00ff1d236d1f089d4cb890975eaeb9f3b89f Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 22 Apr 2020 17:09:13 -0400 Subject: [PATCH] Update doc, swap to string literals for log statements --- client/gulpfile.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/gulpfile.js b/client/gulpfile.js index 5a2cc0e5e13..d270fb30d57 100644 --- a/client/gulpfile.js +++ b/client/gulpfile.js @@ -69,7 +69,7 @@ function stagePlugins() { function buildPlugins(callback) { /* - * Walk plugin build glob and attempt to build anything with a package.json + * Walk plugin_build_dirs glob and attempt to build modules. * */ paths.plugin_build_dirs.map((build_dir) => { @@ -77,7 +77,6 @@ function buildPlugins(callback) { files.map((file) => { let skip_build = false; const f = path.join(process.cwd(), file).slice(0, -12); - const plugin_name = path.dirname(file).split(path.sep).pop(); const hash_file_path = path.join(f, "static", "plugin_build_hash.txt"); @@ -92,15 +91,15 @@ function buildPlugins(callback) { } if (skip_build) { - console.log("No changes detected for", plugin_name); + console.log(`No changes detected for ${plugin_name}`); } else { - console.log("Installing Dependencies for", plugin_name); + console.log(`Installing Dependencies for ${plugin_name}`); spawn("yarn", ["install", "--production=false", "--network-timeout=300000", "--check-files"], { cwd: f, stdio: "inherit", shell: true, }); - console.log("Building ", plugin_name); + console.log(`Building ${plugin_name}`); spawn("yarn", ["build"], { cwd: f, stdio: "inherit", shell: true }); spawn("bash", ["-c", `"(git rev-parse HEAD 2>/dev/null || echo \`\`) > ${hash_file_path} "`], { shell: true,