How to use the @microsoft/gulp-core-build.getConfig function in @microsoft/gulp-core-build

To help you get started, we’ve selected a few @microsoft/gulp-core-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 SharePoint / sp-dev-fx-controls-react / config / karma.config.js View on Github external
namedFiles: true,
    pageTitle: 'sp-dev-fx-controls-react unit-tests report',
    urlFriendlyName: false,
    reportName: 'sp-dev-fx-controls-react-report',
  };
  config.plugins.push(htmlReporter);

  // Add the remap-coverage - code coverage for the original files
  config.reporters.push('remap-coverage');
  config.coverageReporter = {
    type: 'in-memory'
  }
  config.remapCoverageReporter = {
    'text-summary': null,
    html: path.join(gulp_core_build.getConfig().tempFolder, 'coverage/html'),
    cobertura: path.join(gulp_core_build.getConfig().tempFolder, 'coverage/cobertura.xml')
  };
  config.plugins.push(remapCoverageReporter);
};
github microsoft / rushstack / core-build / node-library-build / gulpfile.js View on Github external
'use strict';

let build = require('@microsoft/gulp-core-build');
let { tscCmd, lintCmd, apiExtractor } = require('@microsoft/gulp-core-build-typescript')
let mocha = require('@microsoft/gulp-core-build-mocha');

build.setConfig({
  shouldWarningsFailBuild: build.getConfig().production
});

build.task('default', build.serial(build.parallel(tscCmd, lintCmd), apiExtractor, mocha));

build.initialize(require('gulp'));

@microsoft/gulp-core-build

Core gulp build tasks for building typescript, html, less, etc.

MIT
Latest version published 3 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages