Skip to content

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

Description

@civan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions