Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrorgirardi/hello-expo-cljs
Expo with ClojureScript
https://github.com/pedrorgirardi/hello-expo-cljs
Last synced: 9 days ago
JSON representation
Expo with ClojureScript
- Host: GitHub
- URL: https://github.com/pedrorgirardi/hello-expo-cljs
- Owner: pedrorgirardi
- License: epl-1.0
- Created: 2018-09-22T04:49:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T05:01:48.000Z (over 6 years ago)
- Last Synced: 2024-11-17T13:49:39.890Z (2 months ago)
- Language: JavaScript
- Size: 198 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## hello-expo-cljs
### Usage
#### Install Expo [XDE and mobile client](https://docs.expo.io/versions/v15.0.0/introduction/installation.html)
If you don't want to use XDE (not IDE, it stands for Expo Development Tools), you can use [exp CLI](https://docs.expo.io/versions/v15.0.0/guides/exp-cli.html).``` shell
yarn global add exp
```#### Install [Lein](http://leiningen.org/#install) or [Boot](https://github.com/boot-clj/boot)
#### Install npm modules
``` shell
yarn install
```#### Signup using exp CLI
``` shell
exp signup
```#### Start the figwheel server and cljs repl
##### leiningen users
``` shell
lein figwheel
```##### boot users
``` shell
boot dev;; then input (cljs-repl) in the connected clojure repl to connect to boot cljs repl
```#### Start Exponent server (Using `exp`)
##### Also connect to Android device
``` shell
exp start -a --lan
```##### Also connect to iOS Simulator
``` shell
exp start -i --lan
```### Add new assets or external modules
1. `require` module:``` clj
(def cljs-logo (js/require "./assets/images/cljs.png"))
(def FontAwesome (js/require "@expo/vector-icons/FontAwesome"))
```
2. Reload simulator or device### Make sure you disable live reload from the Developer Menu, also turn off Hot Module Reload.
Since Figwheel already does those.### Production build (generates js/externs.js and main.js)
#### leiningen users
``` shell
lein prod-build
```#### boot users
``` shell
boot prod
```