sass-export icon indicating copy to clipboard operation
sass-export copied to clipboard

Add the ability to get the json variables as 'object'

Open civan opened this issue 8 years ago • 2 comments

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

civan avatar Oct 25 '17 04:10 civan

What do you mean? Can you elaborate, and I can make it happen

cotyembry avatar Oct 25 '17 05:10 cotyembry

@cotyembry Updated description, let me know if you need anything else.

thanks!

civan avatar Oct 25 '17 14:10 civan