File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
var Fuse = require ( 'fuse.js' ) ;
6
6
var mocks = require ( '../../build/test_dashboard_mocks.json' ) ;
7
+ var Lib = require ( '@src/lib' ) ;
7
8
8
9
// put d3 in window scope
9
10
var d3 = window . d3 = Plotly . d3 ;
@@ -119,6 +120,7 @@ var Tabs = {
119
120
120
121
// Bind things to the window
121
122
window . Tabs = Tabs ;
123
+ window . Lib = Lib ;
122
124
setInterval ( function ( ) {
123
125
window . gd = Tabs . getGraph ( ) || Tabs . fresh ( ) ;
124
126
window . fullLayout = window . gd . _fullLayout ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var watchify = require('watchify');
8
8
9
9
var constants = require ( '../../tasks/util/constants' ) ;
10
10
var compress = require ( '../../tasks/util/compress_attributes' ) ;
11
+ var shortcutPaths = require ( '../../tasks/util/shortcut_paths' ) ;
11
12
12
13
var PORT = process . argv [ 2 ] || 3000 ;
13
14
@@ -32,7 +33,9 @@ b.on('update', bundlePlotly);
32
33
33
34
// Bundle devtools code
34
35
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
+ } ) ;
36
39
37
40
var firstBundle = true ;
38
41
You can’t perform that action at this time.
0 commit comments