Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7621] MobileWeb: Compile Ti+ modules

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-12T13:01:34.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-05, Release 2.0.0
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-02-10T16:25:25.000+0000
Updated2017-03-04T00:20:36.000+0000

Description

Need to implement the module compile process for Mobile Web modules. This will embed the manifest variables into the module, then minify the module, and bundle everything up.

Comments

  1. Chris Barber 2012-03-12

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1639
  2. Chris Barber 2012-03-12

    To test this, do the following: 0) Do a FULL scons of titanium_mobile 1) Create a module:
       python /Library/Application\ Support/Titanium/mobilesdk/osx/2.0.0/titanium.py create --platform=mobileweb --type=module --dir=. --name=mymodule --id=mymodule
       
    2) Build the module
       cd mymodule
       python build.py
       
    3) Install the module into either the global modules folder -or- create a "modules" folder in your project as a sibling of the Resources directory. 4) Add the module to the tiapp.xml
       <modules>
           <module platform="mobileweb" version="0.1">mymodule</module>
       </modules>
       
    5) Copy the mymodule/0.1/example/app.js to the Resources/app.js 6) Build the project 7) Run the project in a web browser 8) View the console output and should look like this:
       [INFO] module is => [object Object]
       [INFO] module exampleProp is => hello world
       
  3. Lee Morris 2017-03-04

    Closing ticket due to MobileWeb no longer being supported.

JSON Source