mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -05:00
Add testing block
This commit is contained in:
parent
a757556e9c
commit
072cec7a22
1 changed files with 18 additions and 0 deletions
|
@ -128,6 +128,24 @@
|
||||||
(.buildAllPlatforms "json")
|
(.buildAllPlatforms "json")
|
||||||
(p/then #(.-allTokens ^js %)))))
|
(p/then #(.-allTokens ^js %)))))
|
||||||
|
|
||||||
|
(comment
|
||||||
|
(-> (StyleDictionary. default-config)
|
||||||
|
(enable-debug)
|
||||||
|
(add-tokens {"foo" (ctob/make-token :type :border-radius
|
||||||
|
:value "12px"
|
||||||
|
:name "foo")
|
||||||
|
"bar" (ctob/make-token :type :border-radius
|
||||||
|
:value "{foo} * 2"
|
||||||
|
:name "foo")
|
||||||
|
"color" (ctob/make-token :type :color
|
||||||
|
:value "red"
|
||||||
|
:name "color")})
|
||||||
|
(build-dictionary)
|
||||||
|
(p/finally (fn [x err]
|
||||||
|
(js/console.log "x err" x err))))
|
||||||
|
nil)
|
||||||
|
|
||||||
|
|
||||||
(defn resolve-tokens-tree+
|
(defn resolve-tokens-tree+
|
||||||
([tokens-tree get-token]
|
([tokens-tree get-token]
|
||||||
(resolve-tokens-tree+ tokens-tree get-token (StyleDictionary. default-config)))
|
(resolve-tokens-tree+ tokens-tree get-token (StyleDictionary. default-config)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue