function isInGitRepository() { try { execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
directories.forEach((directory) => { logger.info(`Installing dependencies in folder ${directory}`); try { execSync(`cd ${directory} && npm install --unsafe-perm`, { maxBuffer: 10 * 1000 * 1024, // 10Mo of logs allowed for module with big npm install }); } catch (e) { logger.warn(e); } });
(() => { let result = execSync('npm list --prod --parseable'); return _.chain(result.toString().trim().split(/\r?\n/)) // remove app root path .tap((r) => r.shift()) .filter((dep) => (dep.match(/node_modules/g) || []).length == 1 && !dep.match(/typescript/)) .map((dep) => `${dep}/**/*.{js,cljs,css,json,svg,png,gif,woff2,otf,ttf,woff,eot,ts}`) .value(); })()
const run = (type) => { process.stderr.write(`benchmarking ${type}\n`) return execSync(`node ${join(__dirname, 'runbench')} ${type} -q`) }
execSync( `npx mocha ${ tests } --timeout 20000`, { stdio: 'inherit', } );
child.execSync(cmdstr);
directories.forEach((directory) => { logger.info(`Installing dependencies in folder ${directory}`); try { execSync(`cd ${directory} && npm install --unsafe-perm`, { maxBuffer: 10 * 1000 * 1024, // 10Mo of logs allowed for module with big npm install }); } catch (e) { logger.warn(e); } });
function isInMercurialRepository() { try { execSync('hg --cwd . root', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInMercurialRepository() { try { execSync('hg --cwd . root', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInGitRepository() { try { execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInGitRepository() { try { execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInMercurialRepository() { try { execSync('hg --cwd . root', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInMercurialRepository() { try { execSync('hg --cwd . root', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInGitRepository() { try { execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' }); return true; } catch (e) { return false; } }
function isInGitRepository() { try { execSync("git rev-parse --is-inside-work-tree", { stdio: "ignore" }); return true; } catch (e) { return false; } }