lein-cljsbuild added
This commit is contained in:
+2
-1
@@ -2,4 +2,5 @@ pom.xml
|
||||
*jar
|
||||
/lib/
|
||||
/classes/
|
||||
.lein-deps-sum
|
||||
.lein-*
|
||||
resources/public/js/*
|
||||
|
||||
+11
@@ -4,5 +4,16 @@
|
||||
[hiccup "1.0.0"]
|
||||
[cssgen "0.2.6"]
|
||||
[noir "1.3.0-beta1"]]
|
||||
:plugins [[lein-cljsbuild "0.1.10"]]
|
||||
:cljsbuild {
|
||||
:builds [{
|
||||
; The path to the top-level ClojureScript source directory:
|
||||
:source-path "src-cljs"
|
||||
; The standard ClojureScript compiler options:
|
||||
; (See the ClojureScript compiler documentation for details.)
|
||||
:compiler {
|
||||
:output-to "resources/public/js/main.js" ; default: main.js in current directory
|
||||
:optimizations :whitespace
|
||||
:pretty-print true}}]}
|
||||
:main NoteHub.server)
|
||||
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
html {
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:0;
|
||||
}
|
||||
|
||||
body, div, span, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, code,
|
||||
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, dialog, figure, footer, header,
|
||||
hgroup, nav, section {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-weight: inherit;
|
||||
font-style: inherit;
|
||||
font-size: 100%;
|
||||
font-family: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
article, aside, dialog, figure, footer, header,
|
||||
hgroup, nav, section {
|
||||
display:block;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1.5;
|
||||
background: white;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
caption, th, td {
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
float:none !important;
|
||||
}
|
||||
table, th, td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
blockquote:before, blockquote:after, q:before, q:after { content: ''; }
|
||||
blockquote, q { quotes: "" ""; }
|
||||
|
||||
a img { border: none; }
|
||||
|
||||
/*:focus { outline: 0; }*/
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
(ns NoteHub.main)
|
||||
|
||||
(.log js/console "works !")
|
||||
@@ -1,6 +1,6 @@
|
||||
(ns NoteHub.views.common
|
||||
(:use [noir.core :only [defpartial]]
|
||||
[hiccup.page :only [include-css html5]]))
|
||||
[hiccup.page :only [include-js html5]]))
|
||||
(use 'cssgen)
|
||||
|
||||
(defn gen-comma-list [fonts] (apply str (interpose "," fonts)))
|
||||
@@ -57,6 +57,7 @@
|
||||
(html5
|
||||
[:head
|
||||
[:title "NoteHub"]
|
||||
(include-js "/js/main.js")
|
||||
[:link {:href "http://fonts.googleapis.com/css?family=Noticia+Text:400,700"
|
||||
:rel "stylesheet"
|
||||
:type "text/css"}]
|
||||
|
||||
Reference in New Issue
Block a user