| 
														
															@@ -73,6 +73,9 @@ composeFiles="-f docker-compose.yml" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 if [[ ${APP_ENV} == "development" ]]; then 
														 | 
														
														 | 
														
															 if [[ ${APP_ENV} == "development" ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     composeFiles="${composeFiles} -f docker-compose.dev.yml" 
														 | 
														
														 | 
														
															     composeFiles="${composeFiles} -f docker-compose.dev.yml" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 fi 
														 | 
														
														 | 
														
															 fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+if [[ ${CONTAINER_MODE} == "local" ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    composeFiles="${composeFiles} -f docker-compose.local.yml" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 if [[ -f docker-compose.override.yml ]]; then 
														 | 
														
														 | 
														
															 if [[ -f docker-compose.override.yml ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     composeFiles="${composeFiles} -f docker-compose.override.yml" 
														 | 
														
														 | 
														
															     composeFiles="${composeFiles} -f docker-compose.override.yml" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 fi 
														 | 
														
														 | 
														
															 fi 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -305,17 +308,20 @@ handleLinting() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     set +e 
														 | 
														
														 | 
														
															     set +e 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *frontend* ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *frontend* ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo -e "${CYAN}Running frontend lint...${NC}" 
														 | 
														
														 | 
														
															         echo -e "${CYAN}Running frontend lint...${NC}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        ${dockerCompose} exec -T frontend npm run lint -- "${cache}" "${fix}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        # shellcheck disable=SC2086 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        ${dockerCompose} exec -T frontend npm run lint -- ${cache} ${fix} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         frontendExitValue=$? 
														 | 
														
														 | 
														
															         frontendExitValue=$? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *backend* ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *backend* ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo -e "${CYAN}Running backend lint...${NC}" 
														 | 
														
														 | 
														
															         echo -e "${CYAN}Running backend lint...${NC}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        ${dockerCompose} exec -T backend npm run lint -- "${cache}" "${fix}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        # shellcheck disable=SC2086 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        ${dockerCompose} exec -T backend npm run lint -- ${cache} ${fix} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         backendExitValue=$? 
														 | 
														
														 | 
														
															         backendExitValue=$? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *docs* ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *docs* ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo -e "${CYAN}Running docs lint...${NC}" 
														 | 
														
														 | 
														
															         echo -e "${CYAN}Running docs lint...${NC}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        ${docker} run --rm -v "${scriptLocation}":/workdir ghcr.io/igorshubovych/markdownlint-cli:latest ".wiki" "*.md" "${fix}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        # shellcheck disable=SC2086 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        ${docker} run --rm -v "${scriptLocation}":/workdir ghcr.io/igorshubovych/markdownlint-cli:latest ".wiki" "*.md" ${fix} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         docsExitValue=$? 
														 | 
														
														 | 
														
															         docsExitValue=$? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *shell* ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *shell* ]]; then 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -351,12 +357,14 @@ handleTypescript() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     set +e 
														 | 
														
														 | 
														
															     set +e 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *frontend* ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *frontend* ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo -e "${CYAN}Running frontend typescript check...${NC}" 
														 | 
														
														 | 
														
															         echo -e "${CYAN}Running frontend typescript check...${NC}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        ${dockerCompose} exec -T frontend npm run typescript -- "${strict}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        # shellcheck disable=SC2086 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        ${dockerCompose} exec -T frontend npm run typescript -- ${strict} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         frontendExitValue=$? 
														 | 
														
														 | 
														
															         frontendExitValue=$? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *backend* ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *backend* ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo -e "${CYAN}Running backend typescript check...${NC}" 
														 | 
														
														 | 
														
															         echo -e "${CYAN}Running backend typescript check...${NC}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        ${dockerCompose} exec -T backend npm run typescript -- "${strict}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        # shellcheck disable=SC2086 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        ${dockerCompose} exec -T backend npm run typescript -- ${strict} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         backendExitValue=$? 
														 | 
														
														 | 
														
															         backendExitValue=$? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     set -e 
														 | 
														
														 | 
														
															     set -e 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -368,8 +376,7 @@ handleTypescript() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # Execute automated tests in services 
														 | 
														
														 | 
														
															 # Execute automated tests in services 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 handleTests() 
														 | 
														
														 | 
														
															 handleTests() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 { 
														 | 
														
														 | 
														
															 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    # shellcheck disable=SC2068 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    servicesString=$(handleServices "backend frontend" ${services[@]}) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    servicesString=$(handleServices "backend frontend" "${@:2}") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [[ ${servicesString:0:1} != 1 ]]; then 
														 | 
														
														 | 
														
															     if [[ ${servicesString:0:1} != 1 ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         throw "${servicesString:2}\n${YELLOW}Usage: ${1} [backend, frontend]" 
														 | 
														
														 | 
														
															         throw "${servicesString:2}\n${YELLOW}Usage: ${1} [backend, frontend]" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 |