[ALOY-737] ALLOY: Integrate xml2tss
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-10T20:35:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.2.0, 2013 Sprint 14 |
Components | Tooling |
Labels | notable, qe-testadded |
Reporter | Daniel Sefton |
Assignee | Tony Lukasavage |
Created | 2013-07-08T22:03:28.000+0000 |
Updated | 2013-08-03T00:42:42.000+0000 |
Description
See https://github.com/appcelerator/alloy/pull/165 for the full discussion.
PR: https://github.com/appcelerator/alloy/pull/172 The automated unit tests
jake test:all
will confirm that existing behavior has not been negatively impacted. To pass functional testing, Follow these steps: 1. Create a new Alloy app 2. Create a new view manually, named for exmaple "foo.xml". Make sure this view contains multiple elements and use a few different *id* and *class* values. 3. runalloy generate style foo
from the CLI 4. Inspect the resulting "app/styles/foo.tss" file and ensure that empty style entries have been created for all ids and classes from the view created in step #2. 5. Repeat steps 2-4 for a few more views. 6. If all looks good, delete all styles from "app/styles" 7. runalloy generate style --all
from the CLI 8. Go to the "app/styles" folder and ensure that new styles have been created for all views, and that all those styles contain the appropriate empty style entries for each id and class contained in the corresponding views.