{"action":"created","issue":{"url":"https://api.github.com/repos/rendrjs/rendr/issues/452","labels_url":"https://api.github.com/repos/rendrjs/rendr/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/rendrjs/rendr/issues/452/comments","events_url":"https://api.github.com/repos/rendrjs/rendr/issues/452/events","html_url":"https://github.com/rendrjs/rendr/issues/452","id":61909239,"number":452,"title":"[Question] Improving development workflow and client cache misses","user":{"login":"pjanuario","id":477458,"avatar_url":"https://avatars.githubusercontent.com/u/477458?v=3","gravatar_id":"","url":"https://api.github.com/users/pjanuario","html_url":"https://github.com/pjanuario","followers_url":"https://api.github.com/users/pjanuario/followers","following_url":"https://api.github.com/users/pjanuario/following{/other_user}","gists_url":"https://api.github.com/users/pjanuario/gists{/gist_id}","starred_url":"https://api.github.com/users/pjanuario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjanuario/subscriptions","organizations_url":"https://api.github.com/users/pjanuario/orgs","repos_url":"https://api.github.com/users/pjanuario/repos","events_url":"https://api.github.com/users/pjanuario/events{/privacy}","received_events_url":"https://api.github.com/users/pjanuario/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-15T22:15:59Z","updated_at":"2015-03-16T18:27:50Z","closed_at":null,"body":"I am starting with rendr and I am trying to improve the performance of the code reload in development and also improve client side cache. My starting point were the codebase existent on the examples/06.\r\n\r\nSo my goal are:\r\n* Split the bundle in two (at least):\r\n  - vendor bundle: with rendr and rendr dependencies (backbone, underscore...);\r\n  - application bundle: with the application logic (router, views, ...)\r\n* update grunt-browserify used from the examples (to use cache existent on the plugin)\r\n\r\nBundling: Since our application code is in a different bundle the reload should be faster since it contains less dependencies to bundle. Would also be nice to have a bundle with the handlebar templates and other with server side logic, this would probably improve the reload time also and specially useful for designers workflow.\r\n\r\nGrunt Browserify plugin: From what I had read, the last builds of grunt-browserify would allow us to use the native browserify cache that make bundle faster after the first bundle. But until now I was unable to package the app (even with a single bundle) with the last version of grunt-browserify, since alias mapping have been removed and alternatives seems not be working properly.\r\n\r\nAnyone with nice recipes for this kind of stuff?\r\n@saponifi3d :)\r\n"},"comment":{"url":"https://api.github.com/repos/rendrjs/rendr/issues/comments/81855350","html_url":"https://github.com/rendrjs/rendr/issues/452#issuecomment-81855350","issue_url":"https://api.github.com/repos/rendrjs/rendr/issues/452","id":81855350,"user":{"login":"pjanuario","id":477458,"avatar_url":"https://avatars.githubusercontent.com/u/477458?v=3","gravatar_id":"","url":"https://api.github.com/users/pjanuario","html_url":"https://github.com/pjanuario","followers_url":"https://api.github.com/users/pjanuario/followers","following_url":"https://api.github.com/users/pjanuario/following{/other_user}","gists_url":"https://api.github.com/users/pjanuario/gists{/gist_id}","starred_url":"https://api.github.com/users/pjanuario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjanuario/subscriptions","organizations_url":"https://api.github.com/users/pjanuario/orgs","repos_url":"https://api.github.com/users/pjanuario/repos","events_url":"https://api.github.com/users/pjanuario/events{/privacy}","received_events_url":"https://api.github.com/users/pjanuario/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T18:27:50Z","updated_at":"2015-03-16T18:27:50Z","body":"@saponifi3d by the way, can you talk a little bit about the stack you are using. I am building stuff in node in the last year but is my first website using node, my previous project were mainly api's and microservice components in plain node/js.\r\n\r\nSo I am still researching for appropriate tools. Such as tools/recipes to:\r\n* manage assets versions and full urls, since I will be using a cookie free domain with cdn for all the assets, I was thinking in building some handlebars + express + bundle helpers for this, something similar to rails asset bundle that prefix asset-md5 to ensure asset refresh;\r\n* user sessions (but i known this express middleware and fairly straight);\r\n\r\nWould be nice to have some place where people could share there tools and workflows, probably a lot people have custom scripts that could be reused and who knows we could create and rendr example that could be used to bootstrap an application for people that is starting with rendr."}}