Skip to content

Commit dca267a

Browse files
committed
launch server after files are generated
1 parent 9e4d9d4 commit dca267a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

devtools/regl_codegen/server.mjs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,18 @@ var server = http.createServer(function(req, res) {
5858
}
5959
});
6060

61-
62-
// Start the server up!
63-
server.listen(PORT);
64-
65-
// open up browser window
66-
open('http://localhost:' + PORT + '/devtools/regl_codegen/index' + (strict ? '-strict' : '') + '.html');
67-
6861
// Build and bundle all the things!
6962
await getMockFiles()
7063
.then(readFiles)
7164
.then(createMocksList)
7265
.then(saveMockListToFile)
7366
.then(saveReglTracesToFile.bind(null, reglTraceList));
7467

68+
// Start the server up!
69+
server.listen(PORT);
70+
71+
// open up browser window
72+
open('http://localhost:' + PORT + '/devtools/regl_codegen/index' + (strict ? '-strict' : '') + '.html');
7573

7674
var devtoolsPath = path.join(constants.pathToRoot, 'devtools/regl_codegen');
7775
config.entryPoints = [path.join(devtoolsPath, 'devtools.js')];

0 commit comments

Comments
 (0)