-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename cljsbuild-ui lein profile to cuttle
- Loading branch information
1 parent
28872fb
commit 167d1e7
Showing
4 changed files
with
13 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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,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" |
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,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 <command> | ||
lein with-profile +cuttle <command> | ||
``` | ||
|
||
## 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 |
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