mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
Silence errors
This commit is contained in:
parent
09609c18ef
commit
d65d880845
1 changed files with 6 additions and 8 deletions
|
@ -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+
|
||||||
|
|
Loading…
Add table
Reference in a new issue