{"action":"created","issue":{"url":"https://api.github.com/repos/anarh/node-sass-import/issues/9","repository_url":"https://api.github.com/repos/anarh/node-sass-import","labels_url":"https://api.github.com/repos/anarh/node-sass-import/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/anarh/node-sass-import/issues/9/comments","events_url":"https://api.github.com/repos/anarh/node-sass-import/issues/9/events","html_url":"https://github.com/anarh/node-sass-import/issues/9","id":173751685,"number":9,"title":"Globbing multiple files","user":{"login":"rstacruz","id":74385,"avatar_url":"https://avatars.githubusercontent.com/u/74385?v=3","gravatar_id":"","url":"https://api.github.com/users/rstacruz","html_url":"https://github.com/rstacruz","followers_url":"https://api.github.com/users/rstacruz/followers","following_url":"https://api.github.com/users/rstacruz/following{/other_user}","gists_url":"https://api.github.com/users/rstacruz/gists{/gist_id}","starred_url":"https://api.github.com/users/rstacruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstacruz/subscriptions","organizations_url":"https://api.github.com/users/rstacruz/orgs","repos_url":"https://api.github.com/users/rstacruz/repos","events_url":"https://api.github.com/users/rstacruz/events{/privacy}","received_events_url":"https://api.github.com/users/rstacruz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-29T11:16:59Z","updated_at":"2016-10-03T07:12:45Z","closed_at":null,"body":"```scss\r\n@import './components/*';\r\n```\r\n\r\nThis works right now if it only matches one file. It should ideally return every .scss in there, concatenated (as `{ contents: '..' }`). Of course this approach means you can't intermix .scss and .sass, but hey, you probably shouldn't anyway."},"comment":{"url":"https://api.github.com/repos/anarh/node-sass-import/issues/comments/251040985","html_url":"https://github.com/anarh/node-sass-import/issues/9#issuecomment-251040985","issue_url":"https://api.github.com/repos/anarh/node-sass-import/issues/9","id":251040985,"user":{"login":"rstacruz","id":74385,"avatar_url":"https://avatars.githubusercontent.com/u/74385?v=3","gravatar_id":"","url":"https://api.github.com/users/rstacruz","html_url":"https://github.com/rstacruz","followers_url":"https://api.github.com/users/rstacruz/followers","following_url":"https://api.github.com/users/rstacruz/following{/other_user}","gists_url":"https://api.github.com/users/rstacruz/gists{/gist_id}","starred_url":"https://api.github.com/users/rstacruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstacruz/subscriptions","organizations_url":"https://api.github.com/users/rstacruz/orgs","repos_url":"https://api.github.com/users/rstacruz/repos","events_url":"https://api.github.com/users/rstacruz/events{/privacy}","received_events_url":"https://api.github.com/users/rstacruz/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T07:12:45Z","updated_at":"2016-10-03T07:12:45Z","body":"I don't think there needs to be a special symbol or anything. All that needs in the module's logic is to do something different if it matches more than 1:\r\n\r\n```js\r\n// pseudo-code\r\n\r\nfiles = glob('components/*')\r\nif (files.length === 1) {\r\n  return { file: files[0] } /* eg, 'components/button' */\r\n} else {\r\n  return { contents: '@import \"components/button\"; @import \"components/form\";' }\r\n}\r\n```\r\n\r\nLooking at the code, this isn't so simple because you need to do [async.parallel](http://caolan.github.io/async/docs.html#.parallel) among the `resolver()` calls, so there's some internal API rearranging that needs to happen, but it's possible :)"}}
{"actor":{"display_login":"rstacruz"}}