File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
require '../src/tureki/phpcc.php ' ;
7
7
8
- /*
8
+ /**
9
9
* java_file
10
10
*
11
11
* Linux "/usr/lib/jvm/jre-1.6.0/bin/java"
12
12
* Window7 "C:\Program Files (x86)\Java\jre6\bin\java"
13
13
*/
14
14
15
- /*
15
+ /**
16
16
* jar_file
17
17
*
18
18
* You can download source from http://code.google.com/p/closure-compiler/wiki/BinaryDownloads
19
19
*/
20
20
21
- /*
21
+ /**
22
22
* output_path
23
23
*
24
24
* Output path of compress file when success
25
25
*/
26
26
27
- /*
27
+ /**
28
28
* phpcc config
29
29
* @var phpcc
30
30
*/
35
35
'charset ' => 'utf-8 ' ,
36
36
));
37
37
38
- /*
38
+ /**
39
39
* Test your phpcc setting.
40
40
*/
41
41
print_r ($ phpcc ->help ());
42
42
43
- /*
43
+ /**
44
44
* Add jQuery file and combined compression
45
45
*/
46
46
// $ary_result = $phpcc
49
49
// ->exec("all.js");
50
50
// print_r($ary_result);
51
51
52
- /*
52
+ /**
53
53
* Add jQuery file and individual compression
54
54
*/
55
55
// $phpcc->reset();
60
60
// ->exec();
61
61
// print_r($ary_result);
62
62
63
- /*
63
+ /**
64
64
* Set Directory path find .js file and combined compression to one file.
65
65
*/
66
66
// $phpcc->reset();
69
69
// ->exec("all.js");
70
70
// print_r($ary_result);
71
71
72
- /*
72
+ /**
73
73
* Set Directory path . Auto find js file and individual compression
74
74
*/
75
75
// $phpcc->reset();
79
79
// ->exec();
80
80
// print_r($ary_result);
81
81
82
- /*
82
+ /**
83
83
* Mixed
84
84
*/
85
85
// $phpcc->reset();
89
89
// ->exec();
90
90
// print_r($ary_result);
91
91
92
- /*
92
+ /**
93
93
* You can use param() add Closure Compiler command param.
94
94
*/
95
95
// $phpcc->reset();
Original file line number Diff line number Diff line change 9
9
* @copyright tureki.org
10
10
* @author tureki
11
11
*
12
- **/
12
+ */
13
+
13
14
class PhpCc
14
15
{
15
16
@@ -82,7 +83,6 @@ public function exec($filename = 'all.min.js')
82
83
$ ary_result [] = $ this ->_getArgv ($ str_file , $ filename );
83
84
}
84
85
85
-
86
86
return $ ary_result ;
87
87
} else {
88
88
if (count ($ this ->js_files_dir )>0 ) {
You can’t perform that action at this time.
0 commit comments