Include d3 and nvd3 as static dependencies.

As the current latest release of nvd3 has a number of major bugs,
we need to use the latest available git release. However, depending
on libraries from `https://` Git repositories is broken on older
versions of npm.

As a workaround, this patch adds nvd3 (and consequently, d3 itself)
as static dependencies using the `vendor-js` mechanism and keeps
the code for each directly within our source tree.

Change-Id: I4fe83ca7eee21dcd1e6d2692f56592e6cb4ea74e
This commit is contained in:
Tim Buckley 2015-10-09 13:25:30 -06:00
parent 3ca729652c
commit 7c58be1a32
4 changed files with 20 additions and 3 deletions

View File

@ -24,6 +24,7 @@
<div role="main" ui-view></div>
<script src="js/vendor.js"></script>
<script src="js/main.js"></script>
</body>
</html>

5
app/vendor-js/1-d3.js Normal file

File diff suppressed because one or more lines are too long

10
app/vendor-js/2-nvd3.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,6 @@
"browserify-shim": "^3.8.10",
"bulk-require": "^0.2.1",
"bulkify": "^1.1.1",
"d3": "^3.5.6",
"del": "^0.1.3",
"eslint": "1.5.1",
"eslint-config-openstack": "1.2.2",
@ -57,7 +56,6 @@
"karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "0.2.0",
"morgan": "^1.6.1",
"nvd3": "https://github.com/novus/nvd3.git",
"phantomjs": "1.9.17",
"pretty-hrtime": "^1.0.0",
"protractor": "^2.2.0",
@ -81,5 +79,8 @@
"browserify-shim"
]
},
"browserify-shim": {}
"browserify-shim": {
"d3": "global:d3",
"nvd3": "global:nv"
}
}