MCPcopy Create free account
hub / github.com/Snapchat/Valdi / runBuildScript

Function runBuildScript

valdi/vscode_debugger/gulpfile.js:52–72  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

50const extensionName = isNightly ? 'valdi-debug-nightly' : 'valdi-debug';
51
52function runBuildScript(name) {
53 return new Promise((resolve, reject) =>
54 cp.execFile(
55 process.execPath,
56 [path.join(__dirname, 'out', 'src', 'build', name)],
57 (err, stdout, stderr) => {
58 process.stderr.write(stderr);
59 if (err) {
60 return reject(err);
61 }
62
63 const outstr = stdout.toString('utf-8');
64 try {
65 resolve(JSON.parse(outstr));
66 } catch {
67 resolve(outstr);
68 }
69 },
70 ),
71 );
72}
73
74const writeFile = util.promisify(fs.writeFile);
75const readFile = util.promisify(fs.readFile);

Callers 1

gulpfile.jsFile · 0.85

Calls 6

rejectFunction · 0.85
writeMethod · 0.65
toStringMethod · 0.65
resolveFunction · 0.50
joinMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected