summaryrefslogtreecommitdiffstats
path: root/AssetLoader.php
blob: b97500137f1eb9a31f83067501023cdcd288a6d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

class AssetLoader
{
    public static function update(Composer\Script\Event $event)
    {
        if (! is_dir('asset/js/jquery')) {
            mkdir('asset/js/jquery', 0775, true);
        }

        copy('vendor/components/jquery/jquery.js', 'asset/js/jquery/jquery.js');
        copy('vendor/components/jquery/jquery.min.js', 'asset/js/jquery/jquery.min.js');
    }
}