Skip to content

Commit

Permalink
Document prep-tasks, clean up ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jan 29, 2012
1 parent 8a2baf5 commit 0f855f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
test_projects/*/target
test_projects/sample/pom.xml
classes/
lib/
leiningen*.jar
lein-swank/lein-swank*.jar
*jar
pom.xml
autodoc/
bin/nom
.lein-failures
/lein.man
/scratch.clj
.lein-deps-sum
docs
/leiningen-core/pom.xml
/.lein-classpath
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ A single `with-profile` call does not apply across task comma-chains.
Outside `with-profile` calls, the `:dev` and `:user` profiles are
active by default.

TODO: add example

### Leiningen Plugins

Leiningen supports plugins which may contain both new tasks and hooks
Expand Down
7 changes: 6 additions & 1 deletion leiningen-core/src/leiningen/core/eval.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@
(:injections project hooke-injection)))

(def prep-tasks
"A list of tasks to call before any code is evaluated inside the project."
"A list of tasks to call before any code is evaluated inside the project.
All tasks added to this list must be careful to check before doing any
nontrivial work to make sure it's necessary since they will be run
often. For instance, compile compares timestamps of source files vs
corresponding .class files before performing actual compilation."
(atom ["javac" "compile"]))

(def ^:dynamic *prepping?* false)
Expand Down
1 change: 1 addition & 0 deletions todo.org
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ See also https://github.com/technomancy/leiningen/issues
- [ ] Honor hooks declared in plugin jar metadata?
- [ ] Pass user-level repository auth settings on to pomegranate.
- [ ] In-process eval-in-project? (possibly post-preview)
- [ ] Address chaining issues in with-profile
** Other stuff (post-preview)
- [ ] Further design on Project Middleware
- [ ] Add :dynamic metadata to clucy (bablien has patches for this)
Expand Down

0 comments on commit 0f855f9

Please sign in to comment.