Skip to content

Commit 8f0e6c0

Browse files
committed
fix(global): update the installation script
1 parent 8cbf94e commit 8f0e6c0

File tree

1 file changed

+12
-39
lines changed

1 file changed

+12
-39
lines changed

scripts/configure.sh

+12-39
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ function install_apps_dependencies() {
7272

7373
echo "✅ Root dependencies installed."
7474
echo ""
75+
76+
echo "Install all apps dependencies"
77+
npm run ci:all
78+
echo "✔ All dependencies were downloaded and installed"
79+
echo "-----------"
7580
}
7681

7782
function setup_and_run_infrastructure() {
@@ -92,47 +97,11 @@ function setup_and_run_infrastructure() {
9297
echo "Creating database"
9398

9499
# It drops and creates database then load the seed.
95-
(cd api && npm ci && npm run db:reset)
100+
(cd api && npm run db:reset)
96101

97102
echo "✅ Database created"
98103
echo ""
99104

100-
# Install dependencies for admin
101-
echo "Installing dependencies for admin"
102-
(cd admin && npm ci)
103-
echo "✅ Dependencies for admin were installed"
104-
echo ""
105-
106-
# Install dependencies for audit-logger
107-
echo "Installing dependencies for audit-logger"
108-
(cd audit-logger && npm ci)
109-
echo "✅ Dependencies for audit-logger were installed"
110-
echo ""
111-
112-
# Install dependencies for "certif"
113-
echo "Installing dependencies for certif"
114-
(cd certif && npm ci)
115-
echo "✅ Dependencies for certif were installed"
116-
echo ""
117-
118-
# Install dependencies for "junior"
119-
echo "Installing dependencies for junior"
120-
(cd junior && npm ci)
121-
echo "✅ Dependencies for junior were installed"
122-
echo ""
123-
124-
# Install dependencies for "mon-pix"
125-
echo "Installing dependencies for mon-pix"
126-
(cd mon-pix && npm ci)
127-
echo "✅ Dependencies for mon-pix were installed"
128-
echo ""
129-
130-
# Install dependencies for orga
131-
echo "Installing dependencies for orga"
132-
(cd orga && npm ci)
133-
echo "✅ Dependencies for orga were installed"
134-
echo "-----------"
135-
echo "✔ All dependencies were downloaded and installed"
136105

137106
}
138107

@@ -145,7 +114,11 @@ function display_footer {
145114
display_banner
146115
display_header
147116
verify_prerequesite_programs
148-
generate_environment_config_file
149-
setup_and_run_infrastructure
117+
if [ "$1" == "notvariables" ]; then
118+
echo "Skipping environment variables generation"
119+
else
120+
generate_environment_config_file
121+
fi
150122
install_apps_dependencies
123+
setup_and_run_infrastructure
151124
display_footer

0 commit comments

Comments
 (0)