-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathgulpfile.js
43 lines (38 loc) · 934 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
const { task, src } = require('gulp');
const del = require('del');
const fs = require('fs');
const path = require('path');
const packages = [
'harmony-core',
'harmony-crypto',
'harmony-account',
'harmony-network',
'harmony-contract',
'harmony-utils',
'harmony-transaction',
'harmony-staking',
];
task('cleanBrowser', async () => {
await packages.map((p) => {
const pathToLib = `packages/${p}/lib`;
return del.sync([pathToLib]);
});
});
task('cleanServer', async () => {
await packages.map((p) => {
const pathToLib = `packages/${p}/dist`;
return del.sync([pathToLib]);
});
});
task('cleanUnexpected', async () => {
await packages.map((p) => {
const pathToLib = `packages/${p}/tsconfig.tsbuildinfo`;
return del.sync([pathToLib]);
});
});
task('cleanDocs', async () => {
await packages.map((p) => {
const pathToLib = `docs/${p}`;
return del.sync([pathToLib]);
});
});