Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pom.xml
*jar
/lib/
/classes/
/out/
/release/
/target/
.lein-deps-sum
.lein-repl-history
.lein-plugins/
12 changes: 12 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax: glob
target/**
classes/**
checkouts/**
pom.xml
pom.xml.asc
*.jar
*.class
/.lein-*
/.nrepl-port
.gitignore
.git/**
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>gitique-examples</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<script src="out/gitique_examples.js" type="text/javascript"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions index_release.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>gitique-examples</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<script src="release/gitique_examples.js" type="text/javascript"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions project.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(defproject gitique-examples "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.48" :classifier "aot"
:exclusion [org.clojure/data.json]]
[org.clojure/data.json "0.2.6" :classifier "aot"]]
:jvm-opts ^:replace ["-Xmx1g" "-server"]
:plugins [[lein-npm "0.6.1"]]
:npm {:dependencies [[source-map-support "0.3.2"]]}
:source-paths ["src" "target/classes"]
:clean-targets ["out" "release"]
:target-path "target")
2 changes: 2 additions & 0 deletions scripts/brepl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/brepl.clj
2 changes: 2 additions & 0 deletions scripts/brepl.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
lein trampoline run -m clojure.main scripts\brepl.clj
13 changes: 13 additions & 0 deletions scripts/brepl.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(require
'[cljs.build.api :as b]
'[cljs.repl :as repl]
'[cljs.repl.browser :as browser])

(b/build "src"
{:main 'gitique-examples.core
:output-to "out/gitique_examples.js"
:output-dir "out"
:verbose true})

(repl/repl (browser/repl-env)
:output-dir "out")
2 changes: 2 additions & 0 deletions scripts/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/build.clj
2 changes: 2 additions & 0 deletions scripts/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
lein trampoline run -m clojure.main scripts\build.clj
13 changes: 13 additions & 0 deletions scripts/build.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(require '[cljs.build.api :as b])

(println "Building ...")

(let [start (System/nanoTime)]
(b/build "src"
{:main 'gitique-examples.core
:output-to "out/gitique_examples.js"
:output-dir "out"
:verbose true})
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))


2 changes: 2 additions & 0 deletions scripts/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/release.clj
2 changes: 2 additions & 0 deletions scripts/release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
lein trampoline run -m clojure.main scripts\release.clj
11 changes: 11 additions & 0 deletions scripts/release.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(require '[cljs.build.api :as b])

(println "Building ...")

(let [start (System/nanoTime)]
(b/build "src"
{:output-to "release/gitique_examples.js"
:output-dir "release"
:optimizations :advanced
:verbose true})
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
2 changes: 2 additions & 0 deletions scripts/repl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/repl.clj
2 changes: 2 additions & 0 deletions scripts/repl.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
lein trampoline run -m clojure.main scripts\repl.clj
5 changes: 5 additions & 0 deletions scripts/repl.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(require
'[cljs.repl :as repl]
'[cljs.repl.node :as node])

(repl/repl (node/repl-env))
2 changes: 2 additions & 0 deletions scripts/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/watch.clj
2 changes: 2 additions & 0 deletions scripts/watch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
lein trampoline run -m clojure.main scripts\watch.clj
6 changes: 6 additions & 0 deletions scripts/watch.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(require '[cljs.build.api :as b])

(b/watch "src"
{:main 'gitique-examples.core
:output-to "out/gitique_examples.js"
:output-dir "out"})
9 changes: 9 additions & 0 deletions src/gitique_examples/core.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(ns gitique-examples.core
(:require [clojure.browser.repl :as repl]))

(defonce conn
(repl/connect "http://localhost:9000/repl"))

(enable-console-print!)

(println "Hello world!")
6 changes: 6 additions & 0 deletions src/leiningen/gitique_examples.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(ns leiningen.gitique-examples)

(defn gitique-examples
"I don't do a lot."
[project & args]
(println "Hi!"))