{ "id": "110302", "key": "AC-3240", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-03-08T22:40:37.000+0000", "created": "2013-02-27T03:42:54.000+0000", "labels": [ "alloy", "build", "compile" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When compiling/building an alloy project, it would be great if all folders within the app directory were automatically moved to the Resources directory. Currently only specified directories (controllers, models, etc) get moved.\r\n\r\nMoving all folders during the build would allow usage of normal commonjs patterns. Currently, the only way to use require is by placing exports within the assets directory, where it doesn't seem to fit.\r\n\r\nExample:\r\n\r\napp\r\n|--> controllers\r\n |--> index.js\r\n|--> models\r\n|--> views\r\n|--> utils\r\n |--> math.js\r\n\r\nIn stuff:\r\nexports.add = function(a, b){\r\n return a + b\r\n}\r\n\r\nin index:\r\nvar math = require('math');\r\nmath.add(5, 3);", "attachment": [], "flagged": false, "summary": "Compile All Folders", "creator": { "name": "joelongstreet", "key": "joelongstreet", "displayName": "Joe Longstreet", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joelongstreet", "key": "joelongstreet", "displayName": "Joe Longstreet", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "All", "comment": { "comments": [ { "id": "241425", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We plan to stick to the convention of having both the \"app/assets\" and \"app/lib\" folders move their contents into the Resources folder during the compile process. The \"app/lib\" folder is a more appropriate place for your commonjs files.\r\n\r\nhttp://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Concepts-section-34636240_AlloyConcepts-ConventionoverConfiguration", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-08T22:40:37.000+0000", "updated": "2013-03-08T22:40:37.000+0000" }, { "id": "241516", "author": { "name": "joelongstreet", "key": "joelongstreet", "displayName": "Joe Longstreet", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Wow, totally missed that in the docs. Thanks for the clarification. ", "updateAuthor": { "name": "joelongstreet", "key": "joelongstreet", "displayName": "Joe Longstreet", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-10T15:06:55.000+0000", "updated": "2013-03-10T15:06:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }