From 167d1e721996d8f77cada6bd8feb6241a2989df6 Mon Sep 17 00:00:00 2001 From: Shaun Williams Date: Sun, 18 Jan 2015 19:33:18 -0600 Subject: [PATCH] rename cljsbuild-ui lein profile to cuttle --- 00-scrap/kill-lein.sh | 4 ++-- 00-scrap/list-lein.sh | 4 ++-- add-lein-profile/README.md | 14 +++++++------- src-cljs/cuttle/exec.cljs | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/00-scrap/kill-lein.sh b/00-scrap/kill-lein.sh index e2e9f13..dea4a34 100755 --- a/00-scrap/kill-lein.sh +++ b/00-scrap/kill-lein.sh @@ -1,6 +1,6 @@ #!/bin/bash -# This kills all cljsbuild-ui leiningen processes +# This kills all Cuttle leiningen processes # We need this on Mac currently since "stop" is not killing them yet. -ps -ef | grep -v grep | grep "with-profile +cljsbuild-ui" | cut -d" " -f4 | xargs kill +ps -ef | grep -v grep | grep "with-profile +cuttle" | cut -d" " -f4 | xargs kill diff --git a/00-scrap/list-lein.sh b/00-scrap/list-lein.sh index eba42a8..71ebcaa 100755 --- a/00-scrap/list-lein.sh +++ b/00-scrap/list-lein.sh @@ -1,6 +1,6 @@ #!/bin/bash -# This kills all cljsbuild-ui leiningen processes +# This kills all Cuttle leiningen processes # We need this on Mac currently since "stop" is not killing them yet. -ps -ef | grep -v grep | grep "with-profile +cljsbuild-ui" +ps -ef | grep -v grep | grep "with-profile +cuttle" diff --git a/add-lein-profile/README.md b/add-lein-profile/README.md index c575a32..5c3d2fa 100644 --- a/add-lein-profile/README.md +++ b/add-lein-profile/README.md @@ -1,29 +1,29 @@ # Add Lein Profile -This is a project that cljsbuild-ui uses to programmatically add a [leiningen profile] -to `~/.lein/profiles.clj`. This allows cljsbuild-ui to use lein +This is a project that Cuttle uses to programmatically add a [leiningen profile] +to `~/.lein/profiles.clj`. This allows Cuttle to use lein plugins/dependencies across user projects without polluting their project.clj. -On startup, cljsbuild-ui effectively runs +On startup, Cuttle effectively runs ``` -lein run '{:cljsbuild-ui {:plugins [[lein-pprint "1.1.1"]]}}' +lein run '{:cuttle {:plugins [[lein-pprint "1.1.1"]]}}' ``` so it can include these dependencies on any project with: ``` -lein with-profile +cljsbuild-ui +lein with-profile +cuttle ``` ## Details We could inject plugins/dependencies into the `:user` profile which is included by default on all projects. But we decided to avoid handling potential -collisions by creating our own profile `:cljsbuild-ui`, which is what this tool +collisions by creating our own profile `:cuttle`, which is what this tool helps us do. -The plus sign in `lein with-profile +cljsbuild-ui` indicates that it is adding +The plus sign in `lein with-profile +cuttle` indicates that it is adding to (rather than overwriting) the default profiles. [leiningen profile]: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md diff --git a/src-cljs/cuttle/exec.cljs b/src-cljs/cuttle/exec.cljs index 974b05f..9f53bfb 100644 --- a/src-cljs/cuttle/exec.cljs +++ b/src-cljs/cuttle/exec.cljs @@ -20,7 +20,7 @@ (defn lein "Make lein command string" [args] - (str (lein-path) " with-profile +cljsbuild-ui " args)) + (str (lein-path) " with-profile +cuttle " args)) ;;------------------------------------------------------------------------------ ;; Require Modules @@ -54,7 +54,7 @@ (def lein-profile "Lein profile containing dependencies required for our tool." - '{:cljsbuild-ui {:plugins [[lein-pprint "1.1.1"]]}}) + '{:cuttle {:plugins [[lein-pprint "1.1.1"]]}}) (defn add-lein-profile! "Adds our Lein profile to the user's global profiles.clj."