| 1 | package Stencil::Source::Awncorp::Project; | ||
| 2 | |||
| 3 | use 5.014; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | use Data::Object::Class; | ||
| 9 | |||
| 10 | extends 'Stencil::Source'; | ||
| 11 | |||
| 12 | our $VERSION = '0.01'; # VERSION | ||
| 13 | |||
| 14 | sub dist { | ||
| 15 | my ($self, $name) = @_; | ||
| 16 | |||
| 17 | $name =~ s/::/-/g; | ||
| 18 | |||
| 19 | return $name | ||
| 20 | } | ||
| 21 | |||
| 22 | 1; | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | =encoding utf8 | ||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | Stencil::Source::Awncorp::Project | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | =head1 ABSTRACT | ||
| 35 | |||
| 36 | Stencil Generator for Projects | ||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | =head1 SYNOPSIS | ||
| 41 | |||
| 42 | use Stencil::Source::Awncorp::Project; | ||
| 43 | |||
| 44 | my $s = Stencil::Source::Awncorp::Project->new; | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | =head1 DESCRIPTION | ||
| 49 | |||
| 50 | This package provides a L<Stencil> generator for L<Dist::Zilla> based projects | ||
| 51 | that use. This generator produces the following specification: | ||
| 52 | |||
| 53 | name: MyApp | ||
| 54 | abstract: Doing One Thing Very Well | ||
| 55 | main_module: lib/MyApp.pm | ||
| 56 | |||
| 57 | prerequisites: | ||
| 58 | - "routines = 0" | ||
| 59 | - "Data::Object::Class = 0" | ||
| 60 | - "Data::Object::ClassHas = 0" | ||
| 61 | |||
| 62 | operations: | ||
| 63 | - from: editorconfig | ||
| 64 | make: .editorconfig | ||
| 65 | - from: gitattributes | ||
| 66 | make: .gitattributes | ||
| 67 | - from: build | ||
| 68 | make: .github/build | ||
| 69 | - from: release | ||
| 70 | make: .github/release | ||
| 71 | - from: workflow-release | ||
| 72 | make: .github/workflows/releasing.yml | ||
| 73 | - from: workflow-test | ||
| 74 | make: .github/workflows/testing.yml | ||
| 75 | - from: gitignore | ||
| 76 | make: .gitignore | ||
| 77 | - from: mailmap | ||
| 78 | make: .mailmap | ||
| 79 | - from: perlcriticrc | ||
| 80 | make: .perlcriticrc | ||
| 81 | - from: perltidyrc | ||
| 82 | make: .perltidyrc | ||
| 83 | - from: replydeps | ||
| 84 | make: .replydeps | ||
| 85 | - from: replyrc | ||
| 86 | make: .replyrc | ||
| 87 | - from: code-of-conduct | ||
| 88 | make: CODE_OF_CONDUCT.md | ||
| 89 | - from: contributing | ||
| 90 | make: CONTRIBUTING.md | ||
| 91 | - from: manifest-skip | ||
| 92 | make: MANIFEST.SKIP | ||
| 93 | - from: stability | ||
| 94 | make: STABILITY.md | ||
| 95 | - from: template | ||
| 96 | make: TEMPLATE | ||
| 97 | - from: version | ||
| 98 | make: VERSION | ||
| 99 | - from: dist | ||
| 100 | make: dist.ini | ||
| 101 | |||
| 102 | =cut | ||
| 103 | |||
| 104 | =head1 INHERITS | ||
| 105 | |||
| 106 | This package inherits behaviors from: | ||
| 107 | |||
| 108 | L<Stencil::Source> | ||
| 109 | |||
| 110 | =cut | ||
| 111 | |||
| 112 | =head1 LIBRARIES | ||
| 113 | |||
| 114 | This package uses type constraints from: | ||
| 115 | |||
| 116 | L<Types::Standard> | ||
| 117 | |||
| 118 | =cut | ||
| 119 | |||
| 120 | =head1 AUTHOR | ||
| 121 | |||
| 122 | Al Newkirk, C<awncorp@cpan.org> | ||
| 123 | |||
| 124 | =head1 LICENSE | ||
| 125 | |||
| 126 | Copyright (C) 2011-2019, Al Newkirk, et al. | ||
| 127 | |||
| 128 | This is free software; you can redistribute it and/or modify it under the terms | ||
| 129 | of the The Apache License, Version 2.0, as elucidated in the L<"license | ||
| 130 | file"|https://github.com/iamalnewkirk/stencil-source-awncorp/blob/master/LICENSE>. | ||
| 131 | |||
| 132 | =head1 PROJECT | ||
| 133 | |||
| 134 | L<Wiki|https://github.com/iamalnewkirk/stencil-source-awncorp/wiki> | ||
| 135 | |||
| 136 | L<Project|https://github.com/iamalnewkirk/stencil-source-awncorp> | ||
| 137 | |||
| 138 | L<Initiatives|https://github.com/iamalnewkirk/stencil-source-awncorp/projects> | ||
| 139 | |||
| 140 | L<Milestones|https://github.com/iamalnewkirk/stencil-source-awncorp/milestones> | ||
| 141 | |||
| 142 | L<Contributing|https://github.com/iamalnewkirk/stencil-source-awncorp/blob/master/CONTRIBUTE.md> | ||
| 143 | |||
| 144 | L<Issues|https://github.com/iamalnewkirk/stencil-source-awncorp/issues> | ||
| 145 | |||
| 146 | =cut | ||
| 147 | |||
| 148 | __DATA__ |