How to use @bentley/build-tools - 1 common examples

To help you get started, we’ve selected a few @bentley/build-tools 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 imodeljs / imodeljs / test-apps / testbed / bin / testbed.js View on Github external
#! /usr/bin/env node

/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------------------------------------*/

const program = require("commander");
const floss = require("../floss");
const paths = require("@bentley/build-tools/scripts/config/paths");

const isCI = (process.env.TF_BUILD);

const reporterOptions = (isCI) ? {
  reporter: "mocha-junit-reporter",
  reporterOptions: `mochaFile=${paths.appJUnitTestResults}`
} : {
    reporter: "spec"
  };

program
  .version("0.1.0")
  .description("imodeljs-core-testbed")
  .option('-d, --debug', 'Launch electron in debug mode')
  .option('--no-dev-tools', 'Do not automatically open Chrome Developer Tools in debug mode')
  .option('-g, --grep 

@bentley/build-tools

Bentley build tools

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis