update to use Resource::Pack::jQuery rather than a custom resource
[gitmo/moose-website.git] / lib / Moose / Website / Resource / WebFiles.pm
1 package Moose::Website::Resource::WebFiles;
2 use Moose;
3 use Resource::Pack;
4
5 use Resource::Pack::jQuery;
6
7 our $VERSION   = '0.01';
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 extends 'Resource::Pack::Resource';
11
12 has '+name' => (default => 'webfiles');
13
14 sub BUILD {
15     my $self = shift;
16
17     resource $self => as {
18         install_from(Path::Class::File->new(__FILE__)->parent
19                                                      ->subdir('WebFiles'));
20
21         resource(Resource::Pack::jQuery->new(
22             version    => '1.4.2',
23             install_to => 'js',
24         ));
25
26         dir 'css';
27         dir 'images';
28         dir js => (
29             dir          => 'js',
30             dependencies => ['jquery/js'],
31         );
32     };
33 }
34
35 __PACKAGE__->meta->make_immutable;
36
37 no Moose; no Resource::Pack; 1;
38
39 __END__
40
41 =pod
42
43 =head1 NAME
44
45 Moose::Website::Resource::WebFiles - A Moosey solution to this problem
46
47 =head1 SYNOPSIS
48
49   use Moose::Website::Resource::WebFiles;
50
51 =head1 DESCRIPTION
52
53 =head1 METHODS
54
55 =over 4
56
57 =item B<>
58
59 =back
60
61 =head1 BUGS
62
63 All complex software has bugs lurking in it, and this module is no
64 exception. If you find a bug please either email me, or add the bug
65 to cpan-RT.
66
67 =head1 AUTHOR
68
69 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
70
71 =head1 COPYRIGHT AND LICENSE
72
73 Copyright 2010 Infinity Interactive, Inc.
74
75 L<http://www.iinteractive.com>
76
77 This library is free software; you can redistribute it and/or modify
78 it under the same terms as Perl itself.
79
80 =cut