{"action":"created","issue":{"url":"https://api.github.com/repos/stylus/stylus/issues/1269","repository_url":"https://api.github.com/repos/stylus/stylus","labels_url":"https://api.github.com/repos/stylus/stylus/issues/1269/labels{/name}","comments_url":"https://api.github.com/repos/stylus/stylus/issues/1269/comments","events_url":"https://api.github.com/repos/stylus/stylus/issues/1269/events","html_url":"https://github.com/stylus/stylus/issues/1269","id":23937013,"number":1269,"title":"add globstar (asterisk) support for imports","user":{"login":"slang800","id":1049204,"avatar_url":"https://avatars.githubusercontent.com/u/1049204?v=3","gravatar_id":"","url":"https://api.github.com/users/slang800","html_url":"https://github.com/slang800","followers_url":"https://api.github.com/users/slang800/followers","following_url":"https://api.github.com/users/slang800/following{/other_user}","gists_url":"https://api.github.com/users/slang800/gists{/gist_id}","starred_url":"https://api.github.com/users/slang800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slang800/subscriptions","organizations_url":"https://api.github.com/users/slang800/orgs","repos_url":"https://api.github.com/users/slang800/repos","events_url":"https://api.github.com/users/slang800/events{/privacy}","received_events_url":"https://api.github.com/users/slang800/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2013-12-09T02:06:26Z","updated_at":"2016-10-18T09:32:51Z","closed_at":"2014-01-06T20:18:40Z","body":"It would be really nice if we could use globstars to import directories of stylus files.\r\n\r\nFor example, with a directory structure like this (from an animate.css port):\r\n```\r\n├── flippers\r\n│   ├── flip.styl\r\n│   ├── flipInX.styl\r\n│   ├── flipInY.styl\r\n│   ├── flipOutX.styl\r\n│   ├── flipOutY.styl\r\n├── lightspeed\r\n│   ├── lightSpeedIn.styl\r\n│   └── lightSpeedOut.styl\r\n├── rotating_entrances\r\n│   ├── rotateIn.styl\r\n│   ├── rotateInDownLeft.styl\r\n│   ├── rotateInDownRight.styl\r\n│   ├── rotateInUpLeft.styl\r\n│   └── rotateInUpRight.styl\r\n├── rotating_exits\r\n│   ├── rotateOut.styl\r\n│   ├── rotateOutDownLeft.styl\r\n│   ├── rotateOutDownRight.styl\r\n│   ├── rotateOutUpLeft.styl\r\n│   └── rotateOutUpRight.styl\r\n├── sliders\r\n│   ├── slideInDown.styl\r\n│   ├── slideInLeft.styl\r\n│   ├── slideInRight.styl\r\n│   ├── slideOutLeft.styl\r\n│   ├── slideOutRight.styl\r\n│   └── slideOutUp.styl\r\n├── specials\r\n│   ├── hinge.styl\r\n│   ├── rollIn.styl\r\n│   └── rollOut.styl\r\n├── package.json\r\n├── bower.json\r\n└── README.md\r\n```\r\n\r\nWe could use `@import 'animate.css/*'` to import everything in the library, or `@import 'animate.css/sliders/*'` to get only the sliders, or `@import 'animate.css/sliders/slideInDown'` to get only the slideInDown animation.\r\n\r\nI know that we can do this already by adding an index.styl to each folder with a list of `@import`s for files in that folder. However, that requires a lot of extra files that need to be kept in sync with any removals or additions to the directory they are in.\r\n\r\nEdit: as @jasonkuhrt mentions below, we could use https://github.com/isaacs/node-glob for the implementation."},"comment":{"url":"https://api.github.com/repos/stylus/stylus/issues/comments/254456192","html_url":"https://github.com/stylus/stylus/issues/1269#issuecomment-254456192","issue_url":"https://api.github.com/repos/stylus/stylus/issues/1269","id":254456192,"user":{"login":"Panya","id":235637,"avatar_url":"https://avatars.githubusercontent.com/u/235637?v=3","gravatar_id":"","url":"https://api.github.com/users/Panya","html_url":"https://github.com/Panya","followers_url":"https://api.github.com/users/Panya/followers","following_url":"https://api.github.com/users/Panya/following{/other_user}","gists_url":"https://api.github.com/users/Panya/gists{/gist_id}","starred_url":"https://api.github.com/users/Panya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panya/subscriptions","organizations_url":"https://api.github.com/users/Panya/orgs","repos_url":"https://api.github.com/users/Panya/repos","events_url":"https://api.github.com/users/Panya/events{/privacy}","received_events_url":"https://api.github.com/users/Panya/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T09:32:51Z","updated_at":"2016-10-18T09:32:51Z","body":"@hiulit imports are not supported in client side version of Stylus."}}
{"actor":{"display_login":"Panya"}}