Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 676e2ff

Browse files
authored
Merge pull request #1606 from NativeScript/trifonov/build-improvements
chore: improve start script
2 parents d263dbf + da2c19a commit 676e2ff

File tree

1 file changed

+11
-33
lines changed

1 file changed

+11
-33
lines changed

build/docs-watcher/start.sh

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,17 @@ rsync --relative -az --exclude node_modules/ --exclude .git \
3232
/root/./nativescript-angular \
3333
/www
3434

35-
if [ -d /root/./NativeScript ]; then
36-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./NativeScript /www
37-
fi
38-
if [ -d /root/./nativescript-sdk-examples-ng ]; then
39-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-sdk-examples-ng /www
40-
fi
41-
if [ -d /root/./nativescript-sdk-examples-js ]; then
42-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-sdk-examples-js /www
43-
fi
44-
if [ -d /root/./nativescript-cli ]; then
45-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-cli /www
46-
fi
47-
if [ -d /root/./nativescript-ui-listview ]; then
48-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-listview /www
49-
fi
50-
if [ -d /root/./nativescript-ui-autocomplete ]; then
51-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-autocomplete /www
52-
fi
53-
if [ -d /root/./nativescript-ui-dataform ]; then
54-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-dataform /www
55-
fi
56-
if [ -d /root/./nativescript-ui-chart ]; then
57-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-chart /www
58-
fi
59-
if [ -d /root/./nativescript-ui-calendar ]; then
60-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-calendar /www
61-
fi
62-
if [ -d /root/./nativescript-ui-gauge ]; then
63-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-gauge /www
64-
fi
65-
if [ -d /root/./nativescript-ui-sidedrawer ]; then
66-
rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-sidedrawer /www
67-
fi
35+
[ ! -d /root/./NativeScript ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./NativeScript /www
36+
[ ! -d /root/./nativescript-sdk-examples-ng ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-sdk-examples-ng /www
37+
[ ! -d /root/./nativescript-sdk-examples-js ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-sdk-examples-js /www
38+
[ ! -d /root/./nativescript-cli ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-cli /www
39+
[ ! -d /root/./nativescript-ui-listview ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-listview /www
40+
[ ! -d /root/./nativescript-ui-autocomplete ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-autocomplete /www
41+
[ ! -d /root/./nativescript-ui-dataform ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-dataform /www
42+
[ ! -d /root/./nativescript-ui-chart ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-chart /www
43+
[ ! -d /root/./nativescript-ui-calendar ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-calendar /www
44+
[ ! -d /root/./nativescript-ui-gauge ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-gauge /www
45+
[ ! -d /root/./nativescript-ui-sidedrawer ] || rsync --relative -az --exclude node_modules/ --exclude .git /root/./nativescript-ui-sidedrawer /www
6846

6947
/www/docs/build/build-docs.sh
7048
/www/docs/build/nginx-setup.sh

0 commit comments

Comments
 (0)