| @@ -39,14 +39,14 @@ | |||||
| :output-to "target/public/cljs-out/login-main.js" | :output-to "target/public/cljs-out/login-main.js" | ||||
| :output-dir "target/public/cljs-out/login" | :output-dir "target/public/cljs-out/login" | ||||
| :source-map-timestamp true}} | :source-map-timestamp true}} | ||||
| :signup {:source-paths ["src/cljs"] | |||||
| :figwheel true | |||||
| :compiler | |||||
| {:main auth-cljs-example.signup | |||||
| :asset-path "cljs-out/login" | |||||
| :output-to "target/public/cljs-out/login-main.js" | |||||
| :output-dir "target/public/cljs-out/login" | |||||
| :source-map-timestamp true}}}} | |||||
| :signup {:source-paths ["src/cljs"] | |||||
| :figwheel true | |||||
| :compiler | |||||
| {:main auth-cljs-example.signup | |||||
| :asset-path "cljs-out/login" | |||||
| :output-to "target/public/cljs-out/login-main.js" | |||||
| :output-dir "target/public/cljs-out/login" | |||||
| :source-map-timestamp true}}}} | |||||
| :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]} | :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]} | ||||
| ;; need to add the compliled assets to the :clean-targets | ;; need to add the compliled assets to the :clean-targets | ||||
| @@ -3,8 +3,8 @@ | |||||
| [compojure.route :refer [not-found resources]] | [compojure.route :refer [not-found resources]] | ||||
| [hiccup.core :refer :all] | [hiccup.core :refer :all] | ||||
| [hiccup.page :refer :all] | [hiccup.page :refer :all] | ||||
| [ring.adapter.jetty :as jetty] | |||||
| [ring.util.response :as resp] | |||||
| [ring.adapter.jetty :as jetty] | |||||
| [ring.util.response :as resp] | |||||
| [ring.middleware.reload :refer [wrap-reload]])) | [ring.middleware.reload :refer [wrap-reload]])) | ||||
| (defn foo [request] | (defn foo [request] | ||||
| @@ -13,7 +13,7 @@ | |||||
| (defroutes app | (defroutes app | ||||
| (GET "/" [] foo) | (GET "/" [] foo) | ||||
| (GET "/login" [] (resp/resource-response "login.html" {:root "public"})) | (GET "/login" [] (resp/resource-response "login.html" {:root "public"})) | ||||
| ;;(GET "/signup" [] (resp/resource-response "signup.html" {:root "public"})) | |||||
| (GET "/signup" [] (resp/resource-response "signup.html" {:root "public"})) | |||||
| (resources "/") | (resources "/") | ||||
| (not-found "<h1>Page not found</h1>")) | (not-found "<h1>Page not found</h1>")) | ||||
| @@ -1,3 +0,0 @@ | |||||
| (ns auth-cljs-example.core) | |||||
| (.log js/console "this is core.cljs file") | |||||
| @@ -1,6 +1,6 @@ | |||||
| (ns auth-cljs-example.login | (ns auth-cljs-example.login | ||||
| (:require [reagent.core :as r] | (:require [reagent.core :as r] | ||||
| [ajax.core :refer [GET POST]])) | |||||
| [ajax.core :refer [GET POST]])) | |||||
| (defn atom-username [value] | (defn atom-username [value] | ||||
| [:input {:type "text" | [:input {:type "text" | ||||
| @@ -1,6 +1,6 @@ | |||||
| (ns auth-cljs-example.signup | (ns auth-cljs-example.signup | ||||
| (:require [reagent.core :as r] | (:require [reagent.core :as r] | ||||
| [ajax.core :refer [GET POST]])) | |||||
| [ajax.core :refer [GET POST]])) | |||||
| (defn atom-username [value] | (defn atom-username [value] | ||||
| [:input {:type "text" | [:input {:type "text" | ||||