{"id":13834711,"url":"https://github.com/deamme/ts-transform-inferno","last_synced_at":"2025-04-11T19:22:16.279Z","repository":{"id":24422509,"uuid":"101478825","full_name":"deamme/ts-transform-inferno","owner":"deamme","description":"Typescript transformer for InfernoJS","archived":false,"fork":false,"pushed_at":"2022-03-04T08:04:17.000Z","size":201,"stargazers_count":53,"open_issues_count":7,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T15:15:54.943Z","etag":null,"topics":["inferno","transform","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/deamme.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}},"created_at":"2017-08-26T10:25:03.000Z","updated_at":"2024-09-28T21:38:25.000Z","dependencies_parsed_at":"2022-07-25T14:02:19.644Z","dependency_job_id":null,"html_url":"https://github.com/deamme/ts-transform-inferno","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deamme%2Fts-transform-inferno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deamme%2Fts-transform-inferno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deamme%2Fts-transform-inferno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deamme%2Fts-transform-inferno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deamme","download_url":"https://codeload.github.com/deamme/ts-transform-inferno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465352,"owners_count":21108244,"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":["inferno","transform","typescript"],"created_at":"2024-08-04T14:00:51.314Z","updated_at":"2025-04-11T19:22:16.253Z","avatar_url":"https://github.com/deamme.png","language":"TypeScript","funding_links":[],"categories":["Transformers"],"sub_categories":["Optimization"],"readme":"# ts-transform-inferno\n\n[![travis](https://travis-ci.org/deamme/ts-transform-inferno.svg?branch=master)](https://travis-ci.org/deamme/ts-transform-inferno)\n[![npm version](https://badge.fury.io/js/ts-transform-inferno.svg)](https://badge.fury.io/js/ts-transform-inferno)\n\nTypescript transformer for [InfernoJS](https://github.com/infernojs/inferno).\n\nA Typescript transformer is like a plugin to the Typescript compiler, so if you're using Typescript anyway in your project you don't need Babel as a dependency.\n\n# Install\n\n`yarn add -D ts-transform-inferno typescript`\n\n## General usage\n\n```javascript\nconst transformInferno = require('ts-transform-inferno').default\n\ntransformInferno()\n```\n\nIt's different depending on what bundler you're using. Please check the examples folder.\n\n### Usage with css-modules-next\n\nCheck out the examples folder [here](https://github.com/deamme/ts-transform-css-modules-next).\n\n### Usage with classcat\n\nThe examples are already using this. It's a custom transformer than comes before ts-transform-inferno. More about it [here](https://github.com/deamme/ts-transform-classcat).\n\n## Usage with FuseBox (recommended)\n\nLook into the `examples/fuse-box` folder and the `fuse.js` file.\n\nYou could also try to build the project by running the following commands:\n\n`cd examples/fuse-box \u0026\u0026 npm install`\n\n`npm run start:dev` or `npm run start:prod`\n\n## Usage with webpack and ts-loader\n\nLook into the `examples/webpack` folder and its webpack config.\n\nYou could also try to build the project by running the following commands:\n\n`cd examples/webpack \u0026\u0026 npm install`\n\n`npm run build:prod` or `npm start`\n\n## Testing\n\nYou can run the following command to test: `npm test`\n\n### Adding test cases\n\nWrite your test in a `.tsx` file and add it to `tests/cases`.\n\nCompile with `npm test` and look into the `tests/temp` and verify.\n\nOverwrite references by running the following command: `npm run overwrite-references`\n\nRun `npm test` again to verify that all tests are passing.\n\n## Credits\n\nVery much inspired by these projects:\n\n- [inferno-typescript-example](https://github.com/infernojs/inferno-typescript-example)\n- [ts-transform-css-modules](https://github.com/longlho/ts-transform-css-modules)\n- [ts-transform-react-intl](https://github.com/longlho/ts-transform-react-intl)\n- [babel-plugin-inferno](https://github.com/infernojs/babel-plugin-inferno)\n- [TypeScript](https://github.com/Microsoft/TypeScript)\n- [hyperapp-fusebox](https://github.com/osdevisnot/hyperapp-fusebox)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeamme%2Fts-transform-inferno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeamme%2Fts-transform-inferno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeamme%2Fts-transform-inferno/lists"}