forked from bitfocus/companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyarn.sh
executable file
·39 lines (34 loc) · 990 Bytes
/
yarn.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
#!/bin/bash
#
# This file is part of the Companion project
# Copyright (c) 2018 Bitfocus AS
# Authors: William Viker <[email protected]>, Håkon Nessjøen <[email protected]>
#
# This program is free software.
# You should have received a copy of the MIT licence as well as the Bitfocus
# Individual Contributor License Agreement for companion along with
# this program.
#
# You can be released from the requirements of the license by purchasing
# a commercial license. Buying such a license is mandatory as soon as you
# develop commercial activities involving the Companion software without
# disclosing the source code of your own applications.
#
function heading() {
echo -e "\033[1m$1\033[m"
}
heading "Core"
yarn
echo
heading "Bitfocus skeleton"
yarn --cwd bitfocus-skeleton/
echo
heading "Module dependencies"
for module in lib/module/*/; do
grep '"dependencies"' ${module}package.json > /dev/null 2>&1 && (
echo ${module}
yarn --cwd ${module}
echo ""
)
done
exit 0