Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9e162d1
Showing
29 changed files
with
1,774 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "bg-example-81c6b" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/*.log | ||
/target | ||
/*-init.clj | ||
/resources/public/js/compiled | ||
out | ||
.nrepl-port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# bg | ||
|
||
A [re-frame](https://github.com/Day8/re-frame) application designed to ... well, that part is up to you. | ||
|
||
## Development Mode | ||
|
||
### Run application: | ||
|
||
``` | ||
lein clean | ||
lein figwheel dev | ||
``` | ||
|
||
Figwheel will automatically push cljs changes to the browser. | ||
|
||
Wait a bit, then browse to [http://localhost:3449](http://localhost:3449). | ||
|
||
## Production Build | ||
|
||
|
||
To compile clojurescript to javascript: | ||
|
||
``` | ||
lein clean | ||
lein cljsbuild once min | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"rules": { | ||
".read": true, | ||
".write": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"database": { | ||
"rules": "database.rules.json" | ||
}, | ||
"hosting": { | ||
"public": "resources/public", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
(defproject bg "0.1.0-SNAPSHOT" | ||
:dependencies [[org.clojure/clojure "1.9.0"] ;; 1.8.0 | ||
[org.clojure/clojurescript "1.9.946"] ;; 1.9.908 | ||
[reagent "0.8.0-alpha2"] ;; 0.7.0 | ||
[re-frame "0.10.3-alpha2"] | ||
[cljsjs/firebase "4.8.1-0"]] | ||
|
||
:plugins [[lein-cljsbuild "1.1.7"] ;"1.1.5" | ||
] | ||
|
||
:min-lein-version "2.5.3" | ||
|
||
:source-paths ["src/clj" "src/cljs"] | ||
:test-paths ["test/clj" "test/cljs"] | ||
|
||
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"] | ||
|
||
:figwheel {:css-dirs ["resources/public/css"]} | ||
|
||
:profiles | ||
{:dev | ||
{:dependencies [[binaryage/devtools "0.9.4"] | ||
;; [day8.re-frame/trace "0.1.14"] | ||
[re-frisk "0.5.3"]] | ||
|
||
:plugins [[lein-figwheel "0.5.14"] ; 0.5.13 | ||
[lein-doo "0.1.8"]]}} | ||
|
||
:cljsbuild | ||
{:builds | ||
[{:id "dev" | ||
:source-paths ["src/cljs"] | ||
:figwheel {:on-jsload "bg.main/mount-root"} | ||
:compiler {:main bg.main | ||
:output-to "resources/public/js/compiled/app.js" | ||
:output-dir "resources/public/js/compiled/out" | ||
:asset-path "js/compiled/out" | ||
:source-map-timestamp true | ||
:preloads [devtools.preload | ||
;; day8.re-frame.trace.preload | ||
re-frisk.preload] | ||
:closure-defines {"re_frame.trace.trace_enabled_QMARK_" true} | ||
:external-config {:devtools/config {:features-to-install :all}} | ||
}} | ||
|
||
{:id "min" | ||
:source-paths ["src/cljs"] | ||
:compiler {:main bg.main | ||
:output-to "resources/public/js/compiled/app.js" | ||
;; hmm, firebase failing to work with :advanced build, this doens't seem to look inside a jar either, | ||
;; :foreign-libs [{:file "cljsjs/development/firebase.inc.js", | ||
;; :provides ["cljsjs.firebase"]}] | ||
:optimizations :whitespace | ||
:closure-defines {goog.DEBUG false} | ||
:pretty-print false}} | ||
|
||
{:id "test" | ||
:source-paths ["src/cljs" "test/cljs"] | ||
:compiler {:main bg.runner | ||
:output-to "resources/public/js/compiled/test.js" | ||
:output-dir "resources/public/js/compiled/test/out" | ||
:optimizations :none}}]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Page Not Found</title> | ||
|
||
<style media="screen"> | ||
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; } | ||
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; } | ||
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; } | ||
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; } | ||
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;} | ||
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; } | ||
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; } | ||
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } | ||
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; } | ||
@media (max-width: 600px) { | ||
body, #message { margin-top: 0; background: white; box-shadow: none; } | ||
body { border-top: 16px solid #ffa100; } | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="message"> | ||
<h2>404</h2> | ||
<h1>Page Not Found</h1> | ||
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p> | ||
<h3>Why am I seeing this?</h3> | ||
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.