{"id":16885807,"url":"https://github.com/haikyuu/ts2imba","last_synced_at":"2025-03-23T17:30:33.014Z","repository":{"id":41399287,"uuid":"508870274","full_name":"haikyuu/ts2imba","owner":"haikyuu","description":"A typescript to Imba converter","archived":false,"fork":false,"pushed_at":"2024-01-11T20:45:59.000Z","size":437,"stargazers_count":8,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-14T16:36:51.707Z","etag":null,"topics":["imba","jsx","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://ts2imba.com","language":"Imba","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haikyuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-06-29T23:07:37.000Z","updated_at":"2023-03-17T13:05:53.000Z","dependencies_parsed_at":"2023-09-21T20:26:28.795Z","dependency_job_id":"30e40eed-0ad4-4616-b28e-147ee10ce7c2","html_url":"https://github.com/haikyuu/ts2imba","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fts2imba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fts2imba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fts2imba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fts2imba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haikyuu","download_url":"https://codeload.github.com/haikyuu/ts2imba/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221856396,"owners_count":16892437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["imba","jsx","tailwindcss","typescript"],"created_at":"2024-10-13T16:37:04.870Z","updated_at":"2024-10-28T16:32:28.645Z","avatar_url":"https://github.com/haikyuu.png","language":"Imba","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Ceasefire Now](https://badge.techforpalestine.org/default)](https://techforpalestine.org/learn-more)\n## TS 2 Imba\nalpha software that works well enough\n\n- Doesn't support template literals atm. (and probably many other things) 😄 \n\nIt also converts react function components to imba tags and tailwind classes into imba inline styles\n\n# Current limitations\n- Should work in the browser ... but it doesn't for some reason (didn't spend much time trying to fix it since I was the only user)\n- Template literals have a weird AST representation. I'd rather just do some regex magic to remove unescaped $ and use \"\" or  \"\"\" instead. For now, I change ` to \" manually in the js code ^^\n- The majority of js2coffee tests aren't ported yet. \n\n# Contribute\nContributions are very welcome, the easiest way to contribute is to \n1. add a failing test case in an issue\n2. If you face `\"ASTType\" is not supported`, create a `def ASTType(node, ctx) do debugger` in `builder.imba` and see if you can make it work. Start with returning an array with a random string, then create a failing test case, focus on it with `test.only` and run vitest on the file `npx vitest my_file.test.imba`. You can find a simple test [here](https://github.com/haikyuu/ts2imba/blob/main/src/tests/advanced/exportNamed.test.imba)\n# Credits\n- This wouldn't have been possible without the amazing work of https://github.com/rstacruz on https://github.com/js2coffee/js2coffee\n- Thanks to @roman01la for https://github.com/roman01la/html-to-react-components\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaikyuu%2Fts2imba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaikyuu%2Fts2imba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaikyuu%2Fts2imba/lists"}