@ycmd/commands
Version:
LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials
7 lines (5 loc) • 1.64 kB
JavaScript
import { createCommand, isEnvSkip, pnpmRecursive, shell } from 'ycmd';
var a={watch:{alias:"w",describe:"monitor files for changes",type:"boolean",default:!1},prod:{alias:"p",describe:"enable code optimization for production",type:"boolean",default:!1},silent:{alias:["s","q","quiet"],describe:"run in silent mode, show errors only",type:"boolean",default:!1},exec:{alias:"e",describe:"executes after compilation",type:["boolean","string"],default:!1},dry:{alias:["d","dry-run","without-publish"],describe:"run in dry mode, without publishing",type:"boolean",default:!1},dist:{describe:"specify the output directory",type:"string"},force:{alias:["f"],describe:"force to run",type:"boolean",default:!1},dts:{describe:"generate dts files",type:"boolean",default:!0},yes:{alias:["y"],describe:"automatically say yes to all prompts",type:"boolean",default:!1},bail:{alias:"b",describe:"stop running after the first failure",type:"boolean",default:!1},clean:{alias:"c",describe:"clean the output directory before building",type:"boolean",default:!1}};var y=createCommand({command:"test [-w][-s][-p]",describe:"run tests",builder:i=>i.options({watch:a.watch,prod:a.prod,silent:a.silent}),async main({isRoot:i,ctx:e,argv:t,log:o}){if(isEnvSkip(["test","tests"])){o.warn("SKIP_TEST");return}if(i){await pnpmRecursive("run test --silent --prod",{ctx:e,argv:t});return}await shell("ycmd test:uvu",{ctx:e,argv:t}),await shell("ycmd test:jest",{ctx:e,argv:t}),await shell("ycmd test:eslint",{ctx:e,argv:t}),await shell("ycmd test:size-limit",{ctx:e,argv:t});}});
export { y as default };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=test.js.map