This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -eux | |
# Original by Austin Birch in http://austinbirch.co.uk/clojurescript-react-native-bundling-release.html | |
# updated for metro-bundler 0.9.0 | |
# prevent metro-bundler applying code folding to our cljs output | |
sed -i .bak \ | |
's/(options.minify)/(options.minify \&\& !filename.match(\/release\\.ios\\.js\/))/' \ | |
./node_modules/metro-bundler/src/JSTransformer/worker/index.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[criterium.core]) | |
(require '[clojure.pprint]) | |
(defn some | |
"Returns the first logical true value of (pred x) for any x in coll, | |
else nil. One common idiom is to use a set as pred, for example | |
this will return :fred if :fred is in the sequence, otherwise nil: | |
(some #{:fred} coll)" | |
{:added "1.0" | |
:static true} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:paths ["."] | |
:deps {org.clojure/clojure {:mvn/version "1.10.0-alpha4"} | |
org.clojure/clojurescript {:mvn/version "1.10.238"} | |
org.clojure/test.check {:mvn/version "0.10.0-alpha2"}}} |
OlderNewer