{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/1","id":92548222,"html_url":"https://github.com/MaKleSoft/gulp-style-modules/pull/1","diff_url":"https://github.com/MaKleSoft/gulp-style-modules/pull/1.diff","patch_url":"https://github.com/MaKleSoft/gulp-style-modules/pull/1.patch","issue_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues/1","number":1,"state":"open","locked":false,"title":"Prepend Html Import to Template","user":{"login":"tobilen","id":8217788,"avatar_url":"https://avatars.githubusercontent.com/u/8217788?v=3","gravatar_id":"","url":"https://api.github.com/users/tobilen","html_url":"https://github.com/tobilen","followers_url":"https://api.github.com/users/tobilen/followers","following_url":"https://api.github.com/users/tobilen/following{/other_user}","gists_url":"https://api.github.com/users/tobilen/gists{/gist_id}","starred_url":"https://api.github.com/users/tobilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobilen/subscriptions","organizations_url":"https://api.github.com/users/tobilen/orgs","repos_url":"https://api.github.com/users/tobilen/repos","events_url":"https://api.github.com/users/tobilen/events{/privacy}","received_events_url":"https://api.github.com/users/tobilen/received_events","type":"User","site_admin":false},"body":"adds additional possible parameter \"includeFile\". for each generated style-module, an html import will be prepended to this file.\r\n\r\nusage example:\r\n`var stylemodTask = function () {\r\n  return gulp.src(paths.src)\r\n  .pipe(changed(paths.dest)) // Ignore unchanged files\r\n  .pipe(sass(config.tasks.css.sass))\r\n  .on('error', handleErrors)\r\n  .pipe(autoprefixer(config.tasks.css.autoprefixer))\r\n  .pipe(gulpif(global.production, cssnano({autoprefixer: false})))\r\n  .pipe(gulpif(!global.production, sourcemaps.write()))\r\n  .pipe(stylemod({\r\n    filename: function(file) {\r\n      //component name is name of last folder\r\n      var componentName = path.dirname(file.path).split(path.sep).pop()\r\n      return componentName + \"-\" + path.basename(file.path, path.extname(file.path));\r\n    },\r\n    moduleId: function (file) {\r\n      //component name is name of last folder\r\n      var componentName = path.dirname(file.path).split(path.sep).pop()\r\n      return componentName + \"-\" + path.basename(file.path, path.extname(file.path));\r\n    },\r\n    includeFile: function (file) {\r\n      //component name is name of last folder\r\n      var componentName = path.dirname(file.path).split(path.sep).pop()\r\n      return `${config.root.dest}/${config.tasks.webcomponents.dest}/${componentName}/template.html`\r\n    }\r\n  }))\r\n  .pipe(gulp.dest(paths.dest))\r\n  .pipe(browserSync.stream())\r\n}`","created_at":"2016-11-07T09:27:26Z","updated_at":"2016-11-07T09:27:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/1/commits","review_comments_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/1/comments","review_comment_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues/1/comments","statuses_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/statuses/48e2f5184f13aa8aa482fb29e256bfa430c7c584","head":{"label":"tobilen:html-import","ref":"html-import","sha":"48e2f5184f13aa8aa482fb29e256bfa430c7c584","user":{"login":"tobilen","id":8217788,"avatar_url":"https://avatars.githubusercontent.com/u/8217788?v=3","gravatar_id":"","url":"https://api.github.com/users/tobilen","html_url":"https://github.com/tobilen","followers_url":"https://api.github.com/users/tobilen/followers","following_url":"https://api.github.com/users/tobilen/following{/other_user}","gists_url":"https://api.github.com/users/tobilen/gists{/gist_id}","starred_url":"https://api.github.com/users/tobilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobilen/subscriptions","organizations_url":"https://api.github.com/users/tobilen/orgs","repos_url":"https://api.github.com/users/tobilen/repos","events_url":"https://api.github.com/users/tobilen/events{/privacy}","received_events_url":"https://api.github.com/users/tobilen/received_events","type":"User","site_admin":false},"repo":{"id":72695962,"name":"gulp-style-modules","full_name":"tobilen/gulp-style-modules","owner":{"login":"tobilen","id":8217788,"avatar_url":"https://avatars.githubusercontent.com/u/8217788?v=3","gravatar_id":"","url":"https://api.github.com/users/tobilen","html_url":"https://github.com/tobilen","followers_url":"https://api.github.com/users/tobilen/followers","following_url":"https://api.github.com/users/tobilen/following{/other_user}","gists_url":"https://api.github.com/users/tobilen/gists{/gist_id}","starred_url":"https://api.github.com/users/tobilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobilen/subscriptions","organizations_url":"https://api.github.com/users/tobilen/orgs","repos_url":"https://api.github.com/users/tobilen/repos","events_url":"https://api.github.com/users/tobilen/events{/privacy}","received_events_url":"https://api.github.com/users/tobilen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tobilen/gulp-style-modules","description":"A gulp plugin for wrapping css into style modules as used by Polymer","fork":true,"url":"https://api.github.com/repos/tobilen/gulp-style-modules","forks_url":"https://api.github.com/repos/tobilen/gulp-style-modules/forks","keys_url":"https://api.github.com/repos/tobilen/gulp-style-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tobilen/gulp-style-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tobilen/gulp-style-modules/teams","hooks_url":"https://api.github.com/repos/tobilen/gulp-style-modules/hooks","issue_events_url":"https://api.github.com/repos/tobilen/gulp-style-modules/issues/events{/number}","events_url":"https://api.github.com/repos/tobilen/gulp-style-modules/events","assignees_url":"https://api.github.com/repos/tobilen/gulp-style-modules/assignees{/user}","branches_url":"https://api.github.com/repos/tobilen/gulp-style-modules/branches{/branch}","tags_url":"https://api.github.com/repos/tobilen/gulp-style-modules/tags","blobs_url":"https://api.github.com/repos/tobilen/gulp-style-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tobilen/gulp-style-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tobilen/gulp-style-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/tobilen/gulp-style-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tobilen/gulp-style-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/tobilen/gulp-style-modules/languages","stargazers_url":"https://api.github.com/repos/tobilen/gulp-style-modules/stargazers","contributors_url":"https://api.github.com/repos/tobilen/gulp-style-modules/contributors","subscribers_url":"https://api.github.com/repos/tobilen/gulp-style-modules/subscribers","subscription_url":"https://api.github.com/repos/tobilen/gulp-style-modules/subscription","commits_url":"https://api.github.com/repos/tobilen/gulp-style-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/tobilen/gulp-style-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/tobilen/gulp-style-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/tobilen/gulp-style-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/tobilen/gulp-style-modules/contents/{+path}","compare_url":"https://api.github.com/repos/tobilen/gulp-style-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tobilen/gulp-style-modules/merges","archive_url":"https://api.github.com/repos/tobilen/gulp-style-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tobilen/gulp-style-modules/downloads","issues_url":"https://api.github.com/repos/tobilen/gulp-style-modules/issues{/number}","pulls_url":"https://api.github.com/repos/tobilen/gulp-style-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/tobilen/gulp-style-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/tobilen/gulp-style-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tobilen/gulp-style-modules/labels{/name}","releases_url":"https://api.github.com/repos/tobilen/gulp-style-modules/releases{/id}","deployments_url":"https://api.github.com/repos/tobilen/gulp-style-modules/deployments","created_at":"2016-11-03T01:18:15Z","updated_at":"2016-11-03T01:18:16Z","pushed_at":"2016-11-07T09:21:01Z","git_url":"git://github.com/tobilen/gulp-style-modules.git","ssh_url":"git@github.com:tobilen/gulp-style-modules.git","clone_url":"https://github.com/tobilen/gulp-style-modules.git","svn_url":"https://github.com/tobilen/gulp-style-modules","homepage":null,"size":128,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MaKleSoft:master","ref":"master","sha":"aa2e5a7641bbd7d21bb0505fc08e316599d0e5d6","user":{"login":"MaKleSoft","id":1270940,"avatar_url":"https://avatars.githubusercontent.com/u/1270940?v=3","gravatar_id":"","url":"https://api.github.com/users/MaKleSoft","html_url":"https://github.com/MaKleSoft","followers_url":"https://api.github.com/users/MaKleSoft/followers","following_url":"https://api.github.com/users/MaKleSoft/following{/other_user}","gists_url":"https://api.github.com/users/MaKleSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKleSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKleSoft/subscriptions","organizations_url":"https://api.github.com/users/MaKleSoft/orgs","repos_url":"https://api.github.com/users/MaKleSoft/repos","events_url":"https://api.github.com/users/MaKleSoft/events{/privacy}","received_events_url":"https://api.github.com/users/MaKleSoft/received_events","type":"User","site_admin":false},"repo":{"id":45594462,"name":"gulp-style-modules","full_name":"MaKleSoft/gulp-style-modules","owner":{"login":"MaKleSoft","id":1270940,"avatar_url":"https://avatars.githubusercontent.com/u/1270940?v=3","gravatar_id":"","url":"https://api.github.com/users/MaKleSoft","html_url":"https://github.com/MaKleSoft","followers_url":"https://api.github.com/users/MaKleSoft/followers","following_url":"https://api.github.com/users/MaKleSoft/following{/other_user}","gists_url":"https://api.github.com/users/MaKleSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKleSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKleSoft/subscriptions","organizations_url":"https://api.github.com/users/MaKleSoft/orgs","repos_url":"https://api.github.com/users/MaKleSoft/repos","events_url":"https://api.github.com/users/MaKleSoft/events{/privacy}","received_events_url":"https://api.github.com/users/MaKleSoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaKleSoft/gulp-style-modules","description":"A gulp plugin for wrapping css into style modules as used by Polymer","fork":false,"url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules","forks_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/forks","keys_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/teams","hooks_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/hooks","issue_events_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues/events{/number}","events_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/events","assignees_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/assignees{/user}","branches_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/branches{/branch}","tags_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/tags","blobs_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/languages","stargazers_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/stargazers","contributors_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/contributors","subscribers_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/subscribers","subscription_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/subscription","commits_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/contents/{+path}","compare_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/merges","archive_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/downloads","issues_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues{/number}","pulls_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/labels{/name}","releases_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/releases{/id}","deployments_url":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/deployments","created_at":"2015-11-05T07:14:58Z","updated_at":"2016-11-03T01:18:04Z","pushed_at":"2015-11-05T07:29:38Z","git_url":"git://github.com/MaKleSoft/gulp-style-modules.git","ssh_url":"git@github.com:MaKleSoft/gulp-style-modules.git","clone_url":"https://github.com/MaKleSoft/gulp-style-modules.git","svn_url":"https://github.com/MaKleSoft/gulp-style-modules","homepage":null,"size":128,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/1"},"html":{"href":"https://github.com/MaKleSoft/gulp-style-modules/pull/1"},"issue":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues/1"},"comments":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/MaKleSoft/gulp-style-modules/statuses/48e2f5184f13aa8aa482fb29e256bfa430c7c584"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":39,"deletions":8,"changed_files":3}}
{"actor":{"display_login":"tobilen"}}