{"action":"created","issue":{"url":"https://api.github.com/repos/nextbigsoundinc/stylemark/issues/32","repository_url":"https://api.github.com/repos/nextbigsoundinc/stylemark","labels_url":"https://api.github.com/repos/nextbigsoundinc/stylemark/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/nextbigsoundinc/stylemark/issues/32/comments","events_url":"https://api.github.com/repos/nextbigsoundinc/stylemark/issues/32/events","html_url":"https://github.com/nextbigsoundinc/stylemark/issues/32","id":317902718,"number":32,"title":"Cannot use assets from parent directory","user":{"login":"kboom","id":3975111,"avatar_url":"https://avatars0.githubusercontent.com/u/3975111?v=4","gravatar_id":"","url":"https://api.github.com/users/kboom","html_url":"https://github.com/kboom","followers_url":"https://api.github.com/users/kboom/followers","following_url":"https://api.github.com/users/kboom/following{/other_user}","gists_url":"https://api.github.com/users/kboom/gists{/gist_id}","starred_url":"https://api.github.com/users/kboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kboom/subscriptions","organizations_url":"https://api.github.com/users/kboom/orgs","repos_url":"https://api.github.com/users/kboom/repos","events_url":"https://api.github.com/users/kboom/events{/privacy}","received_events_url":"https://api.github.com/users/kboom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-26T07:06:52Z","updated_at":"2018-05-03T13:58:40Z","closed_at":null,"author_association":"NONE","body":"If you have a directory structure like\r\ndist\r\npackages/\r\nstylemark.config.yml\r\n\r\nand execute command like\r\nstylemark -i packages -o stylemark -c stylemark.config.yml -w 1000 -b 5000\r\n\r\nYou end up with fs trying to copy to the same directory.\r\nPlease see stylemark/src/generator.js:100:9"},"comment":{"url":"https://api.github.com/repos/nextbigsoundinc/stylemark/issues/comments/386304935","html_url":"https://github.com/nextbigsoundinc/stylemark/issues/32#issuecomment-386304935","issue_url":"https://api.github.com/repos/nextbigsoundinc/stylemark/issues/32","id":386304935,"user":{"login":"rafhun","id":7340779,"avatar_url":"https://avatars0.githubusercontent.com/u/7340779?v=4","gravatar_id":"","url":"https://api.github.com/users/rafhun","html_url":"https://github.com/rafhun","followers_url":"https://api.github.com/users/rafhun/followers","following_url":"https://api.github.com/users/rafhun/following{/other_user}","gists_url":"https://api.github.com/users/rafhun/gists{/gist_id}","starred_url":"https://api.github.com/users/rafhun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafhun/subscriptions","organizations_url":"https://api.github.com/users/rafhun/orgs","repos_url":"https://api.github.com/users/rafhun/repos","events_url":"https://api.github.com/users/rafhun/events{/privacy}","received_events_url":"https://api.github.com/users/rafhun/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T13:58:40Z","updated_at":"2018-05-03T13:58:40Z","author_association":"NONE","body":"I'm having a similar problem and think the problem is that the path defined for assets in the config is appended to both the input and output folders chosen. (here: https://github.com/nextbigsoundinc/stylemark/blob/master/src/generator.js#L101)\r\n\r\nMy folder structure is:\r\n\r\n```\r\npackage.json\r\n.stylemark.yml\r\ndist/\r\nresources/assets/styles\r\n```\r\n\r\nAnd I'm running stylemark through an npm script similar to this:\r\n\r\n```\r\n\"stylemark\": \"stylemark -i ./resources/assets/styles -o ../../../styleguide -c ./.stylemark.yml\"\r\n```\r\nsince I have to copy the styleguide to the web root.\r\n\r\nThe `.stylemark.yml` config only works if I link assets with the following line:\r\n\r\n```\r\nassets:\r\n  - ../../../dist\r\n```\r\nHowever this obviously leads to wrongly copied code since `../../../dist` is appended to the input as well as the output path given."}}
{"actor":{"display_login":"rafhun"}}