Remove composer scripts

This commit is contained in:
DariusIII
2023-03-22 14:26:52 +01:00
parent 65a344c284
commit efe48dcdb3
2 changed files with 0 additions and 69 deletions
-65
View File
@@ -1,65 +0,0 @@
<?php
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program (see LICENSE.txt in the base directory. If
* not, see:.
*
* @link <http://www.gnu.org/licenses/>.
*
* @author niel
* @copyright 2017 nZEDb
*/
namespace Blacklight\build;
use Composer\Script\Event;
use Illuminate\Foundation\Application;
class ComposerScripts
{
/**
* Handle the post-install Composer event.
*
* @return void
*/
public static function postInstall(Event $event)
{
require_once $event->getComposer()->getConfig()->get('vendor-dir').'/autoload.php';
static::clearCompiled();
}
/**
* Handle the post-update Composer event.
*
* @return void
*/
public static function postUpdate(Event $event)
{
require_once $event->getComposer()->getConfig()->get('vendor-dir').'/autoload.php';
static::clearCompiled();
}
/**
* Clear the cached Laravel bootstrapping files.
*
* @return void
*/
protected static function clearCompiled()
{
$nntmux = new Application(getcwd());
if (file_exists($servicesPath = $nntmux->getCachedServicesPath())) {
@unlink($servicesPath);
}
}
}
-4
View File
@@ -185,11 +185,7 @@
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"Blacklight\\build\\ComposerScripts::postInstall"
],
"post-update-cmd": [
"Blacklight\\build\\ComposerScripts::postUpdate",
"@php artisan ide-helper:generate --ansi",
"@php artisan vendor:publish --tag=laravel-assets --ansi"
],