Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Merge branch 'generate_from_filesystem'
Browse files Browse the repository at this point in the history
  • Loading branch information
memowe committed Aug 30, 2017
2 parents 8d2e488 + 240a896 commit cffeb5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use strict;
use warnings;

use ExtUtils::MakeMaker;
use File::ShareDir::Install;

install_share dist => 'share';

WriteMakefile(
NAME => 'Contenticious',
Expand Down Expand Up @@ -33,6 +36,7 @@ WriteMakefile(

# non-trivial dependencies
'File::Copy::Recursive' => '0.38',
'File::Share' => '0.25',
'Mojolicious' => '7.0',
'Mojolicious::Plugin::AssetPack' => '1.45',
'Mojolicious::Plugin::RelativeUrlFor' => '0.052',
Expand All @@ -42,3 +46,6 @@ WriteMakefile(
EXE_FILES => ['contenticious'],
test => {TESTS => 't/*.t'}
);

package MY;
use File::ShareDir::Install 'postamble';
3 changes: 2 additions & 1 deletion lib/Contenticious/Generator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ use Mojo::Base -base;

use File::Basename;
use File::Spec::Functions; # catdir, catfiles
use File::Share 'dist_dir';
use FindBin;
use File::Path 'make_path';
use File::Copy;

has share_directory => catdir dirname(__FILE__), '..', '..', 'share';
has share_directory => dist_dir 'Contenticious';
has working_directory => $FindBin::Bin;

has files => sub{[
Expand Down

0 comments on commit cffeb5f

Please sign in to comment.