├── test └── cljsx │ ├── components.js │ ├── core_test.clj │ ├── fn_macros_test.cljs │ ├── react_test.cljs │ └── spec_test.clj ├── .travis.yml ├── dev.cljs.edn ├── .gitignore ├── resources └── public │ ├── index.html │ ├── example-figwheel.html │ └── example-shadow-cljs.html ├── shadow-cljs.edn ├── package.json ├── examples ├── figwheel_example │ └── main.cljs └── shadow_cljs_example │ └── main.cljs ├── src └── cljsx │ ├── core.cljs │ ├── specs.clj │ └── core.clj ├── project.clj └── README.md /test/cljsx/components.js: -------------------------------------------------------------------------------- 1 | export const JSComponent = props => 2 | props.__hash === undefined 3 | ? "js" 4 | : "clj" 5 | 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | matrix: 2 | include: 3 | - language: clojure 4 | script: lein travis 5 | - language: node_js 6 | node_js: "lts/*" 7 | script: npm run travis 8 | -------------------------------------------------------------------------------- /dev.cljs.edn: -------------------------------------------------------------------------------- 1 | ^{:open-url "http://localhost:[[server-port]]/example-figwheel.html"} 2 | {:main figwheel-example.main 3 | :output-dir "target/public/figwheel-out/dev" 4 | :output-to "target/public/figwheel-out/main.js"} 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .nrepl-port 2 | pom.xml 3 | pom.xml.asc 4 | *.jar 5 | *.class 6 | /lib/ 7 | /classes/ 8 | /target/ 9 | /checkouts/ 10 | .lein-deps-sum 11 | .lein-repl-history 12 | .lein-plugins/ 13 | .lein-failures 14 | .nrepl-port 15 | .cpcache/ 16 | .shadow-cljs/ 17 | node_modules/ 18 | public/example* 19 | .\#* 20 | .rebel_readline_history 21 | .eastwood 22 | -------------------------------------------------------------------------------- /resources/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | Shadow CLJS Example 9 | Figwheel Example 10 | 11 | 12 | -------------------------------------------------------------------------------- /resources/public/example-figwheel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |