Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kentnl/dist-zilla-plugin-bootstrap-sharedir-dist
Use a `share` directory on your dist during bootstrap
https://github.com/kentnl/dist-zilla-plugin-bootstrap-sharedir-dist
dist-zilla perl
Last synced: 4 days ago
JSON representation
Use a `share` directory on your dist during bootstrap
- Host: GitHub
- URL: https://github.com/kentnl/dist-zilla-plugin-bootstrap-sharedir-dist
- Owner: kentnl
- License: other
- Created: 2013-09-03T05:18:46.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T07:06:42.000Z (over 7 years ago)
- Last Synced: 2023-08-20T22:15:11.096Z (about 1 year ago)
- Topics: dist-zilla, perl
- Language: Perl
- Size: 357 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Dist::Zilla::Plugin::Bootstrap::ShareDir::Dist - Use a share directory on your dist during bootstrap
# VERSION
version 1.001003
# DESCRIPTION
This module allows one to load a `Dist` styled `ShareDir` using a `Bootstrap`
mechanism so a distribution can use files in its own source tree when building with itself.This is very much like the `Bootstrap::lib` plugin in that it injects libraries into
`@INC` based on your existing source tree, or a previous build you ran.And it is syntactically like the `ShareDir` plugin.
**Note** that this is really only useful for self consuming _plugins_ and will have no effect
on the `test` or `run` phases of your dist. ( For that, you'll need `Test::File::ShareDir` ).# USAGE
[Bootstrap::lib]
[Bootstrap::ShareDir::Dist]
dir = share[ShareDir]
dir = shareThe only significant difference between this module and `ShareDir` is this module exists to make `share` visible to
plugins for the distribution being built, while `ShareDir` exists to export the `share` directory visible after install time.Additionally, there are two primary attributes that are provided by [`Dist::Zilla::Role::Bootstrap`](https://metacpan.org/pod/Dist::Zilla::Role::Bootstrap), See ["ATTRIBUTES" in Dist::Zilla::Role::Bootstrap](https://metacpan.org/pod/Dist::Zilla::Role::Bootstrap#ATTRIBUTES)
For instance, this bootstraps `ROOT/Your-Dist-Name-$VERSION/share` if it exists and there's only one `$VERSION`,
otherwise it falls back to simply bootstrapping `ROOT/share`[Bootstrap::ShareDir::Dist]
dir = share
try_built = 1# METHODS
## `do_bootstrap_sharedir`
This is where all the real work is done.
## `bootstrap`
Called by [`Dist::Zilla::Role::**Bootstrap**`](https://metacpan.org/pod/Dist::Zilla::Role::Bootstrap)
# ATTRIBUTES
## `dir`
# AUTHOR
Kent Fredric
# COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric .
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.