Closed Morgy93 closed 4 months ago
Related to #30
Refactor code to increase maintainability and readability by creating smaller functions with single jobs and moving them to separate files.
Refactor build functions:
build
hyvaConfigGenerate
hyva_config_generate.sh
clearCache
clear_cache.sh
clearStaticFiles
clear_static_files.sh
buildMagentoDefault
build_magento_default.sh
buildHyva
build_hyva.sh
Refactor checks functions:
checks
checkHyva
check_hyva.sh
checkForNewThemeConfig
check_for_new_theme_config.sh
migrateThemesToNewConfig
migrate_themes_to_new_config.sh
Refactor themes functions:
themes
getMagento2_ThemeStoreCodes
get_magento2_theme_store_codes.sh
getThemesFromDB
get_themes_from_db.sh
addThemesToConfig
add_themes_to_config.sh
readThemesInConfig
read_themes_in_config.sh
checkThemePathExists
check_theme_path_exists.sh
Update build script:
Update checks script:
Update themes script:
For more details, open the Copilot Workspace session.
🫣 how high is the chance that will work? 😅
Related to #30
Refactor code to increase maintainability and readability by creating smaller functions with single jobs and moving them to separate files.
Refactor
build
functions:hyvaConfigGenerate
function tohyva_config_generate.sh
clearCache
function toclear_cache.sh
clearStaticFiles
function toclear_static_files.sh
buildMagentoDefault
function tobuild_magento_default.sh
buildHyva
function tobuild_hyva.sh
Refactor
checks
functions:checkHyva
function tocheck_hyva.sh
checkForNewThemeConfig
function tocheck_for_new_theme_config.sh
migrateThemesToNewConfig
function tomigrate_themes_to_new_config.sh
Refactor
themes
functions:getMagento2_ThemeStoreCodes
function toget_magento2_theme_store_codes.sh
getThemesFromDB
function toget_themes_from_db.sh
addThemesToConfig
function toadd_themes_to_config.sh
readThemesInConfig
function toread_themes_in_config.sh
checkThemePathExists
function tocheck_theme_path_exists.sh
Update
build
script:Update
checks
script:Update
themes
script:For more details, open the Copilot Workspace session.