diff options
Diffstat (limited to 'AssetLoader.php')
-rw-r--r-- | AssetLoader.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/AssetLoader.php b/AssetLoader.php new file mode 100644 index 0000000..b975001 --- /dev/null +++ b/AssetLoader.php @@ -0,0 +1,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'); + } +} |