Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1351] Generating `Resources/alloy.js` from template is not required when selective compile

GitHub Issuen/a
TypeBug
PriorityLow
StatusResolved
ResolutionFixed
Resolution Date2016-02-08T20:18:56.000+0000
Affected Version/salloy 1.7.33
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterFeon Sua Xin Miao
AssigneeBruce Wayne
Created2016-02-08T20:16:54.000+0000
Updated2016-02-08T20:19:05.000+0000

Description

Community PR: https://github.com/appcelerator/alloy/pull/751 When compiling only app/alloy.js, generating Resources/alloy.js from template is not required. Because Resource/alloy.js is not user's code but builtin code. So when compiling specific controller and alloy.js only, Generate Resource/alloy.js should be skipped. \\

Reproduce steps

delete all file of Resources folder.

run : alloy compile -q ios --config file=app/alloy.js

you can check compiling result on Resource

Resources/iphone/alloy.js is generated from template But Resources/iphone/alloy.js is not optimized. It has uncompiled CONSTANT such as OS_MOBILEWEB. it makes undefined error on runtime.

Comments

  1. Feon Sua Xin Miao 2016-02-08

    PR merged.

JSON Source