Skip to content

Commit

Permalink
Consolidate gulp plugin handling now that we no longer use as a plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jun 11, 2024
1 parent be5e606 commit 9a0be73
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions client/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const buildIcons = require("./icons/build_icons");
* un-built visualizations in the repository; for performance and
* simplicity just add them one at a time until we upgrade older viz's.
*/
const STATIC_PLUGIN_BUILD_IDS = [
const PLUGIN_BUILD_IDS = [
"annotate_image",
"chiraviz",
"cytoscape",
Expand Down Expand Up @@ -39,9 +39,6 @@ const STATIC_PLUGIN_BUILD_IDS = [
"ts_visjs",
"venn",
];
const DIST_PLUGIN_BUILD_IDS = ["new_user"];
const PLUGIN_BUILD_IDS = Array.prototype.concat(DIST_PLUGIN_BUILD_IDS, STATIC_PLUGIN_BUILD_IDS);

const PATHS = {
nodeModules: "./node_modules",
stagedLibraries: {
Expand Down Expand Up @@ -114,11 +111,7 @@ function buildPlugins(callback, forceRebuild) {
const pluginDir = path.dirname(file);
const pluginName = pluginDir.split(path.sep).pop();

const hashFilePath = path.join(
pluginDir,
DIST_PLUGIN_BUILD_IDS.indexOf(pluginName) > -1 ? "dist" : "static",
"plugin_build_hash.txt"
);
const hashFilePath = path.join(pluginDir, "static", "plugin_build_hash.txt");

if (forceRebuild) {
skipBuild = false;
Expand Down

0 comments on commit 9a0be73

Please sign in to comment.