{"action":"opened","issue":{"url":"https://api.github.com/repos/jovotech/jovo-cli/issues/20","repository_url":"https://api.github.com/repos/jovotech/jovo-cli","labels_url":"https://api.github.com/repos/jovotech/jovo-cli/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/jovotech/jovo-cli/issues/20/comments","events_url":"https://api.github.com/repos/jovotech/jovo-cli/issues/20/events","html_url":"https://github.com/jovotech/jovo-cli/issues/20","id":321550335,"number":20,"title":"Feature: Add command to build an optimized lamda bundle","user":{"login":"fgnass","id":89450,"avatar_url":"https://avatars1.githubusercontent.com/u/89450?v=4","gravatar_id":"","url":"https://api.github.com/users/fgnass","html_url":"https://github.com/fgnass","followers_url":"https://api.github.com/users/fgnass/followers","following_url":"https://api.github.com/users/fgnass/following{/other_user}","gists_url":"https://api.github.com/users/fgnass/gists{/gist_id}","starred_url":"https://api.github.com/users/fgnass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgnass/subscriptions","organizations_url":"https://api.github.com/users/fgnass/orgs","repos_url":"https://api.github.com/users/fgnass/repos","events_url":"https://api.github.com/users/fgnass/events{/privacy}","received_events_url":"https://api.github.com/users/fgnass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T12:28:43Z","updated_at":"2018-05-09T12:28:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"As mentioned in #10 we use the following workflow to keep the lamda function as small as possible:\r\n\r\n```\r\n#!/bin/bash\r\n\r\nset -e\r\nmkdir -p platforms/lambda\r\ncp -r app index.js package.json platforms/lambda\r\n\r\n# exclude tests, snapshots and fixtures:\r\nrm -rf platforms/lambda/app/__*\r\n\r\ncd platforms/lambda\r\nnpm i --production\r\n\r\ncd ../../\r\njovo deploy -t lambda --src platforms/lambda\r\n```\r\n\r\nThis way all dev-dependencies, tests, models and platform specific files are excluded from the bundle. It would be great if jovo-cli provided a similar functionality out of the box."}}
{"actor":{"display_login":"fgnass"}}