How to use the @loopback/build.runCLI function in @loopback/build

To help you get started, we’ve selected a few @loopback/build examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strongloop / loopback-next / packages / tsdocs / src / __tests__ / acceptance / tsdocs.acceptance.ts View on Github external
it('runs api-documenter', async () => {
    const args = [
      path.join(APIDOCS_ROOT, 'models'),
    process.chdir(path.join(__dirname, '../../..'));
    const child = runCLI('@microsoft/api-documenter/lib/start', args, {
      stdio: 'ignore',
    await pEvent(child, 'close');
    const files = await fs.readdir(SITE_APIDOCS_ROOT);


A set of common scripts and default configurations to build LoopBack 4 or other TypeScript modules

Latest version published 12 days ago

Package Health Score

89 / 100
Full package analysis

Similar packages