{ "id": "174734", "key": "TIMOB-27765", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2020-02-13T14:08:18.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "cb-tooling" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2020-02-13T16:45:41.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": "This would be a breaking change to the Titanium CLI but would allow a broader range of features and support a much faster startup time (in some scenarios)\r\n\r\n*{{build}}* - This command would do exactly what it says: build the app. (no running involved)\r\n*{{run}}* - This command would build the app (if necessary) and then run it on device or simulator\r\n*{{start}}* - This command would simply start the app (on device or simulator) (no rebuilding)\r\n\r\nThe first two would clear up some confusion as to function of command and the last command would add the much needed ability to start an app (without rebuilding). The start command would be especially helpful when reconnecting LiveView after an unexpected disconnect. Currently, a developer would have to rebuild the entire app and restart LiveView in order to continue using LiveView with the app.", "attachment": [], "flagged": false, "summary": "Revamp Titanium CLI commands to allow faster startup", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "454257", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is great, but won't make it into Titanium CLI v5 or v6. This would be perfect for v7!\r\n\r\nWe already have momentum for sunsetting the Appc CLI, so we will have a \"ti build\" and a \"ti run\", but \"ti build\" is just \"ti build --build-only\". In v6, we should not advertise the {{\\-\\-build-only}} flag and try to get people to use the different commands.\r\n\r\nI don't think \"ti start\" will make it for Titanium CLI v6, but certainly for v7.\r\n\r\nI also don't see how \"revamping Titanium CLI commands\" will improve build speeds. This ticket should be about clarifying \"build\" vs \"run\". The \"start\" command is a new feature, thus new ticket.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2020-02-13T16:35:00.000+0000", "updated": "2020-02-13T16:45:08.000+0000" }, { "id": "454259", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "It would be faster because it would not require a rebuild to just start the app.\r\n\r\nSo on future versions of Titanium CLI, the \"run\" command will build and the \"build\" command will run?? I think those need to be swapped (unless it was a typo).", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2020-02-13T16:43:26.000+0000", "updated": "2020-02-13T16:43:26.000+0000" }, { "id": "454260", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Sorry, fixed the typo. \"ti.build\" will do a \"ti build --build-only\".", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2020-02-13T16:45:41.000+0000", "updated": "2020-02-13T16:45:41.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }