diff --git a/src/Console/LivewireCommand.php b/src/Console/LivewireCommand.php deleted file mode 100644 index 1b22aa8..0000000 --- a/src/Console/LivewireCommand.php +++ /dev/null @@ -1,19 +0,0 @@ -info('Installing Cloudinary Livewire components...'); - } -} diff --git a/src/Console/ReactCommand.php b/src/Console/ReactCommand.php index 222c272..e139174 100644 --- a/src/Console/ReactCommand.php +++ b/src/Console/ReactCommand.php @@ -9,13 +9,13 @@ class ReactCommand extends Command { protected $signature = 'cloudinary:react'; - protected $description = 'Install the React components'; + protected $description = 'Install the React SDK'; protected $hidden = true; public function handle() { - $this->info('Installing Cloudinary React components...'); + $this->info('Installing Cloudinary React SDK...'); $process = new Process(['npm', 'install', '@cloudinary/react', '@cloudinary/url-gen']); @@ -24,7 +24,7 @@ public function handle() }); $this->line(' '); - $this->info('Cloudinary React components installed successfully.'); + $this->info('Cloudinary React SDK installed successfully.'); $this->line('Read getting started: https://cloudinary.com/documentation/react_quick_start'); } } diff --git a/src/Console/SvelteCommand.php b/src/Console/SvelteCommand.php new file mode 100644 index 0000000..1d5cc52 --- /dev/null +++ b/src/Console/SvelteCommand.php @@ -0,0 +1,30 @@ +info('Installing Cloudinary Svelte SDK...'); + + $process = new Process(['npm', 'install', 'svelte-cloudinary']); + + $process->run(function ($type, $line) { + $this->output->write($line); + }); + + $this->line(' '); + $this->info('Cloudinary Svelte SDK installed successfully.'); + $this->line('Read getting started: https://svelte.cloudinary.dev/get-started'); + } +} diff --git a/src/Console/VueCommand.php b/src/Console/VueCommand.php index 2c87470..bff139c 100644 --- a/src/Console/VueCommand.php +++ b/src/Console/VueCommand.php @@ -9,13 +9,13 @@ class VueCommand extends Command { protected $signature = 'cloudinary:vue'; - protected $description = 'Install the Vue components'; + protected $description = 'Install the Vue SDK'; protected $hidden = true; public function handle() { - $this->info('Installing Cloudinary Vue components...'); + $this->info('Installing Cloudinary Vue SDK...'); $process = new Process(['npm', 'install', '@cloudinary/vue', '@cloudinary/url-gen']); @@ -24,7 +24,7 @@ public function handle() }); $this->line(' '); - $this->info('Cloudinary Vue components installed successfully.'); + $this->info('Cloudinary Vue SDK installed successfully.'); $this->line('Read getting started: https://cloudinary.com/documentation/vue_quick_start'); } }