Details

    • Epic Name:
      CLI: Module Build
    • Story Points:
      0
    • Sprint:
      2015 Sprint 04 Tooling, 2016 Sprint 17 Tooling

      Description

      The task involves a few things before implementing the platform specific logic.

      cli/commands/build.js

      In 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.

      In 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.

      In 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.

      node_modules/titanium-sdk/lib/builder.js

      Add this.timodule = cli.timodule; to the run() function after the this.tiapp line.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                cbarber Chris Barber
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14143
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration