my plugin bundle now always excludes inc/ExtUtils/MakeMaker/Dist/Zilla/Develop.pm
[p5sagit/Sub-Name.git] / CONTRIBUTING
CommitLineData
67523925 1
2CONTRIBUTING
3
4Thank you for considering contributing to this distribution. This file
5contains instructions that will help you work with the source code.
6
7PLEASE NOTE that if you have any questions or difficulties, you can reach me
8through the bug queue described later in this document, or by emailing me
9directly. You are not required to follow any of the steps in this document to
10submit a patch or bug report; these are just guidelines, intended to help you.
11
12The distribution is managed with Dist::Zilla (https://metacpan.org/release/Dist-Zilla).
13However, you can still compile and test the code with a small Makefile.PL
14specifically for use in the repository. You can do:
15
16 perl Makefile.PL
17 make
18 make test
19
20As well as:
21
22 $ prove -bvr t
23or
24 $ perl -Mblib t/some_test_file.t
25
26You may need to satisfy some dependencies. The easiest way to satisfy
27dependencies is to install the last release -- this is available at
28https://metacpan.org/release/Sub-Name.
29
30If you use cpanminus, you can do it without downloading the tarball first:
31
32 $ cpanm --reinstall --installdeps --with-recommends Sub::Name
33
34Dist::Zilla is a very powerful authoring tool, but requires a number of
35author-specific plugins. If you would like to use it for contributing,
36install it from CPAN, then run one of the following commands, depending on
37your CPAN client:
38
39 $ cpan `dzil authordeps --missing`
40or
41 $ dzil authordeps --missing | cpanm
42
43You should then also install any additional requirements not needed by the
44dzil build but may be needed by tests or other development:
45
46 $ cpan `dzil listdeps --author --missing`
47or
48 $ dzil listdeps --author --missing | cpanm
49
50Or, you can use the 'dzil stale' command to install all requirements at once:
51
52 $ cpan Dist::Zilla::App::Command::stale
53 $ cpan `dzil stale --all`
54or
55 $ cpanm Dist::Zilla::App::Command::stale
56 $ dzil stale --all | cpanm
57
58You can also do this via cpanm directly:
59
60 $ cpanm --reinstall --installdeps --with-develop --with-recommends Sub::Name
61
62Once installed, here are some dzil commands you might try:
63
64 $ dzil build
65 $ dzil test
66 $ dzil test --release
67 $ dzil xtest
68 $ dzil listdeps --json
69 $ dzil build --notgz
70
71You can learn more about Dist::Zilla at http://dzil.org/.
72
73The code for this distribution is hosted at GitHub. The repository is:
74https://github.com/karenetheridge/Sub-Name
75You can submit code changes by forking the repository, pushing your code
76changes to your clone, and then submitting a pull request. Detailed
77instructions for doing that is available here:
78
79https://help.github.com/
80https://help.github.com/articles/creating-a-pull-request
81
82If you have found a bug, but do not have an accompanying patch to fix it, you
83can submit an issue report here:
84https://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Name
85or via bug-Sub-Name@rt.cpan.org.
86This is a good place to send your questions about the usage of this distribution.
87
88If you send me a patch or pull request, your name and email address will be
89included in the documentation as a contributor, unless you specifically
90request for it not to be (using the attribution on the commit or patch).
91If you wish to be listed under a different name, you should submit a pull
92request to the .mailmap file to contain the correct mapping.
93
94
95This file was generated via Dist::Zilla::Plugin::GenerateFile::ShareDir 0.005 from a
00d17844 96template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.072.