Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13569] Code Processor: Migrate CLI integration from it's current mechanism into a hook

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-18T20:40:02.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 08 JS, 2013 Sprint 08, Release 3.1.1, Release 3.2.0
ComponentsCode Processor
Labelsn/a
ReporterIngo Muschenetz
AssigneeMatt Langston
Created2013-04-15T22:35:36.000+0000
Updated2017-03-09T00:21:59.000+0000

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

Make sure that you have installed the git master version of the code processor

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/

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

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

Build the project for Mobile Web

Compare the size of /build/mobileweb/index.html with the code processor disabled vs enabled.

With the code processor disabled, the index.html file size should be a little over 500kb

With the code processor enabled, the index.html file size should be around 170kb for the two tab app (size varies with app)

Comments

  1. Bryan Hughes 2013-04-15

    Code Processor PR: https://github.com/appcelerator/titanium-code-processor/pull/159 CLI PR: https://github.com/appcelerator/titanium_mobile/pull/4164
  2. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source