763bc0e4bab167decce626c5bcb12c9d5bee722f
[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 Moose::Website::Resource::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(Moose::Website::Resource::jQuery->new);
22
23         dir 'css';
24         dir 'images';
25         dir js => (
26             dir          => 'js',
27             dependencies => ['jquery/core'],
28         );
29     };
30 }
31
32 __PACKAGE__->meta->make_immutable;
33
34 no Moose; no Resource::Pack; 1;
35
36 __END__
37
38 =pod
39
40 =head1 NAME
41
42 Moose::Website::Resource::WebFiles - A Moosey solution to this problem
43
44 =head1 SYNOPSIS
45
46   use Moose::Website::Resource::WebFiles;
47
48 =head1 DESCRIPTION
49
50 =head1 METHODS
51
52 =over 4
53
54 =item B<>
55
56 =back
57
58 =head1 BUGS
59
60 All complex software has bugs lurking in it, and this module is no
61 exception. If you find a bug please either email me, or add the bug
62 to cpan-RT.
63
64 =head1 AUTHOR
65
66 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
67
68 =head1 COPYRIGHT AND LICENSE
69
70 Copyright 2010 Infinity Interactive, Inc.
71
72 L<http://www.iinteractive.com>
73
74 This library is free software; you can redistribute it and/or modify
75 it under the same terms as Perl itself.
76
77 =cut