Commit 5c08ab13 authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

Namespace rename, got tired of seeing `booklet`

parent 2f054143
#!/usr/local/bin/planck
(ns booklet.generate-icons
(ns relevance.generate-icons
(:require [planck.core :refer [exit *command-line-args*]]
[planck.shell :refer [sh]]))
(defn ensure-succeeded! [x]
(print (:out x))
(when-not (zero? (:exit x))
(println "Non-zero exit code!")
(print (:err x))
(exit (:exit x))))
(print (:out x))
(when-not (zero? (:exit x))
(println "Non-zero exit code!")
(print (:err x))
(exit (:exit x))))
(defn do! [& args]
(ensure-succeeded! (apply sh args)))
(ensure-succeeded! (apply sh args)))
(def path "resources/images/")
(def sizes [16 19 38 48 128])
......@@ -24,17 +24,17 @@
; (do! "git" "flow" "release" "start" timestamp)
(defn do-resize! [filename]
(doseq [size sizes]
(let [origin (str path filename)
target (str path "icon" size ".png")]
(println "Converting" origin "to" target)
(do! "convert" origin "-resize" (str size "x" size) target)
)))
(doseq [size sizes]
(let [origin (str path filename)
target (str path "icon" size ".png")]
(println "Converting" origin "to" target)
(do! "convert" origin "-resize" (str size "x" size) target)
)))
(let [filename (first *command-line-args*)]
(if (empty? filename)
(println "Need a file name for the image to proceed. Aborting.")
(do-resize! filename)))
(if (empty? filename)
(println "Need a file name for the image to proceed. Aborting.")
(do-resize! filename)))
(println "Done")
\ No newline at end of file
(defproject booklet-chrome "0.3.0-SNAPSHOT"
(defproject relevance-chrome "0.3.0-SNAPSHOT"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
......@@ -20,21 +20,21 @@
{:source-paths ["src/background" "src/common"]
:compiler {:output-to "target/unpacked/background.js"
:output-dir "target/js/background"
:main "booklet.background"
:main "relevance.background"
:optimizations :whitespace
:pretty-print true}}
:content
{:source-paths ["src/content" "src/common"]
:compiler {:output-to "target/unpacked/content.js"
:output-dir "target/js/content"
:main "booklet.startpage"
:main "relevance.startpage"
:optimizations :whitespace
:pretty-print true}}
:ui
{:source-paths ["src/ui" "src/common"]
:compiler {:output-to "target/unpacked/ui.js"
:output-dir "target/js/ui"
:main "booklet.display"
:main "relevance.display"
:optimizations :whitespace
:pretty-print true}}}
......
(ns booklet.background
(ns relevance.background
(:require [cljs.core.async :refer [>! <!]]
[booklet.data :as data]
[booklet.utils :refer [on-channel key-from-url]]
[relevance.data :as data]
[relevance.utils :refer [on-channel key-from-url]]
[khroma.alarms :as alarms]
[khroma.context-menus :as menus]
[khroma.idle :as idle]
......
(ns booklet.data
(:require [booklet.utils :refer [to-transit from-transit]]
(ns relevance.data
(:require [relevance.utils :refer [to-transit from-transit]]
[cljs.core.async :refer [<!]]
[khroma.storage :as storage])
(:require-macros [cljs.core.async.macros :refer [go]]))
......
(ns booklet.reagent-utils
(ns relevance.reagent-utils
(:require [reagent.core :as reagent]))
(def initial-focus-wrapper
......
(ns booklet.shared-handlers
(ns relevance.shared-handlers
(:require [khroma.log :as console]
[re-frame.core :refer [register-handler]]))
......
(ns booklet.utils
(ns relevance.utils
(:require [cljs.core.async :refer [<!]]
[cognitect.transit :as transit])
(:require-macros [cljs.core.async.macros :refer [go go-loop]]))
......
(ns booklet.startpage
(:require [booklet.data :as data]
[booklet.utils :refer [key-from-url time-display]]
(ns relevance.startpage
(:require [relevance.data :as data]
[relevance.utils :refer [key-from-url time-display]]
[dommy.core :refer-macros [sel sel1] :as dommy]
[khroma.runtime :as runtime]
[khroma.log :as console]
......
(ns booklet.display
(:require [booklet.utils :refer [on-channel from-transit time-display]]
(ns relevance.display
(:require [relevance.utils :refer [on-channel from-transit time-display]]
[cljs.core.async :refer [>! <!]]
[cljs.core :refer [random-uuid]]
[cljsjs.react-bootstrap]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment