amzn/style-dictionary

View on GitHub
__tests__/__configs/test.json

Summary

Maintainability
Test Coverage
{
  "source": ["__tests__/__properties/**/*.json"],
  "platforms": {
    "web": {
      "transformGroup": "web",
      "prefix": "smop",
      "buildPath": "__tests__/__output/web/",
      "files": [
        {
          "destination": "_icons.css",
          "format": "scss/icons"
        },{
          "destination": "_variables.css",
          "format": "scss/variables"
        },{
          "destination": "_styles.js",
          "format": "javascript/module"
        }
      ]
    },
    "scss": {
      "transformGroup": "scss",
      "prefix": "smop",
      "buildPath": "__tests__/__output/scss/",
      "files": [
        {
          "destination": "_icons.scss",
          "format": "scss/icons"
        },{
          "destination": "_variables.scss",
          "format": "scss/variables"
        }
      ]
    },
    "less": {
      "transformGroup": "less",
      "prefix": "smop",
      "buildPath": "__tests__/__output/less/",
      "files": [
        {
          "destination": "_icons.less",
          "format": "less/icons"
        },{
          "destination": "_variables.less",
          "format": "less/variables"
        }
      ]
    },
    "android": {
      "transformGroup": "android",
      "buildPath": "__tests__/__output/",
      "files": [
        {
          "destination": "android/colors.xml",
          "format": "android/colors"
        },{
          "destination": "android/font_dimen.xml",
          "format": "android/fontDimens"
        },{
          "destination": "android/dimens.xml",
          "format": "android/dimens"
        }
      ],
      "actions": [
        "android/copyImages"
      ]
    },
    "ios": {
      "transformGroup": "ios",
      "buildPath": "__tests__/__output/ios/",
      "files": [
        {
          "destination": "style_dictionary.plist",
          "format": "ios/plist"
        },{
          "destination": "style_dictionary.h",
          "format": "ios/macros"
        }
      ]
    }
  }
}