I am a complete newcomer to GTK & GJS development. I write TypeScript professionally and I prefer using TypeScript using plain JavaScript. I see that multiple GTK apps are written in TypeScript now.
One popular example is pop-os/shell, however that project does not use type definitions for GJS itself. It also uses quite a weird build setup with sed scripts.
Then I found ts-for-gir which seems to be the most mature library that provides types for GJS. They also have a lot of example projects. Meson is not used as a build tool for these example projects (esbuild is used instead for most).
It would be great to have a standard template for starting out GJS development that includes TypeScript.
I am a complete newcomer to GTK & GJS development. I write TypeScript professionally and I prefer using TypeScript using plain JavaScript. I see that multiple GTK apps are written in TypeScript now.
One popular example is pop-os/shell, however that project does not use type definitions for GJS itself. It also uses quite a weird build setup with
sedscripts.Then I found ts-for-gir which seems to be the most mature library that provides types for GJS. They also have a lot of example projects. Meson is not used as a build tool for these example projects (esbuild is used instead for most).
It would be great to have a standard template for starting out GJS development that includes TypeScript.