Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10752] CLI: "create" builtin for modules

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-04-18T17:43:54.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2014 Sprint 08, 2014 Sprint 08 Tooling, Release 3.3.0
ComponentsCLI
Labelscore, module, qe-closed-3.3.0, qe-testadded
ReporterStephen Tramer
AssigneeChris Barber
Created2012-09-04T14:14:44.000+0000
Updated2014-05-29T04:47:48.000+0000

Description

This task is for writing the create builtin as described in the [CLI spec](https://wiki.appcelerator.org/display/spe/Command+Line+Interface). Depends upon the command API from TIMOB-9022 to be completed. This ticket *may* be performed in tandem with TIMOB-9022, in which case the "create" stub is unnecessary there. Tasks include: * Write "create" builtin * Produce documentation (tdoc2, markdown, manpage, whatever) * Test plan for "create" builtin ** We may want to consider using "node-unit" or another node unit testing framework. This could be an investigation task as part of this ticket as well.

Comments

  1. Chris Barber 2014-04-17

    Titanium SDK master pull request: https://github.com/appcelerator/titanium_mobile/pull/5621 Titanium CLI master pull request: https://github.com/appcelerator/titanium/pull/127
  2. Chris Barber 2014-04-17

    Things to test: 1) Creating a module 2) Building the module for Android 3) Building the module for iOS 4) Building the module for Mobile Web 5) Building an Android app that uses the module 6) Building an iOS app that uses the module 7) Building an Mobile Web app that uses the module 8) Add an image to assets and repeat steps 2, 3, 5, 6 9) Add a ".js" file to assets dir and repeat steps 2, 3, 5, 6 How to test: 1) Run "ti create" 2) Select "module" 3) Fill the rest of the info in 4) Wait For Android, iOS, and Mobile Web: 5) cd 6) if Android, run "ant" 7) if iOS or Mobile Web, run "python build.py" Testing in an app: 8) Unzip the generated zip file (placed in root of module platform dir, except for Android where it's in the dist folder) into the root of your app project 9) Include module in tiapp.xml 10) Add module loading code to app.js 11) Build app for Android, iOS, and Mobile Web 12) Verify that the module works When all done: 13) MERGE!!!! 14) Enjoy a frosty beverage
  3. Tim Poulsen 2014-04-18

    All works as described
  4. Chris Barber 2014-04-18

    [~penrique] It should already be hooked up as long as you have an _create.js file in blackberry/cli/commands.
  5. Olga Romero 2014-05-06

    Tested, following [~cbarber] instructions. Environment: Mac osx 10.9.2 Mavericks Appcelerator Studio, build: 3.3.0.201405011408 Titanium SDK, build: 3.3.0.v20140505115416 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-dev npm@1.3.2 titanium@3.3.0-dev titanium-code-processor@1.1.1

JSON Source