forked from FireStack-Lab/icp-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
34 lines (29 loc) · 779 Bytes
/
gulpfile.js
File metadata and controls
34 lines (29 loc) · 779 Bytes
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
const { task, src } = require('gulp');
const del = require('del');
const fs = require('fs');
const path = require('path');
const packages = ['icp-crypto', 'icp-utils', 'icp-web3'];
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]);
});
});