Commit graph

68 commits

Author SHA1 Message Date
Phil Hagelberg
4874c7bf0f Add a lot of `s'es. 2017-01-09 13:47:30 -08:00
Dan Harbin
5d2bb2b563 Fix plugin profiles documentation
The documentation said to "Create a file called `src/myplugin/profiles.clj`".  This didn't work for me.  I had to create a file `resources/myplugin/profiles.clj` instead.
2016-04-13 17:01:51 -05:00
Daniel Compton
1fad7043b6 Add docs for providing :jvm-opts 2016-01-22 09:05:35 +13:00
Jean Niklas L'orange
3b8d6093aa Tell people to use profiles over middleware
Along with replacing the unfortunate :injections example (ref #2033).
2016-01-18 23:13:26 +01:00
Jean Niklas L'orange
e9efb0e279 Update task defn information, ref #1913
Afaik there's no need to not pass in a project-like thing as first
argument for tasks.
2015-11-24 00:39:28 +01:00
Jean Niklas L'orange
14bd7785a6 Merge pull request #1917 from rmoehn/clarify-plugin-doc
PLUGINS.md: Clarify some things
2015-07-26 23:12:57 +02:00
Richard Möhn
c096c5f43c PLUGINS.md: Clarify some things
While trying to develop a Leiningen plugin I stumbled over two small
things, which I think make other people stumble as well:

 - Adding the path to my plugin's src directory to .lein-classpath
   didn't help anything. Leiningen still loaded the coded that I had
   installed to the Maven repository and ignored the local changes.
   Putting :provided or :resolve or :classpath after the plugin
   coordinates as suggested in issue #750 didn't help either. After
   banging my head against this, I got the idea to remove the plugin
   entry completely and it worked. Not sure if this is the intended
   behaviour, though. Add a step-by-step guide to getting what you want
   anyway.

 - It wasn't at all clear to me how to do the subtasks thing. The
   sentence about the :subtask metadata is a bit garbled and I thought
   there might be a mechanisms that invokes subtasks for me. I couldn't
   find anything about that, though. A quick search took me to
   https://github.com/devth/lein-worker/blob/master/src/leiningen/worker.clj,
   which showed the relevant bits. Add an example, because that's what
   people understand.

Discussion:

 - The new place of the paragraph for emitting output is not very good,
   but it's better than leaving it at the bottom of the newly expanded
   local development section, where nobody would see it.

 - Renaming "Documentation" to "Documentation and subtasks" is a rather
   thin patch. – Instructions on how to invoke subtasks don't really
   belong in a section about documentation. – However, I'm too lazy to
   do a lot of restructuring and I think people will still find what
   they're looking for.
2015-07-26 09:31:48 +09:00
Stephen Nelson
6e0ebc20f7 Upgrade clojure dependency to 1.7.0 2015-07-16 15:11:01 +12:00
Tim Linquist
ef33d8c188 Update PLUGINS.md
Fixup suggestion to run plugin standalone from root as most plugins don't work this way
2015-06-04 16:24:55 -07:00
Tim Linquist
073a955246 Update PLUGINS.md 2015-06-03 11:18:45 -07:00
Kenji Nakamura
a372202d94 Translated Plugin page to Japanese. 2015-01-03 15:47:29 +09:00
Daniel Compton
2ef2fb48a9 Correct classpath separator config 2014-11-22 12:13:47 +13:00
Daniel Compton
1f2a71b78c with->on 2014-11-22 11:30:44 +13:00
Daniel Compton
2399b7a45c Clarify .lein-classpath usage with plugin deps
Explain that plugin dependencies need to be added to .lein-classpath if they are being edited too.
2014-11-22 11:28:56 +13:00
Phil Hagelberg
e9c9ff4883 Document in-plugin profiles. 2014-09-04 19:25:58 -07:00
Phil Hagelberg
46f1556111 Document partial alias splicing.
[ci skip]
2014-06-08 15:21:05 -07:00
Phil Hagelberg
353d73912c Allow for plugins to override built-in tasks. 2014-06-05 12:08:06 -07:00
Phil Hagelberg
dd7447544b Encourage use of main/info and friends for plugin output. 2014-05-27 11:24:13 -07:00
Phil Hagelberg
ec45757459 Automatically load methods for other leiningen.vcs systems. 2014-05-23 20:59:34 -07:00
Toby Crawley
0644eab9c4 Document various ways to register wagon factories [fixes #1483] 2014-04-07 09:58:25 -04:00
Eunmin
12e4b460ad Correcting errors that used to be :sources-paths in plugin document. 2014-04-02 19:54:32 +09:00
Phil Hagelberg
f509d4ec3d Document :pass-through-help in plugin guide. 2014-03-07 10:23:19 -08:00
Phil Hagelberg
ff403992e4 Update plugin guide. 2014-01-20 10:49:21 -08:00
John Conti
40caa932fe Fix typo in lein template invocation command. 2013-09-21 07:08:35 -06:00
Phil Hagelberg
bb5dc78c35 Discuss idempotency of hooks/middleware in plugin docs. 2013-08-20 11:57:27 -07:00
Phil Hagelberg
7e7a38e332 Suggest using profiles to change project map in PLUGINS.md.
Also clarify that auto-loaded hooks are only checked in :plugins.

Fixes #1258.
2013-07-31 22:02:16 -07:00
Jean Niklas L'orange
ea90ec0145 Properly document template tags. 2013-07-29 01:06:31 +02:00
bendlas
deba9c59ae Rename hooks to activate in hooks code sample
I'm not sure, if `hooks` was there on purpose, but if it was, it would need additional explainations.
2013-04-15 17:16:34 +03:00
Michael Klishin
6c6d9e844e Move (:root project) docs next to the section on :no-project-needed 2013-03-01 23:30:52 +04:00
Michael Klishin
fd6af1af58 Document (:root project) 2013-03-01 23:29:22 +04:00
Phil Hagelberg
3b539495a4 Remove mention of preview from docs; use stable branch. 2013-01-19 20:39:43 -08:00
Trevor Wennblom
496f1352a1 No tabs
:)
2013-01-08 09:57:56 -06:00
Phil Hagelberg
0d69412db6 Move contributing guidelines into their own file. 2013-01-02 22:32:07 -08:00
Ben Mabey
4814b4adbb fixes code fence in plugin tutorial markdown 2012-11-19 11:36:45 -07:00
Phil Hagelberg
eab8276a96 Clarify that project-level tasks are usually unnecessary. 2012-10-23 08:22:13 -07:00
Tobias Crawley
6998dd6929 Support subtask specific help via 'lein help task subtask'
The help task will first look for static help under
'leiningen/help/task-subtask', then for a function name 'help-subtask' in the
subtask's namespace, then a docstring on the subtask function. For the latter
two options, the arglists are also printed.
2012-10-05 14:37:58 -04:00
Phil Hagelberg
72e6908778 Add a warning under project-specific tasks. 2012-09-11 10:43:28 -07:00
Charles Parker
11e6864e1b Plugin -> Task 2012-09-07 10:56:33 -07:00
Charles Parker
cee3d972e3 Little addition to plugins doc 2012-09-07 09:53:01 -07:00
Phil Hagelberg
b2a50ffe97 Clarify usage of .lein-classpath during plugin development. Fixes #750. 2012-08-28 11:22:11 -07:00
Justin Balthrop
ff5524bdf1 support disabling autoload of plugin hooks and middleware 2012-08-23 13:29:37 -07:00
Justin Balthrop
69d3f80150 documentation for automatic plugin hooks and middleware 2012-08-22 15:35:21 -07:00
Phil Hagelberg
23d791d249 Document prep-tasks, :keyword task arg conventions, and l.c.m/abort. 2012-08-06 16:09:39 -07:00
Phil Hagelberg
a6659e15fa Documentation, news, todo updates. 2012-06-27 16:06:48 -07:00
Phil Hagelberg
0eff5d80d7 Document using .lein-classpath for developing plugins. Fixes #508.
[ci skip]
2012-06-09 21:08:58 -07:00
Daniel Solano Gómez
1f25c46907 Add references to leinjacker and its eval-in-project 2012-04-24 12:14:24 -05:00
Phil Hagelberg
15e1213ce3 Bump lein-newnew version. Fixes #507. 2012-04-10 12:12:41 -07:00
Phil Hagelberg
0babb90b05 Translate nonzero exit codes into exceptions. Fixes #493. 2012-04-02 11:12:36 -07:00
Phil Hagelberg
c34c912c09 Update plugin guide to mention plural path keys. 2012-02-22 16:56:11 -08:00
Phil Hagelberg
9a4c5f6a74 Fix hooks example in plugin guide. 2012-02-16 13:37:05 -08:00