0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

Silence errors

This commit is contained in:
Florian Schroedl 2024-06-18 09:59:36 +02:00
parent 09609c18ef
commit d65d880845

View file

@ -40,17 +40,15 @@
:platforms {:json {:transformGroup "tokens-studio" :platforms {:json {:transformGroup "tokens-studio"
:files [{:format "custom/json" :files [{:format "custom/json"
:destination "fake-filename"}]}} :destination "fake-filename"}]}}
:log {:errors {:brokenReferences "console"}} :log {:verbosity "silent"
:preprocessors ["tokens-studio"]}) :warnings "silent"
;; debug? (assoc-in :log :warnings "warn" :errors {:brokenReferences "console"}}
;; :verbosity "verbose")) :preprocessors ["tokens-studio"]}
debug? (update :log merge {:verbosity "verbose"
:warnings "warn"}))
js-data (clj->js data)] js-data (clj->js data)]
(when debug? (when debug?
(js/console.log "Input Data" js-data)) (js/console.log "Input Data" js-data))
(sd-transforms/registerTransforms sd)
(.registerFormat sd #js {:name "custom/json"
:format (fn [res]
(.-tokens (.-dictionary res)))})
(sd. js-data))) (sd. js-data)))
(defn resolve-sd-tokens+ (defn resolve-sd-tokens+