()
| 291 | } |
| 292 | |
| 293 | async function clocSource() { |
| 294 | let cmdLine; |
| 295 | |
| 296 | //Run cloc on primary Source files only |
| 297 | const source = new Promise(function (resolve, reject) { |
| 298 | cmdLine = |
| 299 | "npx cloc" + |
| 300 | " --quiet --progress-rate=0" + |
| 301 | " packages/engine/Source/ packages/widgets/Source --exclude-dir=Assets,ThirdParty,Workers"; |
| 302 | |
| 303 | exec(cmdLine, function (error, stdout, stderr) { |
| 304 | if (error) { |
| 305 | console.log(stderr); |
| 306 | return reject(error); |
| 307 | } |
| 308 | console.log("Source:"); |
| 309 | console.log(stdout); |
| 310 | resolve(); |
| 311 | }); |
| 312 | }); |
| 313 | |
| 314 | //If running cloc on source succeeded, also run it on the tests. |
| 315 | await source; |
| 316 | return new Promise(function (resolve, reject) { |
| 317 | cmdLine = |
| 318 | "npx cloc" + |
| 319 | " --quiet --progress-rate=0" + |
| 320 | " Specs/ packages/engine/Specs packages/widget/Specs --exclude-dir=Data --not-match-f=SpecList.js --not-match-f=eslint.config.js"; |
| 321 | exec(cmdLine, function (error, stdout, stderr) { |
| 322 | if (error) { |
| 323 | console.log(stderr); |
| 324 | return reject(error); |
| 325 | } |
| 326 | console.log("Specs:"); |
| 327 | console.log(stdout); |
| 328 | resolve(); |
| 329 | }); |
| 330 | }); |
| 331 | } |
| 332 | |
| 333 | export async function prepare() { |
| 334 | // Copy Draco3D files from node_modules into Source |
nothing calls this directly
no test coverage detected
searching dependent graphs…