{ "id": "165817", "key": "ALOY-1549", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15404", "description": "Alloy 2.0.0", "name": "Alloy 2.0.0", "archived": false, "released": false } ], "resolution": null, "resolutiondate": null, "created": "2017-02-07T13:09:56.000+0000", "priority": null, "labels": [ "alloy.js", "app.js", "createController", "index" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2020-01-31T12:13:59.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "During compilation, Alloy apparently appends a line named \"Alloy.createController('index');\" to the alloy.js file. We should remove any magic like this and make it visible/editable by the user. \r\n\r\nUse cases:\r\n- Run a different controller than index.js\r\n- Run unit tests before loading anything else\r\n- Run no controller at all but run a different setup (like keeping the splash screen on and doing stuff which does not require user interaction)", "attachment": [], "flagged": false, "summary": "Remove autoloading of index controller from Alloy.js", "creator": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "environment": "Any (tested on Ti SDK 6.0.1.GA)", "comment": { "comments": [ { "id": "406508", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "body": "https://github.com/appcelerator/alloy/pull/815", "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-02-07T13:16:53.000+0000", "updated": "2017-02-07T13:16:53.000+0000" }, { "id": "406612", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Thanks for creating the ticket and the PR. Our engineers will consider it. Moving to TIMOB.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-08T19:14:04.000+0000", "updated": "2017-02-08T19:14:04.000+0000" }, { "id": "453941", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "I currently use \"main\" to define the primary entry point for the application (similar to what Node.js does in package.json) . https://docs.npmjs.com/files/package.json#main\r\n\r\nWe can either use the existing \"main\" property in package.json or use a \"main\" property in config.json. ", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2020-01-30T17:23:09.000+0000", "updated": "2020-01-30T17:23:09.000+0000" }, { "id": "453977", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "That's a pretty nice solution [~bhouse], maybe rather than completely changing this and moving it to the alloy.js file. We could look at allowing it to be configured using something like the following:\r\n\r\n1. Prefer main in config.json\r\n2. Fallback to main in package.json\r\n3. If nothing else exists we maintain the {{Alloy.createController('index');}}\r\n\r\nI'd imagine we should still consider this a breaking change though just incase folks are using main in package.json/config.json already", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-01-31T12:13:59.000+0000", "updated": "2020-01-31T12:13:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }