Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best approach for upgrading a template? #132

Open
niftylettuce opened this issue Sep 18, 2019 · 9 comments

Comments

@niftylettuce
Copy link
Member

@niftylettuce niftylettuce commented Sep 18, 2019

Let's say someone upgrades to a newer version of a CLI of Sao, e.g. lad (see https://github.com/ladjs/lad) via npm 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?

@egoist

This comment has been minimized.

Copy link
Member

@egoist egoist commented Sep 18, 2019

For an already generated project it's hard to upgrade automatically since you may have changed many files 🤔

@niftylettuce

This comment has been minimized.

Copy link
Member Author

@niftylettuce niftylettuce commented Sep 18, 2019

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.

@niftylettuce

This comment has been minimized.

Copy link
Member Author

@niftylettuce niftylettuce commented Sep 18, 2019

This would be the BEST feature for Sao by far compared to ANY other template/scaffolding too.

@niftylettuce

This comment has been minimized.

Copy link
Member Author

@niftylettuce niftylettuce commented Sep 18, 2019

Also would gladly donate to you to help build something like this 😄

@niftylettuce

This comment has been minimized.

Copy link
Member Author

@niftylettuce niftylettuce commented Sep 18, 2019

I found your Patreon, now a supporter.

@egoist

This comment has been minimized.

Copy link
Member

@egoist egoist commented Sep 18, 2019

Thanks, I'll take a look at the react-native solution, this is definitely a missing feature for every scaffolding tool.

@niftylettuce

This comment has been minimized.

Copy link
Member Author

@niftylettuce niftylettuce commented Nov 20, 2019

Let me know!

@shaunwarman

This comment has been minimized.

Copy link

@shaunwarman shaunwarman commented Nov 20, 2019

Codemods would work well. JSCodeShift is a solid tool. Good example usage with jest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.