[TIMOB-10755] CLI: "build" command for iOS modules
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-02-12T16:55:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.0.0 |
Components | CLI |
Labels | ft, hudder |
Reporter | Chris Barber |
Assignee | Feon Sua Xin Miao |
Created | 2012-09-04T14:48:25.000+0000 |
Updated | 2015-05-13T17:19:20.000+0000 |
Description
This involves taking the existing build.py logic (see https://github.com/appcelerator/titanium_mobile/blob/master/support/module/iphone/templates/build.py) and encapsulate this as part of a CLI build hook.
PR : https://github.com/appcelerator/titanium_mobile/pull/6298 Function test: 1. Create a module
2. cd into the iphone directory
3. run build command to package the module
Once the module is package, the example app is launched in simulator.
iOS modules with a JS file inside assets folder, can not be built as usual. Ticket TIMOB-18199 is created for this issue.
This is not related to the new CLI module build. For more information, please refer to my comment on the ticket TIMOB-18199.
FR passes, works as documented. Is this ready to be merged [~cbarber]?
Approved and merged
Verified the implementation of "build" command for IOS modules. The modules are created successfully & after build launches the example on to the Iphone simulator. Closing. Environment: Appc Studio : 3.5.1.201412091616 Ti SDK : 4.0.0.v20150313181810 CLI : 3.4.2 Alloy : 1.5.1 MAC Yosemite : 10.10.2
I just tested the ti build for module. It doesn't work for commonjs modules. There are too many missing part in the encryption process: * minify * uglify * titanium prep doesn't work (missing "_js" files) * Assets.m file is wrong