xml2tss
Build an empty tss file from an Alloy view xml fileInstall
sudo npm install -g xml2tss
Usage
xml2tss [filename]
```
converted filed is returned to stdout (so you can build your own editor
plugin)
## to output to a file
xml2tss row.xml > ../styles/row.tss
## to clipboard (OS X)
xml2tss row.xml | pbcopy
# Output
From this:
<TextField id="itemField" hintText="What do you need to do?" />
<Button id="addBtn" class="button again">Add Item</Button>
<Button id="cancelBtn" class="button" class="two">Cancel</Button>
Generates this:
"#addBtn" : {} "#addWin" : {
} "#cancelBtn" : {
} "#itemField" : {
} ".again" : {
} ".button" : {
} ".container" : {
} ```