{"id":15388700,"url":"https://github.com/petermikitsh/babel-plugin-angular-inline-component","last_synced_at":"2026-04-20T13:02:59.675Z","repository":{"id":150552895,"uuid":"194909917","full_name":"petermikitsh/babel-plugin-angular-inline-component","owner":"petermikitsh","description":"Babel plugin to Inline Angular 2+ Component templateUrl, styleUrls","archived":false,"fork":false,"pushed_at":"2020-07-17T15:54:22.000Z","size":47,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T23:17:45.871Z","etag":null,"topics":["angular","babel","component","inline","templates"],"latest_commit_sha":null,"homepage":"","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/petermikitsh.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-02T17:49:14.000Z","updated_at":"2019-07-03T17:04:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1172f98-c1e3-406e-9f03-5eb90a38e656","html_url":"https://github.com/petermikitsh/babel-plugin-angular-inline-component","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"acefd2655b7de980a85dab3a7f20e326c825e7a2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petermikitsh/babel-plugin-angular-inline-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fbabel-plugin-angular-inline-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fbabel-plugin-angular-inline-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fbabel-plugin-angular-inline-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fbabel-plugin-angular-inline-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petermikitsh","download_url":"https://codeload.github.com/petermikitsh/babel-plugin-angular-inline-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermikitsh%2Fbabel-plugin-angular-inline-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","babel","component","inline","templates"],"created_at":"2024-10-01T14:58:02.644Z","updated_at":"2026-04-20T13:02:59.658Z","avatar_url":"https://github.com/petermikitsh.png","language":"JavaScript","readme":"# babel-plugin-angular-inline-component\n\nBabel plugin to Inline Angular 2+ Component decorator `templateUrl` and `styleUrls`.\n\n## Usage\n\n```\nnpm i github:petermikitsh/babel-plugin-angular-inline-component\n```\n\nIn `.babelrc`:\n\n```\n{\n  plugins: ['babel-plugin-angular-inline-component']\n}\n```\n\n## Example\n\n### Input\n\n```js\nimport { Component } from '@angular/core';\n\n@Component({\n  selector: 'test-component',\n  templateUrl: './test.component.html',\n  styleUrls: ['./test.component.css']\n})\nexport class TestComponent {}\n```\n\n### Output\n\n```js\nimport { Component } from '@angular/core';\n\n@Component({\n  selector: 'test-component',\n  template: \"\u003cdiv\u003e\\n  \u003cdiv class=\\\"title\\\"\u003efoo\u003c/div\u003e\\n  \u003cdiv\u003ebar\u003c/div\u003e\\n\u003c/div\u003e\\n\",\n  styles: [\".title {\\n  color: red;\\n}\\n\"]\n})\nexport class TestComponent {}\n```\n\n### Limitations\n\nOnly `styleUrls` with a `.css` extension are supported.\n\n### Development\n\nThis module was developed against Node `v8.15.0`.\n\n```\nnpm i\nnpm run watch\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermikitsh%2Fbabel-plugin-angular-inline-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetermikitsh%2Fbabel-plugin-angular-inline-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermikitsh%2Fbabel-plugin-angular-inline-component/lists"}