# Any interest in a generator for app.json from typescript code?

**URL:** <https://community.homey.app/t/any-interest-in-a-generator-for-app-json-from-typescript-code/22418>\
**Category:** Developers\
**Created:** [December 13, 2019, 6:12am UTC](https://community.homey.app/t/any-interest-in-a-generator-for-app-json-from-typescript-code/22418 "2019-12-13T06:12:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Medin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_medin/32/2311_2.png) [@Michael\_Medin](https://community.homey.app/u/Michael_Medin)\
**Post date:** [December 13, 2019, 6:12am UTC](https://community.homey.app/t/any-interest-in-a-generator-for-app-json-from-typescript-code/22418/1 "2019-12-13T06:12:57Z")

</div>

As I am using typescript to write my homey app got fed up with updating app.json so I wrote a quick typescript -\> app.json generator.  
Now I am curious if there is anyone else using typescript and feels a need for something similar and if so if they would like to collaborate on making it into a node library?  
Currently it is very bare bones and does only what I need.

In essence it turns this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/4/a4c1e059bdf155cede723d00340a04d242f0f83d.png)  
into this:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bf4f1051a76e2a784a8779eb27cde4931693ced3.png)

Not sure if it makes sense or even if anyone is using typescript…  
So just throwing this out to see if it sticks somewhere…

PS: In case you are wondering about handling multiple languages the idea is to use a translation file like for the regular app.

// Michael Medin

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [December 13, 2019, 11:38am UTC](https://community.homey.app/t/any-interest-in-a-generator-for-app-json-from-typescript-code/22418/2 "2019-12-13T11:38:22Z")

</div>

The [Homey compose plugin](https://github.com/athombv/node-athom-cli/blob/master/lib/AppPluginCompose/index.js) that the [CLI](https://github.com/athombv/node-athom-cli) offers build-in, is for my doing more then enough to keep the app.json easily manageable

---

<div class="post-metadata">

**Author:** ![Michael\_Medin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_medin/32/2311_2.png) [@Michael\_Medin](https://community.homey.app/u/Michael_Medin)\
**Post date:** [December 13, 2019, 4:10pm UTC](https://community.homey.app/t/any-interest-in-a-generator-for-app-json-from-typescript-code/22418/3 "2019-12-13T16:10:25Z")

</div>

As I understand it that does not actually help you with updating the file it simply assemble the file from a bunch of other files you manually edit right?

The idea here is create the file based on whats in my source code, so adding a new trigger to my code will also add the corresponding json entries as well as keeping the two in sync.

---

<div class="post-metadata">

**Author:** ![Sinled](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sinled/32/1559_2.png) [@Sinled](https://community.homey.app/u/Sinled)\
**Post date:** [June 20, 2020, 8:54am UTC](https://community.homey.app/t/any-interest-in-a-generator-for-app-json-from-typescript-code/22418/4 "2020-06-20T08:54:23Z")

</div>

Is this a thing?  
I’ve been thinking about trying ts for new app, and this might come in handy. Also maybe you have starter template for ts based app?
