{"action":"created","issue":{"url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/115","repository_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor","labels_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/115/comments","events_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/115/events","html_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/pull/115","id":383323295,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyODIwMTc1","number":115,"title":"Add webpack loader","user":{"login":"mkusher","id":523021,"node_id":"MDQ6VXNlcjUyMzAyMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/523021?v=4","gravatar_id":"","url":"https://api.github.com/users/mkusher","html_url":"https://github.com/mkusher","followers_url":"https://api.github.com/users/mkusher/followers","following_url":"https://api.github.com/users/mkusher/following{/other_user}","gists_url":"https://api.github.com/users/mkusher/gists{/gist_id}","starred_url":"https://api.github.com/users/mkusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkusher/subscriptions","organizations_url":"https://api.github.com/users/mkusher/orgs","repos_url":"https://api.github.com/users/mkusher/repos","events_url":"https://api.github.com/users/mkusher/events{/privacy}","received_events_url":"https://api.github.com/users/mkusher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-21T23:10:35Z","updated_at":"2018-12-01T11:04:36Z","closed_at":"2018-12-01T11:02:25Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/pulls/115","html_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/pull/115","diff_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/pull/115.diff","patch_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/pull/115.patch"},"body":"Solution for #114\r\nThe only thing that needed is to move `compile` function from `index.js` to a separate module.\r\n\r\nExample configuration\r\n-----------------------\r\n\r\nSample `webpack.config.js` may look like this:\r\n```js\r\nmodule.exports = {\r\n  resolve: {\r\n    extensions: [\".ts\", \".js\"]\r\n  },\r\n  module: {\r\n    rules: [\r\n      {\r\n        test: /\\.ts$/,\r\n        exclude: [/node_modules/],\r\n        use: [\r\n          {\r\n            loader: \"ts-loader\"\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        test: /\\.feature$/,\r\n        use: [\r\n          {\r\n            loader: \"cypress-cucumber-preprocessor/loader\"\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\nand `plugins/index.js` need just to include webpack:\r\n```js\r\nconst webpack = require(\"@cypress/webpack-preprocessor\")\r\n\r\nmodule.exports = on => {\r\n  const options = {\r\n    webpackOptions: require(\"../webpack.config.js\")\r\n  }\r\n  on(\"file:preprocessor\", webpack(options))\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/comments/443418269","html_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/pull/115#issuecomment-443418269","issue_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/115","id":443418269,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzQxODI2OQ==","user":{"login":"lgandecki","id":4002543,"node_id":"MDQ6VXNlcjQwMDI1NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/4002543?v=4","gravatar_id":"","url":"https://api.github.com/users/lgandecki","html_url":"https://github.com/lgandecki","followers_url":"https://api.github.com/users/lgandecki/followers","following_url":"https://api.github.com/users/lgandecki/following{/other_user}","gists_url":"https://api.github.com/users/lgandecki/gists{/gist_id}","starred_url":"https://api.github.com/users/lgandecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgandecki/subscriptions","organizations_url":"https://api.github.com/users/lgandecki/orgs","repos_url":"https://api.github.com/users/lgandecki/repos","events_url":"https://api.github.com/users/lgandecki/events{/privacy}","received_events_url":"https://api.github.com/users/lgandecki/received_events","type":"User","site_admin":false},"created_at":"2018-12-01T11:04:36Z","updated_at":"2018-12-01T11:04:36Z","author_association":"MEMBER","body":":tada: This PR is included in version 1.7.0 :tada:\n\nThe release is available on:\n- [npm package (@latest dist-tag)](https://www.npmjs.com/package/cypress-cucumber-preprocessor)\n- [GitHub release](https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/releases/tag/v1.7.0)\n\nYour **[semantic-release](https://github.com/semantic-release/semantic-release)** bot :package::rocket:"}}
{"actor":{"display_login":"lgandecki"}}