Skip to content
Permalink
Browse files
henryw374 js-joda
  • Loading branch information
henryw374 committed Apr 20, 2020
1 parent cd8758d commit 13958337d9ba2e04563c03076bba24be6e1b0921
Showing 1 changed file with 11 additions and 1 deletion.
@@ -20,8 +20,17 @@
(download :url (format "https://github.com/js-joda/js-joda/archive/@js-joda/core@%s.zip" +lib-version+)
:unzip true)
(sift :move {#"^js-joda--js-joda-core-([\d\.]+)/packages/core/dist/js-joda.min.js$" "cljsjs/js-joda-core/js-joda.min.js"})
(replace-content
:in "cljsjs/js-joda-core/js-joda.min.js" :out "cljsjs/js-joda-core/js-joda.min.js"
:match (java.util.regex.Pattern/compile "(.+)$", java.util.regex.Pattern/DOTALL)
:value "if(!this.JSJoda) { $1 }")

(sift :move {#"^js-joda--js-joda-core-([\d\.]+)/packages/core/dist/js-joda.js$" "cljsjs/js-joda-core/js-joda.inc.js"})
(replace-content
:in "cljsjs/js-joda-core/js-joda.inc.js"
:out "cljsjs/js-joda-core/js-joda.inc.js"
:match (java.util.regex.Pattern/compile "(.+)$", java.util.regex.Pattern/DOTALL)
:value "if(!this.JSJoda) { $1 }")

(sift :include #{#"^cljsjs"})
(deps-cljs
@@ -31,6 +40,7 @@
:requires []
:global-exports '{"@js-joda/core" JSJoda}}]
:externs [#"js-joda.ext.js"])
(pom)
(pom :project 'henryw374/js-joda
:dependencies [])
(show :fileset true)
(jar)))

0 comments on commit 1395833

Please sign in to comment.