-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script to copy out BBEA tool to own repository for deployment
- Loading branch information
Showing
12 changed files
with
108 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,11 @@ | |
|
||
<title>Oregon Bee Atlas Plant-Pollinator Interactions</title> | ||
|
||
<link rel="stylesheet" href="css/imerss-viz-lib.css" /> | ||
<!-- Looks like this comes from here - use CDN since it refers to relative fonts | ||
https://github.com/Templarian/MaterialDesign-Webfont/releases/tag/v2.0.46 --> | ||
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css"> | ||
|
||
<script src="https://unpkg.com/[email protected]/papaparse.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/d3.min.js"></script> | ||
<script src="https://unpkg.com/@mapbox/[email protected]/dist/mapbox-gl-draw.js"></script> | ||
<script src="js/vizjs.js"></script> | ||
<script src="js/bipartitePP.js"></script> | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,11 @@ | |
|
||
<title>Oregon Bee Atlas Plant-Pollinator Interactions</title> | ||
|
||
<link rel="stylesheet" href="css/imerss-viz-lib.css" /> | ||
<!-- Looks like this comes from here - use CDN since it refers to relative fonts | ||
https://github.com/Templarian/MaterialDesign-Webfont/releases/tag/v2.0.46 --> | ||
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css"> | ||
|
||
<script src="https://unpkg.com/[email protected]/papaparse.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/d3.min.js"></script> | ||
<script src="https://unpkg.com/@mapbox/[email protected]/dist/mapbox-gl-draw.js"></script> | ||
<script src="js/vizjs.js"></script> | ||
<script src="js/bipartitePP.js"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* eslint-env node */ | ||
|
||
"use strict"; | ||
|
||
const fs = require("fs-extra"), | ||
path = require("path"), | ||
fluid = require("infusion"); | ||
|
||
require("../index.js"); | ||
|
||
const config = { | ||
target: "%b-team/docs/", | ||
copyJobs: [ | ||
{ | ||
source: "%imerss-bioinfo/docs/indexBeasOBA.html", | ||
target: "%b-team/docs/index.html" | ||
}, | ||
"%imerss-bioinfo/docs/js/vizjs.js", | ||
"%imerss-bioinfo/docs/js/bipartitePP.js", | ||
|
||
"%imerss-bioinfo/docs/css/imerss-viz-lib.css", | ||
"%imerss-bioinfo/docs/css/imerss-viz-new-core.css", | ||
"%imerss-bioinfo/docs/css/imerss-viz-new.css", | ||
"%imerss-bioinfo/docs/css/imerss-bbea.css", | ||
|
||
"%imerss-bioinfo/docs/js/jquery.js", | ||
"%imerss-bioinfo/docs/js/imerss-viz-lib.js", | ||
"%imerss-bioinfo/docs/js/imerss-viz-new-core.js", | ||
"%imerss-bioinfo/docs/js/imerss-viz-new.js", | ||
"%imerss-bioinfo/docs/js/imerss-bbea.js", | ||
|
||
"%imerss-bioinfo/docs/img/x-circle-close.svg", | ||
|
||
"%imerss-bioinfo/docs/data/b-team/plant-pollinators-OBA-2-assigned-subset-labels.csv", | ||
"%imerss-bioinfo/docs/data/b-team/plant-pollinators-OBA-2-assigned-taxa.csv", | ||
"%imerss-bioinfo/docs/data/b-team/us-eco-l3-regions.csv" | ||
] | ||
}; | ||
|
||
console.log(fluid.module.resolvePath("%imerss-bioinfo/")); | ||
|
||
const b_team = path.join(fluid.module.resolvePath("%imerss-bioinfo/"), "../b-team/"); | ||
|
||
|
||
fluid.module.register("b-team", b_team, require); | ||
|
||
const copyOut = function () { | ||
const defTarget = fluid.module.resolvePath(config.target); | ||
const computeTarget = function (source) { | ||
const dp = source.indexOf("/docs/"); | ||
const stem = source.substring(dp + "/docs/".length); | ||
return path.join(defTarget, stem); | ||
}; | ||
|
||
config.copyJobs.forEach(oneJob => { | ||
const job = typeof(oneJob) === "string" ? {source: oneJob} : oneJob; | ||
const source = fluid.module.resolvePath(job.source); | ||
const target = job.target ? fluid.module.resolvePath(job.target) : computeTarget(job.source); | ||
|
||
fs.ensureDirSync(path.dirname(target)); | ||
fs.copySync(source, target); | ||
|
||
console.log("Copied ", source, " to ", target); | ||
}); | ||
|
||
}; | ||
|
||
copyOut(); |