added client assets

pull/44/head
A1Gard 5 months ago
parent e24fa89717
commit 56e7c39248

@ -0,0 +1,30 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class clientAssetGenerator extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'client';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*/
public function handle()
{
//
}
}

@ -51,12 +51,12 @@ class makePart extends Command
}
$folderPath = __DIR__ . '/../../../resources/views/theme/' . $section . '/' . $part;
$folderPath = __DIR__ . '/../../../resources/views/segments/' . $section . '/' . $part;
// check is exists
if (File::exists($folderPath)) {
$this->warn(__('Command ignored, theme part exists!'));
$this->warn(__('Command ignored, segment part exists!'));
return -1;
}
@ -85,6 +85,7 @@ DOC;
$this->info(__("Theme part created successfully: [blade, js, json, scss, php, assets, screenshot]"));
return 0;
}

@ -0,0 +1 @@
console.log('client run');

@ -0,0 +1,5 @@
*{
padding: 0;
margin: 0;
}

@ -6,6 +6,7 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
@vite(['resources/sass/client.scss', 'resources/js/client.js'])
</head>
<body>
<h1>

@ -8,6 +8,8 @@ export default defineConfig({
input: [
'resources/sass/app.scss',
'resources/js/app.js',
'resources/sass/client.scss',
'resources/js/client.js',
],
refresh: true,
}),

Loading…
Cancel
Save