Scaffold a Krell (ClojureScript + React Native) project using Babashka.
- Node.js
- Clojure CLI
- Babashka (installed automatically if missing)
- CocoaPods (optional, for iOS)
Replace AwesomeProject with your project name (CamelCase):
curl -s https://raw.githubusercontent.com/ampersanda/krell-template-runner/master/krell.sh | bash -s AwesomeProject-p, --package PACKAGE_NAME Organization package name (e.g. com.example.krell)
-v, --version VERSION React Native version (e.g. 0.72.0)
-h, --help Show help
Example with options:
curl -s https://raw.githubusercontent.com/ampersanda/krell-template-runner/master/krell.sh | bash -s AwesomeProject --package com.example.krell- Creates a React Native project via
@react-native-community/cli - Installs Node dependencies
- Adds Krell and Reagent ClojureScript dependencies (
deps.edn,build.edn) - Installs Clojure dependencies
- Runs
pod installfor iOS (if CocoaPods is available) - Generates a starter ClojureScript namespace with a Reagent component
cd AwesomeProject
clj -m krell.main -co build.edn -c -rIn separate terminal tabs:
npx react-native start# iOS
npx react-native run-ios
# Android
npx react-native run-androidProduction build:
clj -m krell.main -v -co build.edn -O advanced -c