MCPcopy Index your code
hub / github.com/darkreader/darkreader / build

Function build

tasks/build.js:45–65  ·  view source on GitHub ↗
({platforms, debug, watch, log: logging, test, version})

Source from the content-addressed store, hash-verified

43];
44
45async function build({platforms, debug, watch, log: logging, test, version}) {
46 log.ok('BUILD');
47 platforms = {
48 ...platforms,
49 [PLATFORM.API]: false,
50 };
51 try {
52 await runTasks(debug ? standardTask : (version ? signedBuildTask : buildTask), {platforms, debug, watch, log: logging, test, version});
53 if (watch) {
54 standardTask.forEach((task) => task.watch(platforms));
55 reload.reload({type: reload.FULL});
56 log.ok('Watching...');
57 } else {
58 log.ok('MISSION PASSED! RESPECT +');
59 }
60 } catch (err) {
61 console.log(err);
62 log.error(`MISSION FAILED!`);
63 process.exit(13);
64 }
65}
66
67async function api(debug, watch) {
68 log.ok('API');

Callers 1

runFunction · 0.85

Calls 2

runTasksFunction · 0.90
watchMethod · 0.65

Tested by

no test coverage detected