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 = [
2020 'splom'
2121] ;
2222
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+
2924
3025// Create server
3126var _static = ecstatic ( {
@@ -63,19 +58,25 @@ var server = http.createServer(function(req, res) {
6358 }
6459} ) ;
6560
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 ) ) ;
6667
6768// Start the server up!
6869server . listen ( PORT ) ;
6970
7071// open up browser window
7172open ( 'http://localhost:' + PORT + '/devtools/regl_codegen/index' + ( strict ? '-strict' : '' ) + '.html' ) ;
7273
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 ) ;
7980
8081function getMockFiles ( ) {
8182 return new Promise ( function ( resolve , reject ) {
You can’t perform that action at this time.
0 commit comments