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
- Host: GitHub
- URL: https://github.com/theronic/npm-module-example
- Owner: theronic
- Created: 2018-02-03T14:29:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-03T14:30:08.000Z (almost 8 years ago)
- Last Synced: 2025-03-29T19:42:04.302Z (10 months ago)
- Language: JavaScript
- Homepage: https://github.com/thheller/shadow-cljs
- Size: 30.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```