Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10755] CLI: "build" command for iOS modules

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-02-12T16:55:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsCLI
Labelsft, hudder
ReporterChris Barber
AssigneeFeon Sua Xin Miao
Created2012-09-04T14:48:25.000+0000
Updated2015-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.

Comments

  1. Feon Sua Xin Miao 2014-11-03

    PR : https://github.com/appcelerator/titanium_mobile/pull/6298 Function test: 1. Create a module
    ti create -p ios -t module -d . -n test -u http:// --id com.example.test
    2. cd into the iphone directory
    cd test/iphone/
    3. run build command to package the module
    ti build -p ios
    Once the module is package, the example app is launched in simulator.
  2. Kajenthiran Velummaylum 2014-12-15

    iOS modules with a JS file inside assets folder, can not be built as usual. Ticket TIMOB-18199 is created for this issue.
  3. Feon Sua Xin Miao 2014-12-16

    This is not related to the new CLI module build. For more information, please refer to my comment on the ticket TIMOB-18199.
  4. Tim Poulsen 2015-02-05

  5. Tim Poulsen 2015-02-09

    FR passes, works as documented. Is this ready to be merged [~cbarber]?
  6. Tim Poulsen 2015-02-12

    Approved and merged
  7. Lokesh Choudhary 2015-03-18

    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
  8. Martin Guillon 2015-05-13

    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

JSON Source