{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfour/drizzle/issues/54","repository_url":"https://api.github.com/repos/cloudfour/drizzle","labels_url":"https://api.github.com/repos/cloudfour/drizzle/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/cloudfour/drizzle/issues/54/comments","events_url":"https://api.github.com/repos/cloudfour/drizzle/issues/54/events","html_url":"https://github.com/cloudfour/drizzle/issues/54","id":154767258,"number":54,"title":"Could toolkit scripts be easier to create?","user":{"login":"tylersticka","id":69633,"avatar_url":"https://avatars.githubusercontent.com/u/69633?v=3","gravatar_id":"","url":"https://api.github.com/users/tylersticka","html_url":"https://github.com/tylersticka","followers_url":"https://api.github.com/users/tylersticka/followers","following_url":"https://api.github.com/users/tylersticka/following{/other_user}","gists_url":"https://api.github.com/users/tylersticka/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersticka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersticka/subscriptions","organizations_url":"https://api.github.com/users/tylersticka/orgs","repos_url":"https://api.github.com/users/tylersticka/repos","events_url":"https://api.github.com/users/tylersticka/events{/privacy}","received_events_url":"https://api.github.com/users/tylersticka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfour/drizzle/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-05-13T17:55:10Z","updated_at":"2016-08-12T18:33:41Z","closed_at":null,"body":"Currently, creating new toolkit scripts requires you to create a new file, then add a somewhat redundant item to `config.js`:\r\n\r\n```\r\n'drizzle/scripts/drizzle': './src/assets/drizzle/scripts/drizzle.js',\r\n'toolkit/scripts/toolkit':  './src/assets/toolkit/scripts/toolkit.js',\r\n'drizzle/scripts/some-page': './src/assets/toolkit/scripts/some-page.js'\r\n```\r\n\r\nIt seems like this could be simplified, at least so that the `toolkit/scripts` directory doesn't need a new entry for every single root JS package. But I might be missing something."},"comment":{"url":"https://api.github.com/repos/cloudfour/drizzle/issues/comments/239525371","html_url":"https://github.com/cloudfour/drizzle/issues/54#issuecomment-239525371","issue_url":"https://api.github.com/repos/cloudfour/drizzle/issues/54","id":239525371,"user":{"login":"guilambert","id":136990,"avatar_url":"https://avatars.githubusercontent.com/u/136990?v=3","gravatar_id":"","url":"https://api.github.com/users/guilambert","html_url":"https://github.com/guilambert","followers_url":"https://api.github.com/users/guilambert/followers","following_url":"https://api.github.com/users/guilambert/following{/other_user}","gists_url":"https://api.github.com/users/guilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/guilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilambert/subscriptions","organizations_url":"https://api.github.com/users/guilambert/orgs","repos_url":"https://api.github.com/users/guilambert/repos","events_url":"https://api.github.com/users/guilambert/events{/privacy}","received_events_url":"https://api.github.com/users/guilambert/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T18:33:41Z","updated_at":"2016-08-12T18:33:41Z","body":"Great the drizzle builder works now with that place.\r\n\r\nNow I'm struggling with paths being outputted. My drizzle instance is located in `resources/drizzle/`, and I want to run the `drizzle-builder` from my root `gulpfile.js`:\r\n\r\n```\r\nconst drizzle = require('drizzle-builder');\r\nconst helpers = require('@cloudfour/hbs-helpers');\r\nconst drizzleConfig = Object.assign({\r\n  src: {\r\n    data: {\r\n      basedir: 'resources/drizzle/src/data',\r\n      glob: 'resources/drizzle/src/data/**/*'\r\n    },\r\n    pages: {\r\n      basedir: 'resources/drizzle/src/pages',\r\n      glob: 'resources/drizzle/src/pages/**/*'\r\n    },\r\n    patterns: {\r\n      basedir: 'resources/drizzle/src/patterns',\r\n      glob: 'resources/drizzle/src/patterns/**/*.hbs'\r\n    },\r\n    templates: {\r\n      basedir: 'resources/drizzle/src/templates',\r\n      glob: 'resources/drizzle/src/templates/**/*.hbs'\r\n    }\r\n  },\r\n  dest: {\r\n    pages: './public/drizzle',\r\n    patterns: './public/drizzle/patterns'\r\n  }\r\n}, { helpers });\r\n\r\n// Register Drizzle builder task\r\ngulp.task('drizzle', () => {\r\n  const result = drizzle(drizzleConfig);\r\n  return result;\r\n});\r\n```\r\n\r\nI tried setting the `basedir` for each `src` by removing `resources/drizzle/src/` but does not work. Both the path for building and the path outputted in those files are tied together, or is there a way I can have a custom \"relative\" path in the ouptut files for both pages and assets?\r\n\r\nThanks!"}}
{"actor":{"display_login":"guilambert"}}