This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Improve developer workflow with SASS themes #720
Comments
Merging the repositories makes perfect sense given the extra-tight coupling between them. Hail to the monorepo :) |
gyoshev
added a commit
to telerik/kendo-theme-bootstrap
that referenced
this issue
Oct 11, 2017
works around the limitation, described in telerik/kendo-theme-default#720
Status update: the following script creates a lerna monorepo and imports the history from the current versions of the themes. Lerna can track which packages need updating, and release the necessary themes. Changes in the default theme release all themes, and changes in material/bootstrap release only them. Publishing is still a bit awkward, as most of the lerna options do not match our release monikers, but I'll post another update about that. #!/usr/bin/bash
set -e
# repo folders that will be moved to the monorepo
repos=(theme-default theme-bootstrap theme-material)
# target folder of the monorepo
monorepo=themes
# colors
green=$(tput setaf 82)
normal=$(tput sgr0)
# create lerna folder
printf "\n%s\n" "${green}Creating monorepo...${normal}"
rm -rf $monorepo
mkdir $monorepo
cd $monorepo
git init
lerna init --independent
git add .
git commit -am "chore: initial monorepo commit"
for repo in "${repos[@]}"
do
printf "\n%s\n" "${green}Merging with $repo...${normal}"
git -C ../$repo checkout develop
git -C ../$repo pl
node ../lerna/bin/lerna.js import ../$repo --flatten --yes --loglevel success
done
printf "\n%s\n" "${green}Bootstrapping repositories...${normal}"
lerna bootstrap
printf "\n%s\n" "${green}Fetching repo versions from NPM...${normal}"
for repo in "${repos[@]}"
do
cd packages/$repo
version=$(npm info @progress/kendo-$repo version)
sed -i "s/\"version\": \".*\"/\"version\": \"$version\"/" package.json
cd -
done
git commit -am "chore: use latest package versions" --no-verify |
The repositories are merged in a monorepo, and work on visual regression tests is underway in the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently the developer workflow for the SASS themes suffers from several problems:
All of the above contributes to a general brittleness of the themes, as pull requests cannot be efficiently verified and merged.
To resolve the above, I suggest the following:
Comments and suggestions are more than welcome.
/cc @rkonstantinov @ggkrustev @tsvetomir @joneff
The text was updated successfully, but these errors were encountered: