How can I use TypeScript to create an app using Shopify CLI?

I want to use TypeScript to build an app, but can’t see such option. How can I tell Shopify CLI to create app template with TypeScript ?

Hi @seymur_crsp

The Shopify CLI and Node template app repo does not support Typescript and the Shopify team have indicated that it never will:
https://github.com/Shopify/shopify-app-template-node/issues/690#issuecomment-1544724105)

However there are a couple of good community template forks which support Typescript:
https://github.com/KaiSpencer/shopify-app-template-node-ts
https://github.com/SaeedYasin/shopify-app-template-node

We build apps in Typescript and have good experience with it.
Let me know if you need any help.

Thanks,

Luke

Hi @PROPEL-AGENCY , Thanks for your information, but I have question, if I use above template how can I release my app to shopify, because I see in docs of template it said just run build in frontend folder and no need to build in BE

Do you know what this means for maintaining the app with shopify CLI? Do they have migrations and such and will you then need to update it manually?

I’m fairly new to Shopify, but I’m in the process of improving a fairly large Shopify codebase into something larger. A lot of the code has Liquid expressions embedded in the JavaScript client code, which then itself needs to be part of the page.

I have created a bundler that allows me to link to external TypeScript and bundle it all in the same liquid file as before, but now with the code living externally, I can start writing tests for it. Also, the typescript code can be compiled to any JavaScript you care for, and there is an option to minify it.

Check the included article for details.

Post on https://community.shopify.dev
These are the MERCHANT facing app RECOMMENDATION forums.
i’ve flagged the original post to be moved to a more relevant forum here