forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
44 lines (39 loc) · 977 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'use strict';
const build = require('@microsoft/node-library-build');
const path = require('path');
const sharedSrcDir = path.join(__dirname, 'src', 'shared');
const sharedLibDir = path.join(__dirname, 'lib', 'shared');
build.preCopy.setConfig({
copyTo: {
[sharedSrcDir]: [
path.join(
__dirname,
'node_modules',
'@microsoft',
'rush-stack-compiler-shared',
'src',
'shared',
'**',
'*'
)
],
[sharedLibDir]: [
path.join(
__dirname,
'node_modules',
'@microsoft',
'rush-stack-compiler-shared',
'src',
'shared',
'**',
'*.d.ts'
)
]
},
shouldFlatten: false
});
build.preCopy.cleanMatch = [sharedSrcDir];
// This project doesn't have unit tests and GCB's Mocha doesn't play nice with Node 14, so disable Mocha
build.mocha.enabled = false;
build.instrument.enabled = false;
build.initialize(require('gulp'));