All Projects → jacekschae → shadow-cljs-tailwindcss

jacekschae / shadow-cljs-tailwindcss

Licence: MIT license
shadow-cljs + tailwindcss

Programming Languages

clojure
4091 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to shadow-cljs-tailwindcss

ui-gorilla
Reagent UI renderer for data visualization.
Stars: ✭ 14 (-89.71%)
Mutual labels:  shadow-cljs
codesunaba
A simple ClojureScript code sandbox in your browser.
Stars: ✭ 18 (-86.76%)
Mutual labels:  shadow-cljs
shadow-reagent
Starting point for ClojureScript apps with shadow-cljs, proto-repl, and reagent.
Stars: ✭ 35 (-74.26%)
Mutual labels:  shadow-cljs
reframe-starter
re-frame starter app. Includes shadow-cljs, deps.edn, garden, re-frame-10x and reitit.
Stars: ✭ 16 (-88.24%)
Mutual labels:  shadow-cljs
ClojureRNProject
Simple React Native application with ClojureScript, re-frame and react navigation v5
Stars: ✭ 32 (-76.47%)
Mutual labels:  shadow-cljs
minimal-shadow-cljs-browser
Demo shadow-cljs for browser apps
Stars: ✭ 37 (-72.79%)
Mutual labels:  shadow-cljs
shadow-firebase
shadow-cljs and firebase using google auth and persisting state to realtime database
Stars: ✭ 26 (-80.88%)
Mutual labels:  shadow-cljs
sitefox
Node + cljs backend web framework
Stars: ✭ 180 (+32.35%)
Mutual labels:  shadow-cljs
learn-re-frame-course-files
🎦 Learn re-frame course files for building Cheffy app
Stars: ✭ 51 (-62.5%)
Mutual labels:  shadow-cljs
reagent-shadow-cljs-starter
A minimal starter pack for Reagent-based projects
Stars: ✭ 29 (-78.68%)
Mutual labels:  shadow-cljs
rn-shadow-steroid
React Native with shadow-cljs on steroids
Stars: ✭ 57 (-58.09%)
Mutual labels:  shadow-cljs

shadow-cljs + tailwindcss

This is an example of how to setup shadow-cljs and tailwindcss

Setup

git clone https://github.com/jacekschae/shadow-cljs-tailwindcss.git app
cd app
npm install
npm run dev

This runs the shadow-cljs server, builds tailwind-css and runs postcss. It will observe cljs-runtime/*.js files in dev and will use main.js for creating a release build.

The first startup takes a bit of time since it has to download all the dependencies and do some prep work. Once this is running you can open browser http://localhost:8020 and get started.

Config

shadow-cljs is configured by the shadow-cljs.edn file and the UI is available at http://localhost:9630.

tailwindcss is configured by the tailwind.config.js file.

postcss is configured in postcss.config.js file.

Also check npm scripts configured in package.json, to understand how everything is stitched together for dev and release commands.

REPL

During development you can start a REPL.

From the command line use npx shadow-cljs cljs-repl app.

shadow-cljs - config .../shadow-cljs.edn
shadow-cljs - connected to server
cljs.user=>

This can now be used to eval code in the browser (assuming you still have it open). Try (js/alert "Hi.") and take it from there. You might want to use rlwrap npx shadow-cljs cljs-repl app if you intend to type a lot here.

You can exit the REPL by either CTRL+C or typing :repl/quit.

PS. Most probably you want to connect to the REPL from your editor, and not type in the terminal.

Release

To create a release artifact run npm run release which will create a js and css assests.

npm run release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].