0.0.5 • Published 5 years ago

create-firebase-expo-cljs-app v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

☢️ DEPRECATED ☢️

Check out create-expo-cljs-app

Create Firebase Expo CLJS App

Create Firebase Expo ClojureScript apps with a single command. It is focused on making it easy for JS and React developers to get started with ClojureScript.

Create Firebase Expo CLJS App works on Windows, Linux, and macOS. If something doesn’t work, please file an issue.

Inspired by create-cljs-app and reagent-expo.

Quick Overview

npx create-firebase-expo-cljs-app my-app
cd my-app
npm start

Then start the Shadow compiler.

shadow-cljs watch app

In another terminal start the JavaScript bundler.

yarn start

When you’re ready to deploy to production, compile cljs for production release.

shadow-clj release app

And then follow expo instructions to make a build or OTA update.

Creating an App

You'll need to have expo client and cli tools installed. Find those here.

You’ll need to have Node 10.16.0 or later version on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to easily switch Node versions between different projects.

You'll also need a Java SDK (Version 8+, Hotspot).

To create a new app, you may choose one of the following methods:

npx

npx create-firebase-expo-cljs-app my-app

(npx comes with npm 5.2+ and higher)

npm

npm init expo-cljs-app my-app

npm init <initializer> is available in npm 6+

Yarn

yarn create expo-cljs-app my-app

yarn create is available in Yarn 0.25+

It will create a directory called my-app inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies:

my-app
├── app.json
├── assets
│   ├── icon.png
│   ├── shadow-cljs.png
│   └── splash.png
├── babel.config.js
├── externs
│   └── app.txt
├── package.json
├── README.md
├── shadow-cljs.edn
├── src
│   ├── app
│   │   ├── db.cljs
│   │   ├── handlers.cljs
│   │   ├── handlers_test.cljs
│   │   ├── helpers.cljs
│   │   ├── index.cljs
│   │   ├── subscriptions.cljs
│   │   └── subscriptions_test.cljs
│   └── reagent
│       └── dom.cljs
└── yarn.lock

License

Create Firebase Expo CLJS App is open source software licensed as MIT.

0.0.5

5 years ago

0.0.3

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago