{"action":"created","issue":{"url":"https://api.github.com/repos/111StudioKK/lambda-cli/issues/6","repository_url":"https://api.github.com/repos/111StudioKK/lambda-cli","labels_url":"https://api.github.com/repos/111StudioKK/lambda-cli/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/111StudioKK/lambda-cli/issues/6/comments","events_url":"https://api.github.com/repos/111StudioKK/lambda-cli/issues/6/events","html_url":"https://github.com/111StudioKK/lambda-cli/issues/6","id":161321271,"number":6,"title":"Lambda-cli should provide a way to expose version number","user":{"login":"achanehive","id":554093,"avatar_url":"https://avatars.githubusercontent.com/u/554093?v=3","gravatar_id":"","url":"https://api.github.com/users/achanehive","html_url":"https://github.com/achanehive","followers_url":"https://api.github.com/users/achanehive/followers","following_url":"https://api.github.com/users/achanehive/following{/other_user}","gists_url":"https://api.github.com/users/achanehive/gists{/gist_id}","starred_url":"https://api.github.com/users/achanehive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achanehive/subscriptions","organizations_url":"https://api.github.com/users/achanehive/orgs","repos_url":"https://api.github.com/users/achanehive/repos","events_url":"https://api.github.com/users/achanehive/events{/privacy}","received_events_url":"https://api.github.com/users/achanehive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-20T23:51:17Z","updated_at":"2016-06-21T12:48:52Z","closed_at":null,"body":"Lambda-cli should expose a version number to application. So the application has the possibility to show somewhere his version number.\r\nA good candidate could be the version field of package.json\r\n\r\nA way to do it:\r\n**Config**\r\n`new webpack.DefinePlugin({\r\n  __VERSION__: JSON.stringify(require(\"./package.json\").version)\r\n})`\r\n\r\n**App code**\r\n`console.log(__VERSION__);`"},"comment":{"url":"https://api.github.com/repos/111StudioKK/lambda-cli/issues/comments/227429057","html_url":"https://github.com/111StudioKK/lambda-cli/issues/6#issuecomment-227429057","issue_url":"https://api.github.com/repos/111StudioKK/lambda-cli/issues/6","id":227429057,"user":{"login":"fdidron","id":1848786,"avatar_url":"https://avatars.githubusercontent.com/u/1848786?v=3","gravatar_id":"","url":"https://api.github.com/users/fdidron","html_url":"https://github.com/fdidron","followers_url":"https://api.github.com/users/fdidron/followers","following_url":"https://api.github.com/users/fdidron/following{/other_user}","gists_url":"https://api.github.com/users/fdidron/gists{/gist_id}","starred_url":"https://api.github.com/users/fdidron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdidron/subscriptions","organizations_url":"https://api.github.com/users/fdidron/orgs","repos_url":"https://api.github.com/users/fdidron/repos","events_url":"https://api.github.com/users/fdidron/events{/privacy}","received_events_url":"https://api.github.com/users/fdidron/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T12:48:52Z","updated_at":"2016-06-21T12:48:52Z","body":"Good point, just to confirm, we should expose it on dev AND prod builds ?"}}
{"actor":{"display_login":"fdidron"}}