MCPcopy Create free account
hub / github.com/rolldown/rolldown / cloneThreeJsIfNotExists

Function cloneThreeJsIfNotExists

scripts/misc/setup-benchmark-input/util.js:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import fsExtra from 'fs-extra';
2
3export async function cloneThreeJsIfNotExists() {
4 if (!fsExtra.existsSync('./tmp/github/three')) {
5 fsExtra.ensureDirSync('./tmp/github');
6 await $`git clone --branch r108 --depth 1 https://github.com/mrdoob/three.js.git ./tmp/github/three`;
7 } else {
8 console.log('[skip] three.js already cloned');
9 }
10}
11
12export async function cloneRolldownBenchcasesIfNotExists() {
13 if (!fsExtra.existsSync('./tmp/github/rolldown-benchcases')) {

Callers 1

index.jsFile · 0.90

Calls 2

logMethod · 0.80
existsSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…