An open API service indexing awesome lists of open source software.

https://github.com/theronic/npm-module-example

[OUTDATED] See https://github.com/thheller/shadow-cljs-examples
https://github.com/theronic/npm-module-example

Last synced: 5 months ago
JSON representation

[OUTDATED] See https://github.com/thheller/shadow-cljs-examples

Awesome Lists containing this project

README

          

# OUT OF DATE!

All examples are from an early prototype and may have changed somewhat.

Please refer to: https://github.com/thheller/shadow-cljs-examples

# npm-module-example

CLJS for JS devs

### Instructions

```
git clone https://github.com/thheller/npm-module-example.git
cd npm-module-example

yarn (or npm install)
./node_modules/shadow-cljs/bin/shadow-cljs --once

# or install shadow-cljs globally as well
yarn global add shadow-cljs
npm install -g shadow-cljs

# then you can just use
shadow-cljs --once
```

You need either `java` installed or `yarn global add node-jre`.

After that has finished compiling you may either run
```
node index.js
```

Or
```
webpack -d
```

Or
```
browserify -d index.js -o dist/bundle.js
```

And then `open dist/index.html`.

# Production mode

```
shadow-cljs --release
webpack -p
```