Browse Source

lein-cljsbuild added

master
Christian Mueller 14 years ago
parent
commit
8643a6311e
  1. 3
      .gitignore
  2. 11
      project.clj
  3. 57
      resources/public/css/reset.css
  4. 3
      src-cljs/main.cljs
  5. 3
      src/NoteHub/views/common.clj

3
.gitignore vendored

@ -2,4 +2,5 @@ pom.xml
*jar *jar
/lib/ /lib/
/classes/ /classes/
.lein-deps-sum .lein-*
resources/public/js/*

11
project.clj

@ -4,5 +4,16 @@
[hiccup "1.0.0"] [hiccup "1.0.0"]
[cssgen "0.2.6"] [cssgen "0.2.6"]
[noir "1.3.0-beta1"]] [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) :main NoteHub.server)

57
resources/public/css/reset.css

@ -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; }*/

3
src-cljs/main.cljs

@ -0,0 +1,3 @@
(ns NoteHub.main)
(.log js/console "works !")

3
src/NoteHub/views/common.clj

@ -1,6 +1,6 @@
(ns NoteHub.views.common (ns NoteHub.views.common
(:use [noir.core :only [defpartial]] (:use [noir.core :only [defpartial]]
[hiccup.page :only [include-css html5]])) [hiccup.page :only [include-js html5]]))
(use 'cssgen) (use 'cssgen)
(defn gen-comma-list [fonts] (apply str (interpose "," fonts))) (defn gen-comma-list [fonts] (apply str (interpose "," fonts)))
@ -57,6 +57,7 @@
(html5 (html5
[:head [:head
[:title "NoteHub"] [:title "NoteHub"]
(include-js "/js/main.js")
[:link {:href "http://fonts.googleapis.com/css?family=Noticia+Text:400,700" [:link {:href "http://fonts.googleapis.com/css?family=Noticia+Text:400,700"
:rel "stylesheet" :rel "stylesheet"
:type "text/css"}] :type "text/css"}]

Loading…
Cancel
Save