{ "id": "100426", "key": "TIMOB-10757", "fields": { "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "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": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-24T19:20:16.000+0000", "created": "2012-09-04T14:48:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ft", "notable", "planning-3.2.0" ], "versions": [], "issuelinks": [ { "id": "20562", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "94686", "key": "TISTUD-1896", "fields": { "summary": "Add CLI command support for packaging a MobileWeb Titanium Module", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "22505", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "104340", "key": "TISTUD-2699", "fields": { "summary": "Add CLI command support for packaging a iOS Titanium Module", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "20766", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "89765", "key": "TIMOB-8652", "fields": { "summary": "Core: Create a new Titanium Command Line Interface", "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": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } }, { "id": "20588", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "92036", "key": "TIMOB-9179", "fields": { "summary": "CLI: 'build', 'install', 'run' for CommonJS modules", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "43684", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "140180", "key": "TIMOB-18071", "fields": { "summary": "CLI: Fail build if compiled architectures do not match module manifest", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "36364", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "100427", "key": "TIMOB-10758", "fields": { "summary": "CLI: \"build\" command for CLI modules", "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": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "37748", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "130703", "key": "TIMOB-17002", "fields": { "summary": "CLI: Modules: Add ability to build and package multiple platform modules into a single zip file", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "21272", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "100908", "key": "MOD-874", "fields": { "summary": "Design discussions for CLI and CI server updates", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "37747", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "94921", "key": "TIMOB-16999", "fields": { "summary": "Restructure module projects to support parity and shared files", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-03-22T17:05:17.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "The task involves a few things before implementing the platform specific logic.\r\n\r\nh4. {{cli/commands/build.js}}\r\n\r\nIn the {{project-dir}} callback function, determine if the project is an app or a module. If the project has a {{tiapp.xml}}, then it is an app. If the project has a {{timodule.xml}}, it is a module. When a module project is found, the {{timodule.xml}} should be parsed and saved into the {{cli.timodule}} variable. If the the project is neither a app or module, error and exit. You should set the {{cli.argv.type}} to the appropriate value. Remember that you need to scan up the directory tree since the {{project-dir}} may be a subdirectory.\r\n\r\nIn the {{validate()}} function, if it is an app, then do the {{ti.validateCorrectSDK()}} and {{ti.validatePlatform()}} stuff. If it is a module, then validate module stuff.\r\n\r\nIn the {{run()}} function, I think you only need to call {{ti.resolvePlatform()}} for apps. The {{buildModule}} should be {{path.join(__dirname, '..', '..', platform, 'cli', 'commands', '_build.js')}} for apps and {{path.join(__dirname, '..', '..', platform, 'cli', 'commands', '_build_module.js')}} for modules. If {{_build_module.js}} file does not exist, error and exit.\r\n\r\nh4. {{node_modules/titanium-sdk/lib/builder.js}}\r\n\r\nAdd {{this.timodule = cli.timodule;}} to the {{run()}} function after the {{this.tiapp}} line.", "attachment": [], "flagged": false, "summary": "CLI: Module Build", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 690, "state": "closed", "name": "2016 Sprint 17 Tooling", "startDate": "2016-08-13T00:01:26.394Z", "endDate": "2016-08-27T00:01:00.000Z", "completeDate": "2016-08-29T03:15:35.641Z", "originBoardId": 199 }, { "id": 339, "state": "closed", "name": "2015 Sprint 04 Tooling", "startDate": "2015-02-14T02:34:21.061Z", "endDate": "2015-02-28T02:34:00.000Z", "completeDate": "2015-02-28T15:51:32.596Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "354118", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iOS and Android are done. MobileWeb is on hold for the moment.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-02T17:55:37.000+0000", "updated": "2015-06-02T17:55:37.000+0000" }, { "id": "414766", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:05:17.000+0000", "updated": "2017-03-22T17:05:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }