- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker - Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor - Update view templates to use vendor paths instead of old /js/ or CDN URLs - Clean up legacy commented-out scripts in master layout
24 lines
391 B
PHP
24 lines
391 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use Carbon\Cli\Invoker;
|
|
|
|
$dir = __DIR__.'/..';
|
|
|
|
if (!file_exists($dir.'/autoload.php')) {
|
|
$dir = __DIR__.'/../vendor';
|
|
}
|
|
|
|
if (!file_exists($dir.'/autoload.php')) {
|
|
$dir = __DIR__.'/../../..';
|
|
}
|
|
|
|
if (!file_exists($dir.'/autoload.php')) {
|
|
echo 'Autoload not found.';
|
|
exit(1);
|
|
}
|
|
|
|
require $dir.'/autoload.php';
|
|
|
|
exit((new Invoker())(...$argv) ? 0 : 1);
|