Remote git repo theme manager
REPO, BRANCH, THEME, DESTINATION_FOLDER - environment variables needed for this project
In a project (for example MainMenu) where you need to install this package, please use script like this:
REPO=git@github.com:TheCodeGodOfJava/Themes.git BRANCH=main THEME=lorem DESTINATION_FOLDER=current_theme DEFAULT_THEME=def node node_modules/@serhiy_ivanov/theme-loader/themeScripts/downloadTheme.js
In this project, to test the script, please use it like this, or create a script in "scripts" in the package.json
REPO=git@github.com:TheCodeGodOfJava/Themes.git BRANCH=main THEME=lorem DESTINATION_FOLDER=current_theme DEFAULT_THEME=def node themeScripts/downloadTheme.js