{"id":18581580,"url":"https://github.com/ember-codemods/tagless-ember-components-codemod","last_synced_at":"2025-04-10T11:35:23.464Z","repository":{"id":48272242,"uuid":"214195727","full_name":"ember-codemods/tagless-ember-components-codemod","owner":"ember-codemods","description":"Converts regular Ember.js components to `tagName: ''` components","archived":false,"fork":false,"pushed_at":"2024-10-01T11:24:41.000Z","size":560,"stargazers_count":6,"open_issues_count":14,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T20:21:56.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ember-codemods.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-10T13:52:38.000Z","updated_at":"2024-10-01T11:24:14.000Z","dependencies_parsed_at":"2022-08-23T15:20:49.617Z","dependency_job_id":null,"html_url":"https://github.com/ember-codemods/tagless-ember-components-codemod","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Ftagless-ember-components-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Ftagless-ember-components-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Ftagless-ember-components-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Ftagless-ember-components-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ember-codemods","download_url":"https://codeload.github.com/ember-codemods/tagless-ember-components-codemod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208688,"owners_count":21065205,"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":[],"created_at":"2024-11-07T00:06:10.859Z","updated_at":"2025-04-10T11:35:18.446Z","avatar_url":"https://github.com/ember-codemods.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tagless-ember-components-codemod\n==============================================================================\n\nConverts regular Ember.js components to `tagName: ''` components\n\n**This codemod is experimental and might break your app. Make sure to\nreview the changes that it creates!**\n\n\nUsage\n------------------------------------------------------------------------------\n\n```bash\nnpx tagless-ember-components-codemod\n```\n\n\nExample\n------------------------------------------------------------------------------\n\n```js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n  tagName: 'button',\n  attributeBindings: ['disabled', 'disabled:aria-disabled'],\n  classNames: ['custom-button'],\n  classNameBindings: ['blue:blue:red'],\n});\n```\n\n```hbs\n{{@text}}\n```\n\nwill be migrated to:\n\n```js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n  tagName: '',\n});\n```\n\n```hbs\n\u003cbutton disabled={{disabled}} aria-disabled={{disabled}} class=\"custom-button {{if this.blue \"blue\" \"red\"}}\"\u003e\n  {{@text}}\n\u003c/button\u003e\n```\n\n\nConfiguration\n------------------------------------------------------------------------------\n\n### Paths\n\nBy default, `tagless-ember-components-codemod` will process components in the\nfollowing folders relatively to project root:\n\n```\napp/components\naddon/components\n```\n\nYou may pass alternative paths or globs as arguments:\n\n```bash\n# process one component only\nnpx tagless-ember-components-codemod app/components/my-component.js\n\n# process a component and all components under it's namespace\nnpx tagless-ember-components-codemod app/components/my-component.js app/components/my-component/\n\n# process all components matching a glob\nnpx tagless-ember-components-codemod app/components/**/foo-*.js\n```\n\n### Debug\n\nDebug logging could be enabled by setting `DEBUG` environment variable to\n`tagless-ember-components-codemod`:\n\n```bash\nDEBUG=tagless-ember-components-codemod npx tagless-ember-components-codemod\n```\n\n\nKnown Caveats\n------------------------------------------------------------------------------\n\n- Due to the way `jscodeshift` works it sometimes removes empty lines between\n  component properties, or adds new ones unexpectedly\n\n- Since `click()` and other event hooks don't work for tagless components,\n  passing in something like `@click=(action ...)` also will not work anymore\n\n- [Open Issues](https://github.com/ember-codemods/tagless-ember-components-codemod/issues)\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis projects is released under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-codemods%2Ftagless-ember-components-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fember-codemods%2Ftagless-ember-components-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-codemods%2Ftagless-ember-components-codemod/lists"}