[ALOY-1287] Alloy styles compilation does not produce the same results accross successive compilations
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2015-07-29T00:06:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.7.0 |
Components | Styling |
Labels | defect |
Reporter | Xavier Lacot |
Assignee | Ingo Muschenetz |
Created | 2015-07-01T08:29:12.000+0000 |
Updated | 2015-07-29T00:06:48.000+0000 |
Description
In some cases, when the developer overloads in a stylesheets some styles defined in theapp.tss
files, the alloy compilation won't produce the same resulting javascript accross successive compilations.
Alloy's styler orders style rules to define their priority, but there's a bug with the app.tss
global styles being cached and therefore not correctly being counted by the styler during a compilation phase when app.tss
didn't change.
Steps to reproduce:
* create a new alloy app, replace its app
folder with the one contained in the attached app.zip file
* compile once: alloy compile --config platform=ios
. Check in Resources/iphone/alloy/controllers/sum.js
that the style rules defined in app/styles/sum.tss
are applied correctly
* compile again, the generated javascript in the Resources
directory differ. In particular, the Resources/iphone/alloy/controllers/sum.js
does only contain rules from the app.tss
file.
A PR is being proposed to fix this problem.
Attachments
File | Date | Size |
---|---|---|
app.zip | 2015-07-01T08:28:07.000+0000 | 7603 |