Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13569

Code Processor: Migrate CLI integration from it's current mechanism into a hook

    Details

      Description

      Currently, the code-processor is hard coded into the build system; a by-product of integration occurring before the hook system was fully implemented. It needs to be properly integrated as a hook before source maps are implemented.

      Test Instructions

      1. Make sure that you have installed the git master version of the code processor
      2. Make sure that the hooks directory in the code processor is added to the CLI's hooks path, e.g.

            titanium config paths.hooks --append /usr/local/lib/node_modules/titanium-code-processor/hooks/
        

      3. Modify your tiapp.xml to enable the code processor during build, e.g.

            <code-processor>
                <enabled>true</enabled>
            </code-processor>
        

      4. Build the project for Mobile Web
      5. Compare the size of <project dir>/build/mobileweb/index.html with the code processor disabled vs enabled.
        1. With the code processor disabled, the index.html file size should be a little over 500kb
        2. With the code processor enabled, the index.html file size should be around 170kb for the two tab app (size varies with app)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mlangston Matt Langston
                Reporter:
                ingo Ingo Muschenetz
                Reviewer:
                Chris Barber
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration