How to use the @microsoft/gulp-core-build.initialize 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 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