{"action":"created","issue":{"url":"https://api.github.com/repos/millermedeiros/esformatter/issues/291","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/291/comments","events_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/291/events","html_url":"https://github.com/millermedeiros/esformatter/issues/291","id":64561792,"number":291,"title":"support file globs?","user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/millermedeiros/esformatter/labels/feature","name":"feature","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/millermedeiros/esformatter/milestones/3","html_url":"https://github.com/millermedeiros/esformatter/milestones/v0.7.0","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/milestones/3/labels","id":1040218,"number":3,"title":"v0.7.0","description":"","creator":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-03-26T15:45:22Z","updated_at":"2015-03-26T17:47:33Z","due_on":"2015-04-28T03:00:00Z","closed_at":null},"comments":3,"created_at":"2015-03-26T15:44:34Z","updated_at":"2015-03-26T20:32:35Z","closed_at":null,"body":"I built esformatter thinking about formatting a single file (was thinking mainly about text editors) but there seems to be a lot of people wanting to reformat whole repositories at once:\r\n\r\n - https://github.com/royriojas/esbeautifier\r\n - https://github.com/maxogden/standard-format\r\n - https://github.com/jzaefferer/grunt-esformatter\r\n\r\nthinking of something like:\r\n\r\n```sh\r\n# multiple globs accepted (we already accept multiple files anyway)\r\nesformatter -i lib/**.js bin/*\r\n```\r\n\r\ncould be easily implemented by adding [node-glob](https://github.com/isaacs/node-glob) as a dependency"},"comment":{"url":"https://api.github.com/repos/millermedeiros/esformatter/issues/comments/86702957","html_url":"https://github.com/millermedeiros/esformatter/issues/291#issuecomment-86702957","issue_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/291","id":86702957,"user":{"login":"royriojas","id":131290,"avatar_url":"https://avatars.githubusercontent.com/u/131290?v=3","gravatar_id":"","url":"https://api.github.com/users/royriojas","html_url":"https://github.com/royriojas","followers_url":"https://api.github.com/users/royriojas/followers","following_url":"https://api.github.com/users/royriojas/following{/other_user}","gists_url":"https://api.github.com/users/royriojas/gists{/gist_id}","starred_url":"https://api.github.com/users/royriojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royriojas/subscriptions","organizations_url":"https://api.github.com/users/royriojas/orgs","repos_url":"https://api.github.com/users/royriojas/repos","events_url":"https://api.github.com/users/royriojas/events{/privacy}","received_events_url":"https://api.github.com/users/royriojas/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T20:32:35Z","updated_at":"2015-03-26T20:32:35Z","body":"Sure, if they got into the main esformatter, I can just deprecate the other tools :D In the end the heavy lifting is done by esformatter so it might be worth to move that behavior into it.\r\n\r\nThe `check-only mode` was something I added to enforce files being beautified before being pushed to the repo and the cache was introduced because the file code base was medium size and waiting for the beautifier to finish beautifying all the files everytime was a waste of time. \r\n\r\nI'm all for integrate them into the main cli tool. I found myself lately moving out of the grunt/gulp world and to embrace more the npm as a build tool so I needed this that's why I didn't used the grunt wrapper over esformatter. I needed a cli version :)\r\n\r\n"}}