How to use @loopback/build - 4 common examples

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 / cli / smoke-test / openapi / code-gen-utils.js View on Github external
return new Promise((resolve, reject) => {
    build
      .runShell('npm', args, {
        // Disable stdout
        stdio: [process.stdin, process.stdout, process.stderr],
        cwd: sandbox,
      })
      .on('close', code => {
        assert.equal(code, 0);
        resolve();
      });
  });
}
github strongloop / loopback-next / packages / tsdocs / src / __tests__ / acceptance / tsdocs.acceptance.ts View on Github external
it('runs api-documenter', async () => {
    const args = [
      'markdown',
      '-i',
      path.join(APIDOCS_ROOT, 'models'),
      '-o',
      SITE_APIDOCS_ROOT,
    ];
    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);
    expect(files.sort()).eql(API_MD_FILES);
  });
github strongloop / loopback-next / packages / cli / smoke-test / openapi / code-gen-utils.js View on Github external
function cleanSandbox(sandbox) {
  process.chdir(rootDir);
  build.clean(['node', 'run-clean', sandbox]);
  process.chdir(cwd);
}
github strongloop / loopback-next / packages / tsdocs / src / helper.ts View on Github external
mainEntryPointFilePath?: string;
  /**
   * A flag to control if `apiReport` should be enabled
   */
  apiReportEnabled?: boolean;
}

/**
 * Default path as the output directory for extracted api reports and models
 */
export const DEFAULT_APIDOCS_EXTRACTION_PATH = 'docs/apidocs';

/**
 * Export the TypeScript path from `@loopback/build`
 */
export const typeScriptPath = require('@loopback/build').typeScriptPath;

@loopback/build

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

MIT
Latest version published 10 days ago

Package Health Score

89 / 100
Full package analysis

Similar packages