Titanium JIRA Archive
Alloy (ALOY)

[ALOY-683] CFG.js not being regenerated with changes to config.json

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-01-20T21:31:57.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.3.0, 2014 Sprint 02
Componentsn/a
Labelsalloy, config
ReporterNeville Dastur
AssigneeTim Poulsen
Created2013-05-31T13:06:37.000+0000
Updated2014-01-28T23:55:19.000+0000

Description

Comments

  1. Tim Poulsen 2014-01-20

    This is working fine with Alloy 1.3 and Titanium 3.2.0.GA Test procedure 1. Create a new Alloy app 2. To app/controllers/index.js, add
       Ti.API.info('Alloy.CFG.foo = ' + Alloy.CFG.foo);
       
    3. Update app/config.json to read:
       {
         "global": {"foo": "bar"}, 
         "env:development": {}, 
         "env:test": {}, 
         "env:production": {}, 
         "os:android": {},
         "os:blackberry": {},
         "os:ios": {},
         "os:mobileweb": {},
         "dependencies": {}
       }
       
    4. Build app. Logging message is [INFO] : Alloy.CFG.foo = bar and contents of Resources/CFG.js is module.exports={"dependencies":{},"foo":"bar"}; 5. Modify config.json, setting foo equal to Darth Vader. 6. Build app. Logging message is [INFO] : Alloy.CFG.foo = Darth Vader and contents of Resources/CFG.js is module.exports={"dependencies":{},"foo":"Darth Vader"};

JSON Source