forked from fluidsonic/widgetbot
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-all.sh
executable file
·68 lines (59 loc) · 1.42 KB
/
build-all.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
set -e
export YARN_PRODUCTION=false
#export NODE_OPTIONS=--openssl-legacy-provider
echo
echo "↔ Installing dependencies…"
echo
( set -x; yarn )
echo
echo
echo "🔨 Building embed-api…"
echo
( set -x; yarn workspace @widgetbot/embed-api build)
echo
echo
echo "🔨 Building react-embed…"
echo
( set -x; yarn workspace @widgetbot/react-embed build)
# Since we don't use it, we can skip it hopefully.
#echo
#echo
#echo "🔨 Building html-embed…"
#echo
#( set -x; yarn workspace @widgetbot/html-embed build)
echo
echo
echo "🔨 Building embed…"
echo
( set -x; yarn workspace embed build)
echo
echo
echo "🔨 Building crate…"
echo
( set -x; yarn workspace @widgetbot/crate build)
echo
echo
echo "🔨 Building server…"
echo
( set -x; yarn workspace server build)
echo
echo "--------------------------------------------------------------------------------"
echo
echo "🎉 All packages have been built!"
echo
echo "If you haven't done so already then go to \`packages/server/data\`,"
echo " copy \`config.template.yml\` to \`config.yml\` and set it up correctly."
echo
echo
echo "To run the server:"
echo
echo " yarn workspace server start -or- cd packages/server && yarn start"
echo
echo
echo "To run the embed webserver:"
echo
echo " yarn workspace embed start -or- cd packages/embed && yarn start"
echo
echo "--------------------------------------------------------------------------------"
echo