{"id":18763457,"url":"https://github.com/fabiandev/gulp-ng2-relative-path","last_synced_at":"2026-05-08T17:37:25.323Z","repository":{"id":57258346,"uuid":"55293715","full_name":"fabiandev/gulp-ng2-relative-path","owner":"fabiandev","description":"Gulp plugin to support relative paths in Angular2 for template and style files.","archived":false,"fork":false,"pushed_at":"2016-11-16T18:24:20.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-08T12:34:13.256Z","etag":null,"topics":["angular","gulp","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiandev.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":"2016-04-02T12:38:14.000Z","updated_at":"2017-09-20T22:25:43.000Z","dependencies_parsed_at":"2022-08-25T21:23:45.293Z","dependency_job_id":null,"html_url":"https://github.com/fabiandev/gulp-ng2-relative-path","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/fabiandev%2Fgulp-ng2-relative-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fgulp-ng2-relative-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fgulp-ng2-relative-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiandev%2Fgulp-ng2-relative-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiandev","download_url":"https://codeload.github.com/fabiandev/gulp-ng2-relative-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239617133,"owners_count":19669172,"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":["angular","gulp","javascript"],"created_at":"2024-11-07T18:26:12.330Z","updated_at":"2025-12-06T01:30:12.756Z","avatar_url":"https://github.com/fabiandev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-ng2-relative-path\n\nUse relative paths within Angular2 components for `templateUrl` and `styleUrls`.\n\nThis package is based on the work of [gulp-inline-ng2-template](https://github.com/ludohenin/gulp-inline-ng2-template).  \n\n# Installation\n\n```bash\nnpm install --save-dev gulp-ng2-relative-path\n```\n\n# Configurations\n\n```js\nvar defaults = {\n  base: './',                   // Source base folder\n  appBase: '/',                 // Angular app base folder\n  templateExtension: '.html',   // Template file extension\n  processTemplatePaths: true,   // Enable or disable template paths processing\n  processStylePaths: true,      // Enable or disable style paths processing\n  modifyPath: false,            // Function to additionally modify all file paths\n  modifyTemplatePath: false,    // Function to modify only template paths\n  modifyStylePath: false        // Function to modify only style paths\n};\n```\n\n# Example Usage\n\n```js\nvar ng2RelativePath = require('gulp-ng2-relative-path');\n\nvar result = gulp.src('./src/ts/**/*.ts')\n  .pipe(ng2RelativePath({\n    base: './src/ts',\n    appBase: '/app',\n    modifyStylePath: function (path) {\n      return path.replace('.less', '.css');\n    }\n  }))\n  .pipe(tsc());\n\nreturn result.js\n  .pipe(gulp.dest('./dist/app'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiandev%2Fgulp-ng2-relative-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiandev%2Fgulp-ng2-relative-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiandev%2Fgulp-ng2-relative-path/lists"}