Clean up deps
This commit is contained in:
parent
d193e1e69d
commit
680ca9ab8a
8 changed files with 4520 additions and 12517 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
/target
|
/target
|
||||||
/public/js/out
|
/public/js/out
|
||||||
|
/public/js/grub.js
|
||||||
|
/public/js/grub.min.js
|
||||||
/lib
|
/lib
|
||||||
/classes
|
/classes
|
||||||
/checkouts
|
/checkouts
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
git branch -D deploy
|
git branch -D deploy
|
||||||
git checkout -b deploy
|
git checkout -b deploy
|
||||||
lein cljsbuild once prod
|
lein cljsbuild once prod
|
||||||
git add --force public/js/grub.js
|
git add --force public/js/grub.min.js
|
||||||
git commit -m "Add client code for Heroku deployment"
|
git commit -m "Add client code for Heroku deployment"
|
||||||
git push --force heroku deploy:master
|
git push --force heroku deploy:master
|
||||||
git checkout master
|
git checkout master
|
||||||
|
|
|
@ -24,12 +24,15 @@
|
||||||
[lein-ring "0.8.6"]]
|
[lein-ring "0.8.6"]]
|
||||||
:cljsbuild {:builds {:dev {:source-paths ["src/cljs"]
|
:cljsbuild {:builds {:dev {:source-paths ["src/cljs"]
|
||||||
:compiler {:output-dir "public/js/out"
|
:compiler {:output-dir "public/js/out"
|
||||||
:output-to "public/js/grub_dev.js"
|
:output-to "public/js/grub.js"
|
||||||
:optimizations :none
|
:optimizations :none
|
||||||
:source-map true}}
|
:source-map true}}
|
||||||
:prod {:source-paths ["src/cljs"]
|
:prod {:source-paths ["src/cljs"]
|
||||||
:compiler {:output-to "public/js/grub.js"
|
:compiler {:output-to "public/js/grub.min.js"
|
||||||
:optimizations :advanced}}}}
|
:optimizations :advanced
|
||||||
|
:pretty-print false
|
||||||
|
:preamble ["react/react.min.js"]
|
||||||
|
:externs ["react/externs/react.js"]}}}}
|
||||||
:source-paths ["src/clj" "src/test"]
|
:source-paths ["src/clj" "src/test"]
|
||||||
:test-paths ["spec/clj"]
|
:test-paths ["spec/clj"]
|
||||||
:ring {:handler grub.core/app}
|
:ring {:handler grub.core/app}
|
||||||
|
|
3
public/.gitignore
vendored
3
public/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
||||||
js/grub.js
|
|
||||||
js/grub_dev.js
|
|
||||||
js/grub_dev.js.map
|
|
9789
public/js/jquery.js
vendored
9789
public/js/jquery.js
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
21
public/js/react-0.9.0.min.js
vendored
21
public/js/react-0.9.0.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -14,33 +14,29 @@
|
||||||
[page :refer [include-js include-css]]]
|
[page :refer [include-js include-css]]]
|
||||||
[clojure.tools.cli :refer [parse-opts]]))
|
[clojure.tools.cli :refer [parse-opts]]))
|
||||||
|
|
||||||
(def index-page-header
|
|
||||||
[:head
|
|
||||||
[:title "Grub"]
|
|
||||||
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
|
|
||||||
(include-css "/css/bootstrap.css")
|
|
||||||
(include-css "/css/styles.css")])
|
|
||||||
|
|
||||||
(def prod-index-page
|
(def prod-index-page
|
||||||
(html5
|
(html5
|
||||||
index-page-header
|
[:head
|
||||||
|
[:title "Grub"]
|
||||||
|
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
|
||||||
|
(include-css "/css/bootstrap.min.css")
|
||||||
|
(include-css "/css/styles.css")]
|
||||||
[:body
|
[:body
|
||||||
[:div#container]
|
[:div#container]
|
||||||
(include-js "/js/react-0.9.0.min.js")
|
(include-js "/js/grub.min.js")]))
|
||||||
(include-js "/js/jquery.js")
|
|
||||||
(include-js "/js/bootstrap.js")
|
|
||||||
(include-js "/js/grub.js")]))
|
|
||||||
|
|
||||||
(def dev-index-page
|
(def dev-index-page
|
||||||
(html5
|
(html5
|
||||||
index-page-header
|
[:head
|
||||||
|
[:title "Grub"]
|
||||||
|
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
|
||||||
|
(include-css "/css/bootstrap.css")
|
||||||
|
(include-css "/css/styles.css")]
|
||||||
[:body
|
[:body
|
||||||
[:div#container]
|
[:div#container]
|
||||||
(include-js "/js/react-0.9.0.js")
|
(include-js "/js/react-0.11.1.js")
|
||||||
(include-js "/js/out/goog/base.js")
|
(include-js "/js/out/goog/base.js")
|
||||||
(include-js "/js/jquery.js")
|
(include-js "/js/grub.js")
|
||||||
(include-js "/js/bootstrap.js")
|
|
||||||
(include-js "/js/grub_dev.js")
|
|
||||||
[:script {:type "text/javascript"} "goog.require(\"grub.core\")"]]))
|
[:script {:type "text/javascript"} "goog.require(\"grub.core\")"]]))
|
||||||
|
|
||||||
(def index-page (atom dev-index-page))
|
(def index-page (atom dev-index-page))
|
||||||
|
|
Loading…
Reference in a new issue