Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
28 | public function handle() |
||
29 | { |
||
30 | $this->line('=== Install assets via bower ==='); |
||
31 | |||
32 | $libraries = ['fancybox', 'jquery-validation', 'jquery.cookie', 'fileapi', 'jquery.spinner', 'microplugin', 'pickadate', |
||
33 | 'selectize', 'sifter', 'tinymce', 'uikit#2.27.5', ]; |
||
34 | |||
35 | foreach ($libraries as $library) { |
||
36 | if (! \File::exists(base_path('public_html/_assets/bower_components/'.$library))) { |
||
37 | echo shell_exec('bower install '.$library); |
||
38 | if (\File::exists(base_path('public_html/_assets/bower_components/'.$library))) { |
||
39 | $this->info('=== '.$library.' successfully installed ==='); |
||
40 | } else { |
||
41 | $this->alert('=== ERROR! '.$library.' not installed ==='); |
||
42 | } |
||
43 | } else { |
||
44 | $this->info('=== '.$library.' already installed ==='); |
||
45 | } |
||
46 | } |
||
47 | $this->info('=== END of assets ==='); |
||
48 | } |
||
50 |