blib/lib/Code/TidyAll/Plugin/CSSUnminifier.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
_build_cmd
2.0
transform_file
2.0
BEGIN
2.0
CRAP 2.0
1 package Code::TidyAll::Plugin::CSSUnminifier;
2  
3 use strict;
4 use warnings;
5  
6 use Moo;
7  
8 extends 'Code::TidyAll::Plugin';
9  
10 with 'Code::TidyAll::Role::RunsCommand';
11  
12 our $VERSION = '0.83';
13  
14 sub _build_cmd {'cssunminifier'}
15  
16 sub transform_file {
17 my ( $self, $file ) = @_;
18  
19 $self->_run_or_die( $file, $file );
20  
21 return;
22 }
23  
24 1;
25  
26 # ABSTACT: Use cssunminifier with tidyall
27  
28 __END__
29  
30 =pod
31  
32 =head1 SYNOPSIS
33  
34 In configuration:
35  
36 [CSSUnminifier]
37 select = static/**/*.css
38 argv = -w=2
39  
40 =head1 DESCRIPTION
41  
42 Runs L<cssunminifier|https://npmjs.org/package/cssunminifier>, a simple CSS
43 tidier.
44  
45 =head1 INSTALLATION
46  
47 Install L<npm|https://npmjs.org/>, then run
48  
49 npm install cssunminifier -g
50  
51 =head1 CONFIGURATION
52  
53 This plugin accepts the following configuration options:
54  
55 =head2 argv
56  
57 Arguments to pass to C<cssunminifier>.
58  
59 =head2 cmd
60  
61 The path for the C<cssunminifier> command. By default this is just
62 C<cssunminifier>, meaning that the user's C<PATH> will be searched for the
63 command.
64  
65 =cut