File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
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 ( {
@@ -71,12 +66,20 @@ server.listen(PORT);
7166open ( 'http://localhost:' + PORT + '/devtools/regl_codegen/index' + ( strict ? '-strict' : '' ) + '.html' ) ;
7267
7368// Build and bundle all the things!
74- getMockFiles ( )
69+ await getMockFiles ( )
7570 . then ( readFiles )
7671 . then ( createMocksList )
7772 . then ( saveMockListToFile )
7873 . then ( saveReglTracesToFile . bind ( null , reglTraceList ) ) ;
7974
75+
76+ var devtoolsPath = path . join ( constants . pathToRoot , 'devtools/regl_codegen' ) ;
77+ config . entryPoints = [ path . join ( devtoolsPath , 'devtools.js' ) ] ;
78+ config . outfile = './build/regl_codegen-bundle.js' ;
79+ config . sourcemap = false ;
80+ config . minify = false ;
81+ await build ( config ) ;
82+
8083function getMockFiles ( ) {
8184 return new Promise ( function ( resolve , reject ) {
8285 fs . readdir ( constants . pathToTestImageMocks , function ( err , files ) {
You can’t perform that action at this time.
0 commit comments