How to use the @microsoft/node-library-build.preCopy function in @microsoft/node-library-build

To help you get started, we’ve selected a few @microsoft/node-library-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 / stack / rush-stack-compiler-3.1 / gulpfile.js View on Github external
'use strict';

const build = require('@microsoft/node-library-build');
const path = require('path');

const sharedDir = path.join(__dirname, 'src', 'shared');
build.preCopy.setConfig({
  copyTo: {
    [sharedDir]: [
      path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
    ]
  }
});

build.preCopy.cleanMatch = [sharedDir];

build.initialize(require('gulp'));
github microsoft / rushstack / stack / rush-stack-compiler-3.1 / gulpfile.js View on Github external
'use strict';

const build = require('@microsoft/node-library-build');
const path = require('path');

const sharedDir = path.join(__dirname, 'src', 'shared');
build.preCopy.setConfig({
  copyTo: {
    [sharedDir]: [
      path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
    ]
  }
});

build.preCopy.cleanMatch = [sharedDir];

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

@microsoft/node-library-build

`node-library-build` is a `gulp-core-build` based build rig which provides basic functionality for building and unit testing TypeScript projects.

MIT
Latest version published 2 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages