-
Notifications
You must be signed in to change notification settings - Fork 61
Best approach for upgrading a template? #132
Comments
For an already generated project it's hard to upgrade automatically since you may have changed many files 🤔 |
It would be incredible for sao to have a package (possibly one even built-in) that lets you do this by plugging the package into your CLI. |
This would be the BEST feature for Sao by far compared to ANY other template/scaffolding too. |
Also would gladly donate to you to help build something like this 😄 |
I found your Patreon, now a supporter. |
Thanks, I'll take a look at the react-native solution, this is definitely a missing feature for every scaffolding tool. |
Let me know! |
Codemods would work well. JSCodeShift is a solid tool. Good example usage with jest. |
Would be awesome to have this 🙌 |
I am awarding a $200 bug bounty for this issue. |
I will create a website like https://react-native-community.github.io/upgrade-helper to show the diffs between two versions of a generator |
@egoist Hey! I also shared this with @shaunwarman - but I think having a CLI tool like this would be great: |
Yes, a separate CLI tool like that is also planned. |
Any update here @egoist ? |
Checking in again @egoist , I should have bandwidth to dive in and help, but unsure if you have some ideas / todos for this new CLI tool |
Let's say someone upgrades to a newer version of a CLI of Sao, e.g.
lad
(see https://github.com/ladjs/lad) vianpm install -g lad@latest
. They then want to upgrade their template. What would be the best approach? Just a git clone and then apply the diff between template directory and the user's project dir?The text was updated successfully, but these errors were encountered: