Skip to content

Commit e0faf1d

Browse files
authored
Merge pull request #7125 from birkskyum/fix-regl-codegen
fix regl_codegen
2 parents ab8d688 + dca267a commit e0faf1d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

devtools/regl_codegen/server.mjs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff 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
3126
var _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!
6869
server.listen(PORT);
6970

7071
// open up browser window
7172
open('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

8081
function getMockFiles() {
8182
return new Promise(function(resolve, reject) {

0 commit comments

Comments
 (0)