forked from lukasoppermann/design-token-transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
119 lines (119 loc) · 2.92 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"source": ["tokens/*.json"],
"platforms": {
"scss": {
"transformGroup": "custom/scss",
"buildPath": "build/scss/",
"files": [{
"destination": "_variables.scss",
"format": "scss/variables"
}]
},
"less": {
"transformGroup": "custom/less",
"buildPath": "build/less/",
"files": [{
"destination": "_variables.less",
"format": "less/variables"
}]
},
"css": {
"transformGroup": "custom/css",
"buildPath": "build/css/",
"files": [{
"destination": "_variables.css",
"format": "css/variables",
"options" : {
"showFileHeader": false
}
}]
},
"json-flat": {
"transformGroup": "js",
"buildPath": "build/json/",
"files": [
{
"destination": "styles.json",
"format": "json/flat"
}
]
},
"json-flat2": {
"transformGroup": "js",
"buildPath": "build/js/",
"files": [
{
"destination": "styles.js",
"format": "json/flat"
}
]
},
"ios": {
"transformGroup": "ios",
"buildPath": "build/ios/",
"files": [{
"destination": "StyleDictionaryColor.h",
"format": "ios/colors.h",
"className": "StyleDictionaryColor",
"type": "StyleDictionaryColorName",
"filter": {
"type": "color"
}
},{
"destination": "StyleDictionaryColor.m",
"format": "ios/colors.m",
"className": "StyleDictionaryColor",
"type": "StyleDictionaryColorName",
"filter": {
"type": "color"
}
},{
"destination": "StyleDictionarySize.h",
"format": "ios/static.h",
"className": "StyleDictionarySize",
"type": "float",
"filter": {
"type": "number"
}
},{
"destination": "StyleDictionarySize.m",
"format": "ios/static.m",
"className": "StyleDictionarySize",
"type": "float",
"filter": {
"type": "number"
}
}]
},
"ios-swift": {
"transformGroup": "ios-swift",
"buildPath": "build/ios-swift/",
"files": [{
"destination": "StyleDictionary.swift",
"format": "ios-swift/class.swift",
"className": "StyleDictionary",
"filter": {}
}]
},
"ios-swift-separate-enums": {
"transformGroup": "ios-swift-separate",
"buildPath": "build/ios-swift/",
"files": [{
"destination": "StyleDictionaryColor.swift",
"format": "ios-swift/enum.swift",
"className": "StyleDictionaryColor",
"filter": {
"type": "color"
}
},{
"destination": "StyleDictionarySize.swift",
"format": "ios-swift/enum.swift",
"className": "StyleDictionarySize",
"type": "float",
"filter": {
"type": "number"
}
}]
}
}
}