Gzip CSS and JS in make_static.PL
[plack-app-gruntmaster.git] / Makefile.PL
index ea97420c6aeeee061994f9bf19322a8a1e9cd875..6da9ecfdcc774618a09f3f493a534a5001f2746a 100644 (file)
@@ -1,13 +1,53 @@
 use 5.014000;
 use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
+
 WriteMakefile(
-    NAME              => 'Gruntmaster::Page',
-    VERSION_FROM      => 'lib/Gruntmaster/Page.pm', # finds $VERSION
-    PREREQ_PM         => {}, # e.g., Module::Name => 1.1
-    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
-      (ABSTRACT_FROM  => 'lib/Gruntmaster/Page.pm', # retrieve abstract from module
-       AUTHOR         => 'Marius Gavrilescu <marius@ieval.ro>') : ()),
-       EXE_FILES => [ qw/gruntmaster-genpage/ ]
-);
+       NAME              => 'Plack::App::Gruntmaster',
+       VERSION_FROM      => 'lib/Plack/App/Gruntmaster.pm',
+       ABSTRACT_FROM     => 'lib/Plack/App/Gruntmaster.pm',
+       AUTHOR            => 'Marius Gavrilescu <marius@ieval.ro>',
+       MIN_PERL_VERSION  => '5.14.0',
+       LICENSE           => 'AGPL_3',
+       SIGN              => 1,
+       clean             => {
+               FILES => 'static/css/ static/js.js static/js.js.gz static/js.map static/js/'
+       },
+       BUILD_REQUIRES    => {
+               qw/CSS::Minifier::XS          0
+                  File::Slurp                0
+                  JavaScript::Minifier::XS   0
+                  Test::MockTime             0
+                  Test::More                 0
+                  Test::WWW::Mechanize::PSGI 0/,
+       },
+       PREREQ_PM         => {
+               qw/Carp        0
+                  Encode      0
+                  List::Util  0
+                  POSIX       0
+                  constant    0
+                  feature     0
+                  parent      0
+                  strict      0
+                  warnings    0
+
+                  File::Slurp                      0
+                  Gruntmaster::Data                0
+                  HTML::Element::Library           0
+                  HTML::TreeBuilder                0
+                  JSON::MaybeXS                    0
+                  Log::Log4perl                    0
+                  PerlX::Maybe                     0
+                  Plack::Builder                   0
+                  Plack::Middleware::Auth::Complex 0
+                  Plack::Util                      0
+                  Scope::Upper                     0
+                  Web::Simple                      0.019/,
+       },
+       META_MERGE        => {
+               dynamic_config => 0,
+               resources      => {
+                       repository => 'https://git.ieval.ro/?p=plack-app-gruntmaster.git',
+               }
+       }
+)
This page took 0.010743 seconds and 4 git commands to generate.