Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Use cljsjs
Browse files Browse the repository at this point in the history
  • Loading branch information
oakes committed Sep 30, 2016
1 parent 11a3a61 commit be977e6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitattributes
@@ -1,2 +1 @@
resources/* linguist-vendored
src/cljs/js/* linguist-vendored
9 changes: 5 additions & 4 deletions build.boot
@@ -1,6 +1,6 @@
(set-env!
:source-paths #{"src/clj" "src/cljs"}
:resource-paths #{"resources"}
:resource-paths #{"src/clj" "resources"}
:dependencies '[[adzerk/boot-cljs "1.7.228-1" :scope "test"]
[adzerk/boot-reload "0.4.12" :scope "test"]
[org.clojure/test.check "0.9.0" :scope "test"]
Expand All @@ -9,7 +9,8 @@
[ring "1.4.0"]
[eval-soup "1.0.0"]
[paren-soup "2.6.0"]
[cljsjs/bootstrap "3.3.6-1"]]
[cljsjs/bootstrap "3.3.6-1"]
[cljsjs/bootstrap-treeview "1.2.0-1"]]
:repositories (conj (get-env :repositories)
["clojars" {:url "https://clojars.org/repo/"
:username (System/getenv "CLOJARS_USER")
Expand All @@ -28,10 +29,10 @@
push {:repo "clojars"})

(deftask local []
(comp (cljs :optimizations :simple) (pom) (jar) (install)))
(comp (cljs :optimizations :advanced) (pom) (jar) (install)))

(deftask deploy []
(comp (cljs :optimizations :simple) (pom) (jar) (push)))
(comp (cljs :optimizations :advanced) (pom) (jar) (push)))

(deftask run []
(comp
Expand Down
3 changes: 0 additions & 3 deletions src/cljs/deps.cljs

This file was deleted.

1 change: 0 additions & 1 deletion src/cljs/js/bootstrap-treeview.min.js

This file was deleted.

7 changes: 3 additions & 4 deletions src/cljs/nightlight/core.cljs
Expand Up @@ -3,8 +3,7 @@
[cljsjs.bootstrap]
[cljsjs.bootstrap-treeview]))

(def model [{:text "Parent 1"
:nodes [{:text "Child 1"}]}])

(.treeview (js/$ "#tree") (clj->js {:data model}))
(.treeview (js/$ "#tree")
(clj->js {:data [{:text "Parent 1"
:nodes [{:text "Child 1"}]}]}))

0 comments on commit be977e6

Please sign in to comment.