[ALOY-1351] Generating `Resources/alloy.js` from template is not required when selective compile
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2016-02-08T20:18:56.000+0000 |
Affected Version/s | alloy 1.7.33 |
Fix Version/s | n/a |
Components | Tooling |
Labels | n/a |
Reporter | Feon Sua Xin Miao |
Assignee | Bruce Wayne |
Created | 2016-02-08T20:16:54.000+0000 |
Updated | 2016-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.
PR merged.