mirror of https://github.com/status-im/reagent.git
more cleanup
This commit is contained in:
parent
261166d4fe
commit
0847dcc9ed
|
@ -168,17 +168,14 @@
|
||||||
(.' fs mkdirSync d)))))
|
(.' fs mkdirSync d)))))
|
||||||
|
|
||||||
(defn write-file [f content]
|
(defn write-file [f content]
|
||||||
(let [fs (js/require "fs")]
|
(mkdirs f)
|
||||||
(mkdirs f)
|
(.' (js/require "fs") writeFileSync f content))
|
||||||
(.' fs writeFileSync f content)))
|
|
||||||
|
|
||||||
(defn read-file [f]
|
(defn read-file [f]
|
||||||
(let [fs (js/require "fs")]
|
(.' (js/require "fs") readFileSync f))
|
||||||
(.' fs readFileSync f)))
|
|
||||||
|
|
||||||
(defn path-join [& paths]
|
(defn path-join [& paths]
|
||||||
(let [path (js/require "path")]
|
(apply (.' (js/require "path") :join) paths))
|
||||||
(apply (.' path :join) paths)))
|
|
||||||
|
|
||||||
(defn read-css []
|
(defn read-css []
|
||||||
(string/join "\n" (map read-file (:css-infiles @config))))
|
(string/join "\n" (map read-file (:css-infiles @config))))
|
||||||
|
|
Loading…
Reference in New Issue