Skip to content

Commit

Permalink
Move all resources to dev-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Oct 18, 2024
1 parent c6ac609 commit aac347a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ target/demo_bundle/nginx.conf:

target/demo_bundle/index.html:
mkdir -p target/demo_bundle
cp resources/public/index_prod.html target/demo_bundle/index.html
cp dev-resources/public/index_prod.html target/demo_bundle/index.html

target/demo_bundle/css:
mkdir -p target/demo_bundle
cp -r resources/public/css target/demo_bundle/css
cp -r dev-resources/public/css target/demo_bundle/css

target/demo_bundle/main.js: target/public/cljs-out/prod-main.js
mkdir -p target/demo_bundle
Expand Down
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{:paths ["src/main" "resources"]
{:paths ["src/main"]
:deps {re-frame/re-frame {:mvn/version "1.2.0"}
metosin/reitit-frontend {:mvn/version "0.7.0"}}
:aliases
{:fig {:extra-paths ["src/dev" "target"]
{:fig {:extra-paths ["src/dev" "dev-resources" "target"]
:extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.15"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}}
:dev {:main-opts ["-m" "figwheel.main" "-b" "dev" "-r"]}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dev.cljs.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
^{:watch-dirs ["src/dev" "src/main"]
:css-dirs ["resources/public/css"]
:css-dirs ["dev-resources/public/css"]
:ring-handler com.yetanalytics.re-route-demo/handler}
{:main com.yetanalytics.re-route-demo}
2 changes: 1 addition & 1 deletion src/dev/com/yetanalytics/re_route_demo.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

(defn handler [request]
(if (= :get (:request-method request))
(file-response "resources/public/")
(file-response "dev-resources/public/")
{:status 405
:headers {"Content-Type" "text/plain"}
:body "Unsupported Operation"}))

0 comments on commit aac347a

Please sign in to comment.