MCPcopy Create free account
hub / github.com/neomjs/neo / parseThreads

Function parseThreads

buildScripts/webpack/buildThreads.mjs:91–122  ·  view source on GitHub ↗
(tPath)

Source from the content-addressed store, hash-verified

89 }
90
91 function parseThreads(tPath) {
92 let childProcess;
93
94 if (threads === 'all' || threads === 'main') {
95 childProcess = spawnSync(webpack, ['--config', `${tPath}.main.mjs`], cpOpts);
96 childProcess.status && process.exit(childProcess.status);
97 }
98 if (threads === 'all' || threads === 'app') {
99 childProcess = spawnSync(webpack, ['--config', `${tPath}.appworker.mjs`, `--env insideNeo=${insideNeo}`], cpOpts);
100 childProcess.status && process.exit(childProcess.status);
101 }
102 if (threads === 'all' || threads === 'canvas') {
103 childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=canvas`], cpOpts);
104 childProcess.status && process.exit(childProcess.status);
105 }
106 if (threads === 'all' || threads === 'data') {
107 childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=data`], cpOpts);
108 childProcess.status && process.exit(childProcess.status);
109 }
110 if (threads === 'all' || threads === 'service') {
111 childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=service`], cpOpts);
112 childProcess.status && process.exit(childProcess.status);
113 }
114 if (threads === 'all' || threads === 'task') {
115 childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=task`], cpOpts);
116 childProcess.status && process.exit(childProcess.status);
117 }
118 if (threads === 'all' || threads === 'vdom') {
119 childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=vdom`], cpOpts);
120 childProcess.status && process.exit(childProcess.status);
121 }
122 }
123
124 // dist/development
125 if (env === 'all' || env === 'dev') {

Callers 1

buildThreads.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected