-
Notifications
You must be signed in to change notification settings - Fork 19
/
rsync-npm.sh
45 lines (32 loc) · 1.53 KB
/
rsync-npm.sh
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
45
#!/usr/bin/env bash
syncFiles() {
appPath=$APP_MONOREPO_LOCAL_PATH
workingPath=$CURRENT_WORKING_PATH
echo "**********************" $workingPath
echo "**********************" $appPath
rsync -avz --exclude node_modules \
$workingPath/packages/events/ \
$appPath/node_modules/@onekeyfe/cross-inpage-provider-events/
rsync -avz --exclude node_modules \
$workingPath/packages/core/ \
$appPath/node_modules/@onekeyfe/cross-inpage-provider-core/
rsync -avz --exclude node_modules \
$workingPath/packages/errors/ \
$appPath/node_modules/@onekeyfe/cross-inpage-provider-errors/
rsync -avz --exclude node_modules \
$workingPath/packages/types/ \
$appPath/node_modules/@onekeyfe/cross-inpage-provider-types/
rsync -avz --exclude node_modules \
$workingPath/packages/injected/ \
$appPath/node_modules/@onekeyfe/cross-inpage-provider-injected/
rsync -avz --exclude node_modules \
$workingPath/packages/providers/inpage-providers-hub/ \
$appPath/node_modules/@onekeyfe/inpage-providers-hub/
rsync -avz --exclude node_modules \
$workingPath/packages/extension/extension-bridge-hosted/ \
$appPath/node_modules/@onekeyfe/extension-bridge-hosted/
rsync -avz --exclude node_modules \
$workingPath/packages/webview/ \
$appPath/node_modules/@onekeyfe/onekey-cross-webview/
}
syncFiles