{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/now-cli/issues/674","repository_url":"https://api.github.com/repos/zeit/now-cli","labels_url":"https://api.github.com/repos/zeit/now-cli/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/zeit/now-cli/issues/674/comments","events_url":"https://api.github.com/repos/zeit/now-cli/issues/674/events","html_url":"https://github.com/zeit/now-cli/issues/674","id":235969896,"node_id":"MDU6SXNzdWUyMzU5Njk4OTY=","number":674,"title":"Add \"requiredFiles\" key to now.json","user":{"login":"Qix-","id":885648,"node_id":"MDQ6VXNlcjg4NTY0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/885648?v=4","gravatar_id":"","url":"https://api.github.com/users/Qix-","html_url":"https://github.com/Qix-","followers_url":"https://api.github.com/users/Qix-/followers","following_url":"https://api.github.com/users/Qix-/following{/other_user}","gists_url":"https://api.github.com/users/Qix-/gists{/gist_id}","starred_url":"https://api.github.com/users/Qix-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qix-/subscriptions","organizations_url":"https://api.github.com/users/Qix-/orgs","repos_url":"https://api.github.com/users/Qix-/repos","events_url":"https://api.github.com/users/Qix-/events{/privacy}","received_events_url":"https://api.github.com/users/Qix-/received_events","type":"User","site_admin":false},"labels":[{"id":746638729,"node_id":"MDU6TGFiZWw3NDY2Mzg3Mjk=","url":"https://api.github.com/repos/zeit/now-cli/labels/triage","name":"triage","color":"CCCCCC","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-14T18:29:52Z","updated_at":"2018-11-13T12:21:01Z","closed_at":"2018-11-13T12:21:01Z","author_association":"CONTRIBUTOR","body":"Right now, the `\"files\"` key in _now.json_ allows listing files that may not exist at the time of deployment, and the absence of those files seem to be quietly ignored.\r\n\r\nIn certain cases, some files (e.g. configuration files) _must_ be present for the deployment to function properly, and not having them may be a waste of time for someone moving quickly.\r\n\r\nIt'd be nice to have either a `\"requiredFiles\"` key (where all files listed must be present), or alternatively (and similarly to how _package.json_ works) make all files in `\"files\"` required and add an `\"optionalFiles\"` key.\r\n\r\nUse case: I have a repository that is meant to be cloned and then immediately deployed, but requires that _config.json.example_ be copied to _config.json_ first and manually configured prior to running `now`. It'd be nice if it failed fast if _config.json_ didn't exist (i.e. the user forgot the configuration step)."},"comment":{"url":"https://api.github.com/repos/zeit/now-cli/issues/comments/438246969","html_url":"https://github.com/zeit/now-cli/issues/674#issuecomment-438246969","issue_url":"https://api.github.com/repos/zeit/now-cli/issues/674","id":438246969,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODI0Njk2OQ==","user":{"login":"leo","id":6170607,"node_id":"MDQ6VXNlcjYxNzA2MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6170607?v=4","gravatar_id":"","url":"https://api.github.com/users/leo","html_url":"https://github.com/leo","followers_url":"https://api.github.com/users/leo/followers","following_url":"https://api.github.com/users/leo/following{/other_user}","gists_url":"https://api.github.com/users/leo/gists{/gist_id}","starred_url":"https://api.github.com/users/leo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo/subscriptions","organizations_url":"https://api.github.com/users/leo/orgs","repos_url":"https://api.github.com/users/leo/repos","events_url":"https://api.github.com/users/leo/events{/privacy}","received_events_url":"https://api.github.com/users/leo/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T12:21:01Z","updated_at":"2018-11-13T12:21:01Z","author_association":"MEMBER","body":"Thank you so much for the effort you have put into this issue! 😊 \r\n\r\nHowever, since we completely re-worked the entire codebase of Now CLI and this issue does not apply to the new code anymore, I'm closing it now.\r\n\r\nYou can read more about our biggest release yet here: https://zeit.co/blog/now-2"}}
{"actor":{"display_login":"leo"}}