forked from miyagawa/Plack-Middleware-Debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
30 lines (27 loc) · 959 Bytes
/
Makefile.PL
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
use inc::Module::Install;
name 'Plack-Middleware-Debug';
all_from 'lib/Plack/Middleware/Debug.pm';
readme_from 'lib/Plack/Middleware/Debug.pm';
auto_set_repository;
requires 'parent';
requires 'Plack';
requires 'Text::MicroTemplate', 0.15;
requires 'Data::Dump';
requires 'File::ShareDir', '1.00';
requires 'Class::Method::Modifiers', '1.05';
requires 'Encode', 2.23;
feature 'Module versions panel', - default => 0,
'Module::Versions' => '0.01';
test_requires 'Test::More' => '0.70';
test_requires 'Test::Requires';
install_share 'share';
auto_install;
Makefile->postamble(<<EOMAKE);
YUICOMPRESS = ~/bin/yuicompressor.jar
MEDIADIR = share/debug_toolbar
yuicompressor:
\tjava -jar \$(YUICOMPRESS) \$(MEDIADIR)/toolbar.js > \$(MEDIADIR)/toolbar.min.js
\tjava -jar \$(YUICOMPRESS) \$(MEDIADIR)/jquery.cookie.js >> \$(MEDIADIR)/toolbar.min.js
\tjava -jar \$(YUICOMPRESS) --type css \$(MEDIADIR)/toolbar.css > \$(MEDIADIR)/toolbar.min.css
EOMAKE
WriteAll;