-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from eapearson/master
use new narrative link narrative/WSID
- Loading branch information
Showing
13 changed files
with
1,638 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*eslint-env node */ | ||
/*eslint strict: ["error", "global"] */ | ||
'use strict'; | ||
const bluebird = require('bluebird'); | ||
const glob = bluebird.promisify(require('glob').Glob); | ||
const fs = bluebird.promisifyAll(require('fs-extra')); | ||
const Terser = require('terser'); | ||
const path = require('path'); | ||
const tar = require('tar'); | ||
|
||
async function updateFiles(rootDir) { | ||
const root = rootDir.split('/'); | ||
const source = root.concat(['src', 'plugin']).join('/'); | ||
const dest = root.concat(['dist', 'plugin']).join('/'); | ||
await fs.copyAsync(source, dest); | ||
} | ||
|
||
|
||
async function main() { | ||
const cwd = process.cwd().split('/'); | ||
cwd.push('..'); | ||
const projectPath = path.normalize(cwd.join('/')); | ||
console.log(`Project path: ${projectPath}`); | ||
console.log('Copying files to dist...'); | ||
await updateFiles(projectPath); | ||
console.log('done'); | ||
} | ||
|
||
main(); |
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 |
---|---|---|
|
@@ -1277,13 +1277,18 @@ mixin-deep@^1.2.0: | |
for-in "^1.0.2" | ||
is-extendable "^1.0.1" | ||
|
||
mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: | ||
mkdirp@^0.5.1, mkdirp@~0.5.1: | ||
version "0.5.1" | ||
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" | ||
integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= | ||
dependencies: | ||
minimist "0.0.8" | ||
|
||
mkdirp@^1.0.3: | ||
version "1.0.3" | ||
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.3.tgz#4cf2e30ad45959dddea53ad97d518b6c8205e1ea" | ||
integrity sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g== | ||
|
||
[email protected]: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" | ||
|
@@ -1884,22 +1889,22 @@ supports-color@^7.1.0: | |
dependencies: | ||
has-flag "^4.0.0" | ||
|
||
tar@5.0.5: | ||
version "5.0.5" | ||
resolved "https://registry.yarnpkg.com/tar/-/tar-5.0.5.tgz#03fcdb7105bc8ea3ce6c86642b9c942495b04f93" | ||
integrity sha512-MNIgJddrV2TkuwChwcSNds/5E9VijOiw7kAc1y5hTNJoLDSuIyid2QtLYiCYNnICebpuvjhPQZsXwUL0O3l7OQ== | ||
tar@6.0.1: | ||
version "6.0.1" | ||
resolved "https://registry.yarnpkg.com/tar/-/tar-6.0.1.tgz#7b3bd6c313cb6e0153770108f8d70ac298607efa" | ||
integrity sha512-bKhKrrz2FJJj5s7wynxy/fyxpE0CmCjmOQ1KV4KkgXFWOgoIT/NbTMnB1n+LFNrNk0SSBVGGxcK5AGsyC+pW5Q== | ||
dependencies: | ||
chownr "^1.1.3" | ||
fs-minipass "^2.0.0" | ||
minipass "^3.0.0" | ||
minizlib "^2.1.0" | ||
mkdirp "^0.5.0" | ||
mkdirp "^1.0.3" | ||
yallist "^4.0.0" | ||
|
||
[email protected].2: | ||
version "4.6.2" | ||
resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.2.tgz#cb1cf055e7f70caa5863f00ba3e67dc3c97b5150" | ||
integrity sha512-6FUjJdY2i3WZAtYBtnV06OOcOfzl+4hSKYE9wgac8rkLRBToPDDrBB2AcHwQD/OKDxbnvhVy2YgOPWO2SsKWqg== | ||
[email protected].3: | ||
version "4.6.3" | ||
resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.3.tgz#e33aa42461ced5238d352d2df2a67f21921f8d87" | ||
integrity sha512-Lw+ieAXmY69d09IIc/yqeBqXpEQIpDGZqT34ui1QWXIUpR2RjbqEkT8X7Lgex19hslSqcWM5iMN2kM11eMsESQ== | ||
dependencies: | ||
commander "^2.20.0" | ||
source-map "~0.6.1" | ||
|
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,23 @@ | ||
{ | ||
"name": "kbase-ui-plugin-dashboard", | ||
"version": "1.0.0", | ||
"description": "A ui plugin for the UI", | ||
"main": "index.js", | ||
"scripts": { | ||
"build-plugin": "bash scripts/build-plugin.bash" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kbase/kbase-ui-plugin-dashboard.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/kbase/kbase-ui-plugin-dashboard/issues" | ||
}, | ||
"homepage": "https://github.com/kbase/kbase-ui-plugin-dashboard#readme", | ||
"dependencies": { | ||
"eslint": "6.4.0", | ||
"standard": "14.3.1" | ||
} | ||
} |
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,3 @@ | ||
cd build | ||
yarn install && yarn clean && yarn install && yarn install-bower && yarn install-npm &&yarn remove-source-maps && yarn install-dist | ||
cd .. |
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
Oops, something went wrong.