From ac5fc242e7a1b1bb5bac5b52b21b39abcb53e9bb Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 16 Sep 2020 10:10:14 -0400 Subject: [PATCH] Add video player to installed plugins array; minor refactoring in gulpfile --- client/gulpfile.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/client/gulpfile.js b/client/gulpfile.js index fe752b522d8..ca8f42e1dc8 100644 --- a/client/gulpfile.js +++ b/client/gulpfile.js @@ -5,22 +5,20 @@ const { src, dest, series, parallel } = require("gulp"); const child_process = require("child_process"); const glob = require("glob"); +/* + * We'll want a flexible glob down the road, but for now there are no + * un-built visualizations in the repository; for performance and + * simplicity just add them one at a time until we upgrade older viz's. + */ +const PLUGIN_BUILD_DIRS = ["annotate_image", "hyphyvision", "openlayers", "chiraviz", "editor", "video_player"]; + const paths = { node_modules: "./node_modules", plugin_dirs: [ "../config/plugins/{visualizations,interactive_environments}/*/static/**/*", "../config/plugins/{visualizations,interactive_environments}/*/*/static/**/*", ], - /* - * We'll want a flexible glob down the road, but for now there are no - * un-built visualizations in the repository; for performance and - * simplicity just add them one at a time until we upgrade older viz's. - */ - //plugin_build_dirs: [ - // "../config/plugins/{visualizations,interactive_environments}/*/package.json", - // "../config/plugins/{visualizations,interactive_environments}/*/*/package.json" - //], - plugin_build_dirs: ["../config/plugins/visualizations/{annotate_image,hyphyvision,openlayers,chiraviz,editor}/package.json"], + plugin_build_dirs: [`../config/plugins/visualizations/{${PLUGIN_BUILD_DIRS.join(",")}}/package.json`], lib_locs: { // This is a stepping stone towards having all this staged // automatically. Eventually, this dictionary and staging step will