{"action":"created","issue":{"url":"https://api.github.com/repos/jbrodriguez/hugulp/issues/6","labels_url":"https://api.github.com/repos/jbrodriguez/hugulp/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jbrodriguez/hugulp/issues/6/comments","events_url":"https://api.github.com/repos/jbrodriguez/hugulp/issues/6/events","html_url":"https://github.com/jbrodriguez/hugulp/issues/6","id":108949399,"number":6,"title":"Hugo stage of gulp process causing 'Command failed' error","user":{"login":"simplyeffectiveweb","id":1536413,"avatar_url":"https://avatars.githubusercontent.com/u/1536413?v=3","gravatar_id":"","url":"https://api.github.com/users/simplyeffectiveweb","html_url":"https://github.com/simplyeffectiveweb","followers_url":"https://api.github.com/users/simplyeffectiveweb/followers","following_url":"https://api.github.com/users/simplyeffectiveweb/following{/other_user}","gists_url":"https://api.github.com/users/simplyeffectiveweb/gists{/gist_id}","starred_url":"https://api.github.com/users/simplyeffectiveweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplyeffectiveweb/subscriptions","organizations_url":"https://api.github.com/users/simplyeffectiveweb/orgs","repos_url":"https://api.github.com/users/simplyeffectiveweb/repos","events_url":"https://api.github.com/users/simplyeffectiveweb/events{/privacy}","received_events_url":"https://api.github.com/users/simplyeffectiveweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-29T20:07:19Z","updated_at":"2015-09-30T09:42:55Z","closed_at":null,"body":"I tried this (Windows 7 x64) but could not get gulp to complete the build script.\r\n\r\nIt fails when the hugo command is run.\r\n\r\nWhat makes it super confusing (I'm also new to gulp) is that the hugo project is called hugo (so it's hard to know what refers to hugo and what to the project).\r\n\r\nAlso I don't know if this is a gulp thing, but there are layers of dependency which make modifying it hard. If this is how gulp works, its not for me. \r\n\r\nExample: reference:all links to hugo:all and build:all looks for reference:all. I tried to remove the hugo part of the gulp process but it got messy.\r\n\r\n\r\nPersonally I think running Hugo from within the gulp file is unnecessary, and better to enable the user to run the command they want foor that project at whatever stage. "},"comment":{"url":"https://api.github.com/repos/jbrodriguez/hugulp/issues/comments/144340378","html_url":"https://github.com/jbrodriguez/hugulp/issues/6#issuecomment-144340378","issue_url":"https://api.github.com/repos/jbrodriguez/hugulp/issues/6","id":144340378,"user":{"login":"simplyeffectiveweb","id":1536413,"avatar_url":"https://avatars.githubusercontent.com/u/1536413?v=3","gravatar_id":"","url":"https://api.github.com/users/simplyeffectiveweb","html_url":"https://github.com/simplyeffectiveweb","followers_url":"https://api.github.com/users/simplyeffectiveweb/followers","following_url":"https://api.github.com/users/simplyeffectiveweb/following{/other_user}","gists_url":"https://api.github.com/users/simplyeffectiveweb/gists{/gist_id}","starred_url":"https://api.github.com/users/simplyeffectiveweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplyeffectiveweb/subscriptions","organizations_url":"https://api.github.com/users/simplyeffectiveweb/orgs","repos_url":"https://api.github.com/users/simplyeffectiveweb/repos","events_url":"https://api.github.com/users/simplyeffectiveweb/events{/privacy}","received_events_url":"https://api.github.com/users/simplyeffectiveweb/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T09:42:55Z","updated_at":"2015-09-30T09:42:55Z","body":"Pretty sure Node is the current version. Will check that.\r\n\r\nHere is the error (I should have posted this before, sorry)\r\n\r\n[21:59:14] Starting 'hugo:all'...\r\n[21:59:14] src: C:\\Users\\Main\\hugo\\hugo dst: C:\\Users\\Main\\hugo\\public\r\n[21:59:14] 'hugo:all' errored after 82 ms\r\n[21:59:14] Error: Command failed: hugo --buildDrafts=true\r\n    at checkExecSyncError (child_process.js:441:13)\r\n    at execSync (child_process.js:481:13)\r\n    at hugo (C:\\Users\\Main\\hugo\\gulp\\hugo.js:18:18)\r\n    at Gulp.<anonymous> (C:\\Users\\Main\\hugo\\gulp\\hugo.js:27:5)\r\n\r\nAbout the name of the project, I meant that the normal structure (Windows) might be:\r\n\r\nMain\r\n--hugo\r\n-----hugo_site1\r\n-----hugo_site2\r\n\r\nwith the hugo main area and the sub folders of hugo sites. So for yours I have:\r\n\r\nMain\r\n--hugo\r\n-----hugo\r\n\r\nI appreciate it want matter from a folder point of view, it just means i the code there is references to hugo (the program)) and hugo (the folder).\r\n\r\nThanks for info about gulp. Perhaps ultimately I need to look for a more linear build tool."}}