{"action":"opened","issue":{"url":"https://api.github.com/repos/martypdx/gobble-ractive-components/issues/1","repository_url":"https://api.github.com/repos/martypdx/gobble-ractive-components","labels_url":"https://api.github.com/repos/martypdx/gobble-ractive-components/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/martypdx/gobble-ractive-components/issues/1/comments","events_url":"https://api.github.com/repos/martypdx/gobble-ractive-components/issues/1/events","html_url":"https://github.com/martypdx/gobble-ractive-components/issues/1","id":189367010,"number":1,"title":"Minify output","user":{"login":"kouts","id":2233663,"avatar_url":"https://avatars.githubusercontent.com/u/2233663?v=3","gravatar_id":"","url":"https://api.github.com/users/kouts","html_url":"https://github.com/kouts","followers_url":"https://api.github.com/users/kouts/followers","following_url":"https://api.github.com/users/kouts/following{/other_user}","gists_url":"https://api.github.com/users/kouts/gists{/gist_id}","starred_url":"https://api.github.com/users/kouts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kouts/subscriptions","organizations_url":"https://api.github.com/users/kouts/orgs","repos_url":"https://api.github.com/users/kouts/repos","events_url":"https://api.github.com/users/kouts/events{/privacy}","received_events_url":"https://api.github.com/users/kouts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T11:28:05Z","updated_at":"2016-11-15T11:28:05Z","closed_at":null,"body":"Hi @martypdx , gobble-ractive-components fits my workflow so after a lot of trial and error (no experience with gobble before) I settled with the above gobble file:\r\n```\r\nvar gobble = require( 'gobble' );\r\n\r\nconst components = gobble('src/ractive_components')\r\n    // scss and es6 js can be transpiled prior to combining:\r\n    .transform( 'sass-file' )\r\n    .transform('babel', {\r\n        sourceMaps: true\r\n    })\r\n    // combine into single file and create \"components.js\"\r\n    .transform( 'ractive-components' )\r\n    // pass to gobble-ractive to compile into js:\r\n    .transform('ractive', { type: 'es6' });\r\n\r\n// non-component js:\r\nconst js = gobble( 'src/js' )   \r\n    .transform('babel', {\r\n        sourceMaps: true,\r\n        blacklist: ['es6.modules', 'strict']\r\n    });\r\n\r\n// bundle as siblings of components, which means\r\n// imports in components can treat js as same directory\r\nconst bundle = gobble([ js, components ]).transform( 'rollup', {\r\n  entry: 'components.js',\r\n  dest: __dirname+'/public/js/bundle.js',\r\n  format: 'umd'\r\n});\r\n\r\nmodule.exports = gobble([bundle]);\r\n```\r\n\r\nIs there any way I can minify the output (i.e the bundle.js script) ?\r\nI tried gobble-prosecco and gobble-uglifyjs to no avail.\r\nCan you help me with this?\r\nThanks.\r\n"}}
{"actor":{"display_login":"kouts"}}