Add victory charts

This commit is contained in:
kzantow 2016-07-20 10:01:09 -07:00
parent 99a8618bc8
commit 8513344335
5 changed files with 9 additions and 4 deletions

View File

@ -36,7 +36,7 @@
},
"dependencies": {
"@jenkins-cd/design-language": "0.0.63",
"@jenkins-cd/js-extensions": "0.0.19",
"@jenkins-cd/js-extensions": "0.0.20-beta-1",
"@jenkins-cd/js-modules": "0.0.5",
"@jenkins-cd/sse-gateway": "0.0.6",
"immutable": "3.8.1",

View File

@ -26,7 +26,7 @@
},
"dependencies": {
"@jenkins-cd/design-language": "0.0.63",
"@jenkins-cd/js-extensions": "0.0.19",
"@jenkins-cd/js-extensions": "0.0.20-beta-1",
"@jenkins-cd/js-modules": "0.0.5",
"history": "2.0.2",
"immutable": "3.8.1",
@ -39,7 +39,8 @@
"react-router": "2.3.0",
"redux": "3.5.2",
"redux-thunk": "2.0.1",
"window-handle": "1.0.0"
"window-handle": "1.0.0",
"victory": "0.9.0"
},
"jenkinscd": {
"extDependencies": [

View File

@ -54,6 +54,9 @@ exports.initialize = function (oncomplete) {
jenkinsMods.export('react', 'react', react);
jenkinsMods.export('react', 'react-dom', reactDOM);
const victory = require('victory');
jenkinsMods.export('victory', 'victory', victory);
// Get the extension list metadata from Jenkins.
// Might want to do some flux fancy-pants stuff for this.
const appRoot = document.getElementsByTagName("head")[0].getAttribute("data-appurl");

View File

@ -146,6 +146,7 @@ function createBundle(jsxFile) {
.withExternalModuleMapping('@jenkins-cd/design-language', 'jenkins-cd:jdl')
.withExternalModuleMapping('react', 'react:react')
.withExternalModuleMapping('react-dom', 'react:react-dom')
.withExternalModuleMapping('victory', 'victory:victory')
.inDir('target/classes/org/jenkins/ui/jsmodules/' + maven.getArtifactId());
}

View File

@ -1,6 +1,6 @@
{
"name": "@jenkins-cd/js-extensions",
"version": "0.0.19",
"version": "0.0.20-beta-1",
"description": "Jenkins Extension Store",
"main": "index.js",
"files": [