{"action":"created","issue":{"url":"https://api.github.com/repos/alex-seville/blanket/issues/542","labels_url":"https://api.github.com/repos/alex-seville/blanket/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/alex-seville/blanket/issues/542/comments","events_url":"https://api.github.com/repos/alex-seville/blanket/issues/542/events","html_url":"https://github.com/alex-seville/blanket/pull/542","id":121002077,"number":542,"title":"Accept BLANKET_CONFIG env var for alternate config file path","user":{"login":"JamesMGreene","id":417751,"avatar_url":"https://avatars.githubusercontent.com/u/417751?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMGreene","html_url":"https://github.com/JamesMGreene","followers_url":"https://api.github.com/users/JamesMGreene/followers","following_url":"https://api.github.com/users/JamesMGreene/following{/other_user}","gists_url":"https://api.github.com/users/JamesMGreene/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMGreene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMGreene/subscriptions","organizations_url":"https://api.github.com/users/JamesMGreene/orgs","repos_url":"https://api.github.com/users/JamesMGreene/repos","events_url":"https://api.github.com/users/JamesMGreene/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMGreene/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T13:04:15Z","updated_at":"2015-12-08T13:05:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alex-seville/blanket/pulls/542","html_url":"https://github.com/alex-seville/blanket/pull/542","diff_url":"https://github.com/alex-seville/blanket/pull/542.diff","patch_url":"https://github.com/alex-seville/blanket/pull/542.patch"},"body":"A BLANKET_CONFIG file will contain ONLY the JSON that is normally\r\naccessed from a 'package.json' file's 'config.blanket' object\r\n\r\nFor example, in \"package.json\":\r\n\r\n```json\r\n{\r\n  \"config\": {\r\n    \"blanket\": {\r\n      \"pattern\": \"src\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nEquivalent in a standalone config file, e.g. \".grunt/blanket.json\":\r\n\r\n```json\r\n{\r\n  \"pattern\": \"src\"\r\n}\r\n```\r\n\r\n\r\n**Usage (in Bash):**\r\n\r\n```bash\r\nBLANKET_CONFIG=.grunt/blanket.json mocha --require blanket -R html-cov > coverage.html\r\n```\r\n\r\n\r\n**Purpose:**\r\n\r\nHaving this configuration optionally stored in a separate file has [at least] the following benefits:\r\n - Externals tools (e.g. Grunt, etc.) would be able to generate a config file on the fly without affecting the very important \"package.json\" file\r\n - Provides a better separation of concerns for configuration files, just as JSHint, JSCS, Travis CI, etc. all use their own config files rather than piggybacking on \"package.json\"\r\n - For Node modules, this de-bloats the \"package.json\" file a bit, so there are fewer bits published to NPM"},"comment":{"url":"https://api.github.com/repos/alex-seville/blanket/issues/comments/162874515","html_url":"https://github.com/alex-seville/blanket/pull/542#issuecomment-162874515","issue_url":"https://api.github.com/repos/alex-seville/blanket/issues/542","id":162874515,"user":{"login":"JamesMGreene","id":417751,"avatar_url":"https://avatars.githubusercontent.com/u/417751?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMGreene","html_url":"https://github.com/JamesMGreene","followers_url":"https://api.github.com/users/JamesMGreene/followers","following_url":"https://api.github.com/users/JamesMGreene/following{/other_user}","gists_url":"https://api.github.com/users/JamesMGreene/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMGreene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMGreene/subscriptions","organizations_url":"https://api.github.com/users/JamesMGreene/orgs","repos_url":"https://api.github.com/users/JamesMGreene/repos","events_url":"https://api.github.com/users/JamesMGreene/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMGreene/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T13:05:29Z","updated_at":"2015-12-08T13:05:29Z","body":"Corresponding PR for [travis-cov](https://github.com/alex-seville/travis-cov): https://github.com/alex-seville/travis-cov/pull/10"}}