{"id":19021742,"url":"https://github.com/unitejs/gulp-inline-vue-template","last_synced_at":"2026-05-17T19:03:50.454Z","repository":{"id":57257931,"uuid":"106795469","full_name":"unitejs/gulp-inline-vue-template","owner":"unitejs","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-02T05:44:04.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T10:46:39.656Z","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/unitejs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-13T08:00:03.000Z","updated_at":"2019-01-02T05:44:06.000Z","dependencies_parsed_at":"2022-08-25T21:23:34.101Z","dependency_job_id":null,"html_url":"https://github.com/unitejs/gulp-inline-vue-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitejs%2Fgulp-inline-vue-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitejs%2Fgulp-inline-vue-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitejs%2Fgulp-inline-vue-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitejs%2Fgulp-inline-vue-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unitejs","download_url":"https://codeload.github.com/unitejs/gulp-inline-vue-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240065954,"owners_count":19742599,"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-08T20:23:21.806Z","updated_at":"2026-04-28T18:30:16.467Z","avatar_url":"https://github.com/unitejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gulp Inline Vue\n\nThis plugin will allow you to use url syntax in your template line to compile and inline templates in your source code.\n\nAlso any inline templates will be compiled as well.\n\n## Installation\n\n```shell\nnpm install gulp-inline-vue-template --save-dev\n```\n\n## Usage\n\nIf your template line looks like it is including a vue file then it will be compiled and inlined during the gulp pipe process.\n\nmyView.js\n\n```javascript\n@Component({\n    template: \"./myView.vue\"\n})\nexport class MyView extends Vue {\n}\n```\n\nmyView.vue\n\n```html\n\u003ctemplate\u003e\n    \u003cspan\u003eHello World!\u003c/span\u003e\n\u003c/template\u003e\n```\n\nIf you then pipe your source through the plugin during your gulp processing as follows:\n\n```javascript\nvar inlineVue = require('gulp-inline-vue-template');\n\ngulp.task('inline-vue', function () {\n  return gulp.src('./src/**/*.js')\n    .pipe(inlineVue())\n    .pipe(gulp.dest('./dist'));\n});\n```\n\nYour output will be:\n\nmyView.js\n\n```javascript\n@Component({\n    template: function anonymous() {\n        var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_vm._v(\"Hello World!\")])\n    }\n})\nexport class MyView extends Vue {\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitejs%2Fgulp-inline-vue-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funitejs%2Fgulp-inline-vue-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitejs%2Fgulp-inline-vue-template/lists"}