-
Notifications
You must be signed in to change notification settings - Fork 35
/
PIONEER
72 lines (50 loc) · 2.52 KB
/
PIONEER
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
If you have a Perl 6 project, it already conforms to the requirements posed
by proto.
With that said, there are some things that proto will do for you and your
project, if you only adhere to a few easy-to-fulfill conventions:
* Dependencies
* Building
* Running tests
* Joining the Perl 6 Ecosystem
== Dependencies
This is what proto was designed for: installing the projects you need,
and building them before building your project.
If you have dependencies, declare them in a file deps.proto in the root of
your repository. The November wiki has a deps.proto that looks like this:
html-template
(That's one line, containing the word 'html-template'.)
Things that proto expects to see in a deps.proto file:
* Blank lines.
* Lines with a single word containing only alphanumerics, dashes and
underscores.
* Any of the above with trailing whitespace.
* Any of the above with a trailing '#' comment.
If it finds anything else, proto will halt and publicly ridicule you, the
project developer, for not living up to an easy-to-fulfill convention.
== Building
As a bonus to installing, proto can build your project. There will always be
a build step, regardless of how your repository looks. The steps performed
by proto are
$ perl Makefile.PL # or perl6 Configure.pl
$ make
Should Makefile.PL etc be missing, the above steps will not be performed,
and the build process is considered successful (sic). If the above steps
fail along the way, the build chain is halted.
== Running tests
Proto will attempt 'make test'; if there's no target 'test' in the Makefile,
proto will try to run 'prove' recursively on your project's t/ directory,
using perl6 as the executable. If prove is missing, or the t/ directory is
missing, the testing will be considered successful.
== Installing
If the Makefile is present, 'make install' would be run to install the
module. Otherwise, all the modules from lib/ will be compiled to PIR and
installed to a proper location, so they will be available to use in Perl 6
programs. Furthermore, the files from the bin/ directory (if available) will
be installed too, so one will be able to run them as a standalone application.
== Joining the Perl 6 Ecosystem
Proto assumes that if your project has a top level lib/ directory, you
intend other code to 'use' modules therein. Currently subfolders form a
namespace hierarchy so that lib/A/B.pm satisfies 'use A::B;' but this will
become more complicated after S11-style versioning is implemented.
Proto cannot change your PERL6LIB environment variable, but will warn you
about needed changes.