Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New clojurescript app stuff, bump to 0.5.0
* New syntax for clojurescript apps * Update lein-template nsfw version * Update lien-template to use new cs :entry config opt
- Loading branch information
Showing
16 changed files
with
226 additions
and
35 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
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
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,12 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
REPO=$SCRIPT_DIR/.. | ||
|
||
cd $SCRIPT_DIR/.. && lein install | ||
|
||
|
||
REPO=$SCRIPT_DIR/../lein-template | ||
|
||
cd $REPO && lein install |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
web: lein run -m {{name}}.run | ||
cljs: lein cljsbuild auto | ||
sass: sass --watch src/sass:resources/public/css | ||
cljs: lein cljsbuild auto dev | ||
sass: sass --watch src/scss:resources/public/css | ||
refresher: lein run -m nsfw.refresher |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
|
||
lein cljsbuild once | ||
lein with-profile production compile :all | ||
lein cljsbuild once prod | ||
lein with-profile production compile :all |
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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
(ns {{name}}.entry | ||
(:require [nsfw.webapp :as webapp])) | ||
(:require [nsfw.app :as app])) | ||
|
||
(def routes | ||
(webapp/routes | ||
[""] (webapp/cs :app | ||
:css [:bootstrap.min | ||
:bootstrap-responsive.min | ||
:app]))) | ||
(defonce session (app/session-store :encrypted-cookie)) | ||
|
||
(def app | ||
(app/clojurescript | ||
:entry '{{name}}.app/entry | ||
:session-store session | ||
:css [:nsfw :app] | ||
:data (fn [r] | ||
;; Key / val pairs are embedded into the page as js vars | ||
{:unique-value (str (gensym))}) | ||
:api (app/route | ||
;; Routes mounted at /api | ||
["name"] (fn [r] {:body (pr-str (rand))})))) |
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 @@ | ||
./../../../../../src/scss/nsfw.scss |
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
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
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
Submodule site
updated
from d67b17 to 1c7390
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
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
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