{"id":15574077,"url":"https://github.com/michaelbazos/angular-inline-resources","last_synced_at":"2025-08-21T07:33:42.742Z","repository":{"id":57178602,"uuid":"93073725","full_name":"michaelbazos/angular-inline-resources","owner":"michaelbazos","description":"Inline external templates and stylesheets of components, so as to help you with the packaging of an angular library.","archived":false,"fork":false,"pushed_at":"2017-11-10T00:08:27.000Z","size":17,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T08:25:19.211Z","etag":null,"topics":["angular","angular2","component-library","components","inline-styles","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/michaelbazos.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-06-01T15:45:54.000Z","updated_at":"2023-06-05T11:04:50.000Z","dependencies_parsed_at":"2022-09-09T17:11:43.099Z","dependency_job_id":null,"html_url":"https://github.com/michaelbazos/angular-inline-resources","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/michaelbazos/angular-inline-resources","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbazos%2Fangular-inline-resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbazos%2Fangular-inline-resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbazos%2Fangular-inline-resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbazos%2Fangular-inline-resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelbazos","download_url":"https://codeload.github.com/michaelbazos/angular-inline-resources/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelbazos%2Fangular-inline-resources/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269982153,"owners_count":24507320,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","angular2","component-library","components","inline-styles","inline-templates"],"created_at":"2024-10-02T18:15:20.708Z","updated_at":"2025-08-12T01:09:42.265Z","avatar_url":"https://github.com/michaelbazos.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/angular-inline-resources.svg?style=flat-square\" alt=\"version\"/\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/angular-inline-resources.svg?style=flat-square\" alt=\"license\"/\u003e\n    \u003cimg src=\"https://img.shields.io/travis/michaelbazos/angular-inline-resources.svg?style=flat-square\" alt=\"license\"/\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eangular-inline-resources\u003c/h1\u003e \n\nThe current package is meant to simplify the packaging workflow of an angular library, by inlining the html templates and the stylesheets of your angular components. The inlining logic is from [@angular/material2](https://github.com/angular/material2) library.\n\n## Installation\n\n```\nnpm install angular-inline-resources --save-dev\n```\n\n## Usage\n\n```js\nconst inlineResources = require('angular-inline-resources');\nconst fs = require('fs-extra');\n\n// Copy folder 'src' to 'tmp' then inline resources\nPromise.resolve()\n            .then(() =\u003e fs.copy('src', 'tmp'))\n            .then(() =\u003e inlineResources('tmp'))\n```\n\nor in your gulp workflow:\n\n```js\n//\n// Example of a gulp task\n//\ngulp.task('angular:inline', () =\u003e {\n  return Promise.resolve()\n    .then(() =\u003e inlineResources('tmp'));\n});\n```\n\nThe above will process all your `*.ts` or `*.js` component files from _\u003cpath-to-copied-sources\u003e_, and replace all `templateUrl` and `styleUrls` properties to their inline equivalent.\n\n## License\n\nMIT © [Michael Bazos](https://github.com/michaelbazos)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelbazos%2Fangular-inline-resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelbazos%2Fangular-inline-resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelbazos%2Fangular-inline-resources/lists"}