{ "id": "172359", "key": "ALOY-1632", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "20671", "description": "Alloy items that will be included in CLI 7.1.0", "name": "CLI Release 7.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20836", "name": "Alloy 1.14.0", "archived": false, "released": true, "releaseDate": "2019-07-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-06-21T17:31:21.000+0000", "created": "2018-09-27T08:05:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alloy-cli" ], "versions": [], "issuelinks": [ { "id": "57268", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "173219", "key": "CLI-1349", "fields": { "summary": "Support passing a custom template directory to alloy new command", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2019-06-21T17:31:22.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": [], "description": "Many of us use the open source version of Titanium / Alloy from the terminal to create our applications.\r\n\r\nThe process is always the same:\r\n\r\n*ti create*\r\n*alloy new*\r\n\r\nAlloy allows you to transform a classic code application to mvc alloy and it is possible to set a template in the following way:\r\n\r\n*alloy new ProjectNameFolder/ templateName*\r\n\r\nThe problem is: It only allows folder names that are hosted inside the templates folder in the alloy library.\r\n\r\nIf we move the custom template to this directory when alloy is updated, the custom template will be erased.\r\n\r\nThe proposal is:\r\n\r\nAllow a directory path to be set as template.\r\n\r\n*alloy new ProjectNameFolder/ /Path/to/my/custom/template*\r\n\r\nThis can be done in a simple way.\r\n\r\nJust have to modify the *getPaths* function at line 136 in the file */alloy/Alloy/commands/new/index.js* and check if the *templateName* parameter is a directory or not.\r\n\r\nWhat do you think about this proposal?", "attachment": [], "flagged": false, "summary": "Alloy: Allow to import a custom template from dir using Alloy CLI", "creator": { "name": "jormagar", "key": "jormagar", "displayName": "Jorge Macias Garcia", "active": true, "timeZone": "Europe/Brussels" }, "subtasks": [], "reporter": { "name": "jormagar", "key": "jormagar", "displayName": "Jorge Macias Garcia", "active": true, "timeZone": "Europe/Brussels" }, "environment": null, "closedSprints": [ { "id": 1094, "state": "closed", "name": "2018 Sprint 23", "startDate": "2018-11-04T22:55:10.289Z", "endDate": "2018-11-18T22:55:00.000Z", "completeDate": "2019-01-14T17:19:53.829Z", "originBoardId": 219 }, { "id": 1079, "state": "closed", "name": "2018 Sprint 20 Tooling", "startDate": "2018-09-23T16:57:12.355Z", "endDate": "2018-10-07T16:57:00.000Z", "completeDate": "2018-10-07T23:29:45.708Z", "originBoardId": 219 }, { "id": 1085, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:33:09.037Z", "endDate": "2018-10-21T23:33:00.000Z", "completeDate": "2018-10-21T23:19:36.765Z", "originBoardId": 219 }, { "id": 1087, "state": "closed", "name": "2018 Sprint 22", "startDate": "2018-10-21T23:20:11.380Z", "endDate": "2018-11-04T23:20:00.000Z", "completeDate": "2018-11-04T23:30:47.685Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "442101", "author": { "name": "rfarfan", "key": "rfarfan", "displayName": "Rodrigo Farfán", "active": true, "timeZone": "Europe/Madrid" }, "body": "Really interesting. 1 vote up from me", "updateAuthor": { "name": "rfarfan", "key": "rfarfan", "displayName": "Rodrigo Farfán", "active": true, "timeZone": "Europe/Madrid" }, "created": "2018-09-27T08:32:49.000+0000", "updated": "2018-09-27T08:32:49.000+0000" }, { "id": "449266", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with CLI Core 7.1.0-master.22.\r\nCustom template folder can now be used while converting a classic app to alloy app & works as expected.\r\n\r\nClosing.\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-21T17:30:46.000+0000", "updated": "2019-06-21T17:30:46.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }