{"action":"created","issue":{"url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm/issues/16","repository_url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm","labels_url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm/issues/16/comments","events_url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm/issues/16/events","html_url":"https://github.com/ChadKillingsworth/closure-compiler-npm/issues/16","id":144541963,"number":16,"title":"Using without gulp.src","user":{"login":"gurmukhp","id":899769,"avatar_url":"https://avatars.githubusercontent.com/u/899769?v=3","gravatar_id":"","url":"https://api.github.com/users/gurmukhp","html_url":"https://github.com/gurmukhp","followers_url":"https://api.github.com/users/gurmukhp/followers","following_url":"https://api.github.com/users/gurmukhp/following{/other_user}","gists_url":"https://api.github.com/users/gurmukhp/gists{/gist_id}","starred_url":"https://api.github.com/users/gurmukhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurmukhp/subscriptions","organizations_url":"https://api.github.com/users/gurmukhp/orgs","repos_url":"https://api.github.com/users/gurmukhp/repos","events_url":"https://api.github.com/users/gurmukhp/events{/privacy}","received_events_url":"https://api.github.com/users/gurmukhp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-30T10:39:53Z","updated_at":"2016-03-30T15:55:10Z","closed_at":"2016-03-30T12:37:56Z","body":"Hi\r\n\r\nI am trying to use this Gulp module without Gulp.src but having problems getting it to run.\r\n\r\nIf I try your first example with Gulp.src, I only have one file the compilation takes around 6 seconds. I'd like to try without Gulp.src to see if this can be shortened.\r\n\r\nThis works:\r\n```js\r\nvar compilerPackage = require('google-closure-compiler');\r\nvar closureCompiler = compilerPackage.gulp();\r\ngulp.task('js-compile', function() {\r\n  return gulp.src('./dev/js/**/*.js')\r\n      .pipe(closureCompiler({\r\n          compilation_level: 'ADVANCED',\r\n          warning_level: 'VERBOSE',\r\n          output_wrapper: '(function(){\\n%output%\\n}).call(this)',\r\n          js_output_file: 'output.min.js',\r\n          debug: true\r\n        }))\r\n      .pipe(gulp.dest('./public/static/js/'));\r\n});\r\n\r\n[11:31:54] Using gulpfile ~/Sites/d4g/D4G/gulpfile.js\r\n[11:31:54] Starting 'js-compile'...\r\n[11:32:02] Finished 'js-compile' after 8.07 s\r\n\r\n```\r\n\r\nBut this doesn't:\r\n```js\r\nvar compilerPackage = require('google-closure-compiler');\r\nvar closureCompiler = compilerPackage.gulp();\r\ngulp.task('js-compile', function() {\r\n  return closureCompiler({\r\n        js: './dev/js/**/*.js',\r\n        externs: compilerPackage.compiler.CONTRIB_PATH + '/externs/jquery-1.9.js',\r\n        compilation_level: 'ADVANCED',\r\n        warning_level: 'VERBOSE',\r\n        output_wrapper: '(function(){\\n%output%\\n}).call(this)',\r\n        js_output_file: 'output.min.js'\r\n      })\r\n      .pipe(gulp.dest('./public/static/js/'));\r\n});\r\n\r\n\r\n[11:36:24] Using gulpfile ~/Sites/d4g/D4G/gulpfile.js\r\n[11:36:24] Starting 'js-compile'...\r\n```\r\n\r\nFor some reason, without Gulp.src, I'm never shown Finished js-compile.\r\nIs there a way I can get some debug logs to see what's going on?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm/issues/comments/203500221","html_url":"https://github.com/ChadKillingsworth/closure-compiler-npm/issues/16#issuecomment-203500221","issue_url":"https://api.github.com/repos/ChadKillingsworth/closure-compiler-npm/issues/16","id":203500221,"user":{"login":"ChadKillingsworth","id":1247639,"avatar_url":"https://avatars.githubusercontent.com/u/1247639?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadKillingsworth","html_url":"https://github.com/ChadKillingsworth","followers_url":"https://api.github.com/users/ChadKillingsworth/followers","following_url":"https://api.github.com/users/ChadKillingsworth/following{/other_user}","gists_url":"https://api.github.com/users/ChadKillingsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadKillingsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadKillingsworth/subscriptions","organizations_url":"https://api.github.com/users/ChadKillingsworth/orgs","repos_url":"https://api.github.com/users/ChadKillingsworth/repos","events_url":"https://api.github.com/users/ChadKillingsworth/events{/privacy}","received_events_url":"https://api.github.com/users/ChadKillingsworth/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T15:55:10Z","updated_at":"2016-03-30T15:55:10Z","body":"This case has test coverage: https://github.com/ChadKillingsworth/closure-compiler-npm/blob/master/test/gulp.js#L218-L234"}}