File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,7 @@ var reglTraceList = [
20
20
'splom'
21
21
] ;
22
22
23
- var devtoolsPath = path . join ( constants . pathToRoot , 'devtools/regl_codegen' ) ;
24
- config . entryPoints = [ path . join ( devtoolsPath , 'devtools.js' ) ] ;
25
- config . outfile = './build/regl_codegen-bundle.js' ;
26
- config . sourcemap = false ;
27
- config . minify = false ;
28
- await build ( config ) ;
23
+
29
24
30
25
// Create server
31
26
var _static = ecstatic ( {
@@ -63,19 +58,25 @@ var server = http.createServer(function(req, res) {
63
58
}
64
59
} ) ;
65
60
61
+ // Build and bundle all the things!
62
+ await getMockFiles ( )
63
+ . then ( readFiles )
64
+ . then ( createMocksList )
65
+ . then ( saveMockListToFile )
66
+ . then ( saveReglTracesToFile . bind ( null , reglTraceList ) ) ;
66
67
67
68
// Start the server up!
68
69
server . listen ( PORT ) ;
69
70
70
71
// open up browser window
71
72
open ( 'http://localhost:' + PORT + '/devtools/regl_codegen/index' + ( strict ? '-strict' : '' ) + '.html' ) ;
72
73
73
- // Build and bundle all the things!
74
- getMockFiles ( )
75
- . then ( readFiles )
76
- . then ( createMocksList )
77
- . then ( saveMockListToFile )
78
- . then ( saveReglTracesToFile . bind ( null , reglTraceList ) ) ;
74
+ var devtoolsPath = path . join ( constants . pathToRoot , 'devtools/regl_codegen' ) ;
75
+ config . entryPoints = [ path . join ( devtoolsPath , 'devtools.js' ) ] ;
76
+ config . outfile = './build/regl_codegen-bundle.js' ;
77
+ config . sourcemap = false ;
78
+ config . minify = false ;
79
+ await build ( config ) ;
79
80
80
81
function getMockFiles ( ) {
81
82
return new Promise ( function ( resolve , reject ) {
You can’t perform that action at this time.
0 commit comments