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 = [
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 ( {
@@ -71,12 +66,20 @@ server.listen(PORT);
71
66
open ( 'http://localhost:' + PORT + '/devtools/regl_codegen/index' + ( strict ? '-strict' : '' ) + '.html' ) ;
72
67
73
68
// Build and bundle all the things!
74
- getMockFiles ( )
69
+ await getMockFiles ( )
75
70
. then ( readFiles )
76
71
. then ( createMocksList )
77
72
. then ( saveMockListToFile )
78
73
. then ( saveReglTracesToFile . bind ( null , reglTraceList ) ) ;
79
74
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
+
80
83
function getMockFiles ( ) {
81
84
return new Promise ( function ( resolve , reject ) {
82
85
fs . readdir ( constants . pathToTestImageMocks , function ( err , files ) {
You can’t perform that action at this time.
0 commit comments