Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryanmikaelian/netlify-cljs-shadowcljs
Deploy a ClojureScript app using shadow-cljs on Netlify
https://github.com/bryanmikaelian/netlify-cljs-shadowcljs
clojurescript jamstack netlify netlify-functions postcss-plugin react reagent serverless shadow-cljs tailwindcss template
Last synced: about 5 hours ago
JSON representation
Deploy a ClojureScript app using shadow-cljs on Netlify
- Host: GitHub
- URL: https://github.com/bryanmikaelian/netlify-cljs-shadowcljs
- Owner: bryanmikaelian
- License: mit
- Created: 2022-03-10T15:23:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-28T14:44:11.000Z (about 1 year ago)
- Last Synced: 2023-10-28T15:34:53.360Z (about 1 year ago)
- Topics: clojurescript, jamstack, netlify, netlify-functions, postcss-plugin, react, reagent, serverless, shadow-cljs, tailwindcss, template
- Language: Clojure
- Homepage:
- Size: 960 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netlify-cljs-shadowcljs
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/bryanmikaelian/netlify-cljs)
This a template that lets you deploy a ClojureScript project on Netlify. It is currently using the following:
- [ClojureScript 1.14.x](https://clojurescript.org/)
- [thheller/shadow-cljs](https://github.com/thheller/shadow-cljs)
- [TailwindCSS](https://tailwindcss.com/)
- [PostCSS](https://postcss.org/)
- [Reagent](https://reagent-project.github.io/)The template automatically sets up the following features that Netlify Offers:
- A basic Front End deployed as a Netlify Site
- A Netlify Function (see [docs](https://docs.netlify.com/functions/overview/) to learn more)You can remove some of these features based on your use case.
A demo of this repo is also available at https://cljs-demo.netlify.app
## Interested in using `figwheel-main`?
Checkout https://github.com/bryanmikaelian/netlify-cljs-figwheel
# Commands
When developing locally, these commands can help you out:
### Server
Use the netlify-cli to spin up a dev environment. You can visit your site
at http://localhost:8888. Useful when you want to debug Netlify Functions.``` shell
yarn server
```### Watch
Watch and recompile your site as you make changes. You can visit your site at http://localhost:8700. If you use this in tandem with `yarn server`, you can use port 8888 for everything.
``` shell
yarn watch
```### Clean
Removes artifacts that are generated by shadow-cljs and tailwind
``` shell
yarn clean
```### Build
Builds the site for release. Netlify will use the same command when deploying
``` shell
yarn release
```### Server
Runs a shadow-cljs server that hosts your app. Does not watch for changes. You can visit your site at http://localhost:8700.
``` shell
yarn release
```### REPL
Spins up a shadow-cljs browser REPL
``` shell
yarn repl
```