infinitered / gluegun

A delightful toolkit for building TypeScript-powered command-line apps.
MIT License
2.95k stars 147 forks source link

Question: Upgrading gluegun from v2 to v4 #679

Closed cmburcus closed 4 years ago

cmburcus commented 4 years ago

Hi,

First and foremost, thank you for all the amazing work done! I am loving everything about this tool!

I started playing around with gluegun a while back when it was in version 2. Back then there was no option for typescript. I want to upgrade my version to the latest (4.1.1) and I wanted to know if there is some sort of guide to do so?

I know in theory it shouldn't be that hard but I'm trying to avoid having to create a new cli and porting my files over. If there is no guide, if anyone has done this have any pointers for what's the easiest way to go about it, it would be greatly appreciated.

Thank you!

jamonholmgren commented 4 years ago

Hey @cmburcus! Thanks so much for the kind words, you made my day. 😀

You should be able to upgrade to 4.1.2 without much in the way of problems. Give it a go and see what happens. Gluegun 1-2 was a bigger change than 2-4.

3.0 changelog: https://github.com/infinitered/gluegun/releases/tag/v3.0.0 4.0 changelog: https://github.com/infinitered/gluegun/releases/tag/v4.0.0

If you want to enable TypeScript, take a look at the current template and see how we set it up. Look especially in the root folder. For the most part, you shouldn't have to change much in the commands themselves.

cmburcus commented 4 years ago

Thank you for your answer @jamonholmgren ! I'll give it a go :) I'll re-post if I need any help. Really excited to start using typescript with gluegun!