Skip to content

Commit 53a5971

Browse files
committed
expose Lib on test dashboard window
1 parent d8e27dd commit 53a5971

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

devtools/test_dashboard/devtools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
var Fuse = require('fuse.js');
66
var mocks = require('../../build/test_dashboard_mocks.json');
7+
var Lib = require('@src/lib');
78

89
// put d3 in window scope
910
var d3 = window.d3 = Plotly.d3;
@@ -119,6 +120,7 @@ var Tabs = {
119120

120121
// Bind things to the window
121122
window.Tabs = Tabs;
123+
window.Lib = Lib;
122124
setInterval(function() {
123125
window.gd = Tabs.getGraph() || Tabs.fresh();
124126
window.fullLayout = window.gd._fullLayout;

devtools/test_dashboard/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var watchify = require('watchify');
88

99
var constants = require('../../tasks/util/constants');
1010
var compress = require('../../tasks/util/compress_attributes');
11+
var shortcutPaths = require('../../tasks/util/shortcut_paths');
1112

1213
var PORT = process.argv[2] || 3000;
1314

@@ -32,7 +33,9 @@ b.on('update', bundlePlotly);
3233

3334
// Bundle devtools code
3435
var devtoolsPath = path.join(constants.pathToRoot, 'devtools/test_dashboard');
35-
var devtools = browserify(path.join(devtoolsPath, 'devtools.js'), {});
36+
var devtools = browserify(path.join(devtoolsPath, 'devtools.js'), {
37+
transform: [shortcutPaths]
38+
});
3639

3740
var firstBundle = true;
3841

0 commit comments

Comments
 (0)