diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:31:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:31:45 +0000 |
commit | 4e393913a4b1f06509da4341f0f58a41adac9117 (patch) | |
tree | 9c27e3eb77d109dff5fd031502311c5616adab04 /AssetLoader.php | |
parent | Initial commit. (diff) | |
download | icinga-php-thirdparty-4e393913a4b1f06509da4341f0f58a41adac9117.tar.xz icinga-php-thirdparty-4e393913a4b1f06509da4341f0f58a41adac9117.zip |
Adding upstream version 0.12.1+ds.upstream/0.12.1+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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'); + } +} |