{"action":"created","issue":{"url":"https://api.github.com/repos/bucaran/fly/issues/106","labels_url":"https://api.github.com/repos/bucaran/fly/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/bucaran/fly/issues/106/comments","events_url":"https://api.github.com/repos/bucaran/fly/issues/106/events","html_url":"https://github.com/bucaran/fly/issues/106","id":109106960,"number":106,"title":"Negated globs not working","user":{"login":"pixcrabtree","id":8088263,"avatar_url":"https://avatars.githubusercontent.com/u/8088263?v=3","gravatar_id":"","url":"https://api.github.com/users/pixcrabtree","html_url":"https://github.com/pixcrabtree","followers_url":"https://api.github.com/users/pixcrabtree/followers","following_url":"https://api.github.com/users/pixcrabtree/following{/other_user}","gists_url":"https://api.github.com/users/pixcrabtree/gists{/gist_id}","starred_url":"https://api.github.com/users/pixcrabtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixcrabtree/subscriptions","organizations_url":"https://api.github.com/users/pixcrabtree/orgs","repos_url":"https://api.github.com/users/pixcrabtree/repos","events_url":"https://api.github.com/users/pixcrabtree/events{/privacy}","received_events_url":"https://api.github.com/users/pixcrabtree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T14:44:27Z","updated_at":"2015-12-21T19:22:16Z","closed_at":null,"body":"Hi there,\r\n\r\nIf I set up a very basic project:\r\n\r\n`mkdir test && touch one.js && touch two.js && touch flyfile.js && npm install fly`\r\n\r\nand into the flyfile dump:\r\n\r\n```javascript\r\nexport default function* () {\r\n  yield this.source('*.js', '!two.js')\r\n    .target('.tmp')\r\n}\r\n```\r\n\r\nThen the result is:\r\n```\r\n.tmp\r\n  one.js\r\n  two.js\r\n  three.js\r\n```\r\n\r\nThe docs state that `two.js` should be omitted from here.\r\n\r\nIt would be really nice if fly had the same syntax for globs as the new style in gulp4:\r\n\r\n> Note that globs are evaluated in order, which means this is possible:\r\n>\r\n> `// exclude every JS file that starts with a b except bad.js`\r\n> `gulp.src(['*.js', '!b*.js', 'bad.js'])`\r\n\r\nDo you have any plans to support this kind of globbing.\r\n\r\nThanks for all your hard work on fly so far, a really great system"},"comment":{"url":"https://api.github.com/repos/bucaran/fly/issues/comments/166396230","html_url":"https://github.com/bucaran/fly/issues/106#issuecomment-166396230","issue_url":"https://api.github.com/repos/bucaran/fly/issues/106","id":166396230,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T19:22:16Z","updated_at":"2015-12-21T19:22:16Z","body":"`glob` no longer support negated globs , but rather have an `ignore` option. You could use [`globby`](https://github.com/sindresorhus/globby), which wraps `glob` with a better API, if you want support for negated globs and more."}}