https://github.com/ericclemmons/fuck-javascript
Trying out https://clojurescript.org/guides/javascript-modules
https://github.com/ericclemmons/fuck-javascript
clojurescript javascript mitch salt
Last synced: 18 days ago
JSON representation
Trying out https://clojurescript.org/guides/javascript-modules
- Host: GitHub
- URL: https://github.com/ericclemmons/fuck-javascript
- Owner: ericclemmons
- Created: 2017-02-10T02:56:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T03:50:47.000Z (about 8 years ago)
- Last Synced: 2025-04-06T07:15:41.748Z (19 days ago)
- Topics: clojurescript, javascript, mitch, salt
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fuck-javascript
> Trying out https://clojurescript.org/guides/javascript-modules
Check out the comments in the code to see where my ignorance of ClojureScript is.
## Dependencies
I think I installed all of these with `brew`:
- `lein`
- `rlwrap`## Watching
```shell
lein trampoline run -m clojure.main watch.clj
```### Running
```
node build/bundle
```### REPL
```shell
rlwrap lein trampoline run -m clojure.main repl.clj
```I noticed that I get an error when doing:
```cljs
(require '[fuck-javascript.hello :as hello] :reload)
; SyntaxError: Identifier 'sayHello$$module$src$fuck_javascript$hello' has already been declared
; at /Users/Eric/Projects/ericclemmons/fuck-javascript/.cljs_node_repl/src/fuck-javascript/hello.js:1:1
```So no idea if I'm supposed to be doing something when the instructions say:
> Reload your JavaScript module and try the new functionality:
---
Skipped the entire part about downloading:
```shell
curl -O https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.1/babel.min.js
```Because, there are already existing Babel needs I'm aware of (e.g. decorators)
that make this not applicable.---
### ReactDOM.server
```shell
lein trampoline run -m clojure.main build.clj
node build/hello_cjs.js
```Failed with:
```
Invariant Violation: EventPluginRegistry: Cannot inject event plugins that do not exist in the
plugin ordering, `ti`.
```No warnings.
---
All done. :shrug: