sass-export
sass-export copied to clipboard
Add the ability to get the json variables as 'object'
Currently when we export using:
sass-export test/scss/_annotations.scss -o exported.json
You should get this output
We are aiming to have this JSON output: (this is also related to Issues: #23, #20)
{
"variables": {
"black": { "name": "$black", "value": "#000", "compiledValue": "#000" },
"slate": { "name": "$slate", "value": "#8ca5af", "compiledValue": "#8ca5af" },
"other-name": { "name": "$other-name", "value": "#ff0000", "compiledValue": "#ff0000" }
}
}
For this specifically request we want the variables: [] to be a keyed object variables: {}
Don't forget to update:
- [ ] source code
- [ ] unit tests
- [ ] documentation
- [ ] examples
What do you mean? Can you elaborate, and I can make it happen
@cotyembry Updated description, let me know if you need anything else.
thanks!