Skip to content
Proof of concept: next + shadow-cljs [unmaintained]
Clojure
Branch: master
Clone or download
Latest commit 03cbc22 Sep 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
site next.js with shadow-cljs Sep 27, 2018
src/main next.js with shadow-cljs Sep 27, 2018
.gitignore next.js with shadow-cljs Sep 27, 2018
README.md next.js with shadow-cljs Sep 27, 2018
package-lock.json
package.json next.js with shadow-cljs Sep 27, 2018
shadow-cljs.edn next.js with shadow-cljs Sep 27, 2018

README.md

Minimal example showing how shadow-cljs could be used together with next.js to create static sites in CLJS.

site is a directory used by next, all .js files will be generated by shadow-cljs. I nested the site directory in the shadow-cljs project but you can also nest the shadow-cljs directory in the next root instead. I do not recommend mixing though.

Run shadow-cljs

npm install
npx shadow-cljs watch site
# or
npx shadow-cljs release site

Run next separately

cd site
npm install
npx next
# or
npx next build && npx next start

When done open in browser

open http://localhost:3000
You can’t perform that action at this time.