Skip to content

Commit 7429cce

Browse files
committed
Add ClojureScript example to Node using shadow-cljs
1 parent 5831093 commit 7429cce

File tree

7 files changed

+940
-0
lines changed

7 files changed

+940
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
yarn.lock -diff

minimal-shadow-cljs-nodejs/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build/
2+
node_modules/
3+
target/
4+
/yarn.lock
5+
.shadow-cljs/
6+
.nrepl-port

minimal-shadow-cljs-nodejs/README.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Node.js example with ClojureScript with [shadow-cljs](https://github.com/thheller/shadow-cljs)
2+
----
3+
4+
- [Shadow-cljs](http://shadow-cljs.org/)
5+
- [Integrate with NPM modules](https://shadow-cljs.github.io/docs/UsersGuide.html#npm)
6+
- [ClojureScript cheatsheet](https://cljs.info/cheatsheet/)
7+
8+
### Develop
9+
10+
Watch compile with with hot reloading:
11+
12+
```bash
13+
npm run install
14+
npm run watch
15+
```
16+
17+
Start program and connect reload server:
18+
19+
```bash
20+
npm start
21+
```
22+
23+
### REPL
24+
25+
Start a REPL connected to current running program, `app` for the `:build-id`:
26+
27+
```bash
28+
npx shadow-cljs cljs-repl app
29+
```
30+
31+
### Build
32+
33+
```bash
34+
npm run build
35+
```
36+
37+
Compiles to `build/main.js`.
38+
39+
You may find more configurations on http://doc.shadow-cljs.org/ .
40+
41+
### License
42+
43+
MIT

0 commit comments

Comments
 (0)