Skip to content

Commit a014556

Browse files
committed
add svelte
1 parent 89ce99a commit a014556

File tree

4 files changed

+36
-25
lines changed

4 files changed

+36
-25
lines changed

src/Console/LivewireCommand.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Console/ReactCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class ReactCommand extends Command
99
{
1010
protected $signature = 'cloudinary:react';
1111

12-
protected $description = 'Install the React components';
12+
protected $description = 'Install the React SDK';
1313

1414
protected $hidden = true;
1515

1616
public function handle()
1717
{
18-
$this->info('Installing Cloudinary React components...');
18+
$this->info('Installing Cloudinary React SDK...');
1919

2020
$process = new Process(['npm', 'install', '@cloudinary/react', '@cloudinary/url-gen']);
2121

@@ -24,7 +24,7 @@ public function handle()
2424
});
2525

2626
$this->line(' ');
27-
$this->info('Cloudinary React components installed successfully.');
27+
$this->info('Cloudinary React SDK installed successfully.');
2828
$this->line('Read getting started: https://cloudinary.com/documentation/react_quick_start');
2929
}
3030
}

src/Console/SvelteCommand.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace CloudinaryLabs\CloudinaryLaravel\Console;
4+
5+
use Illuminate\Console\Command;
6+
use Symfony\Component\Process\Process;
7+
8+
class SvelteCommand extends Command
9+
{
10+
protected $signature = 'cloudinary:svelte';
11+
12+
protected $description = 'Install the Svelte SDK';
13+
14+
protected $hidden = true;
15+
16+
public function handle()
17+
{
18+
$this->info('Installing Cloudinary Svelte SDK...');
19+
20+
$process = new Process(['npm', 'install', 'svelte-cloudinary']);
21+
22+
$process->run(function ($type, $line) {
23+
$this->output->write($line);
24+
});
25+
26+
$this->line(' ');
27+
$this->info('Cloudinary Svelte SDK installed successfully.');
28+
$this->line('Read getting started: https://svelte.cloudinary.dev/get-started');
29+
}
30+
}

src/Console/VueCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class VueCommand extends Command
99
{
1010
protected $signature = 'cloudinary:vue';
1111

12-
protected $description = 'Install the Vue components';
12+
protected $description = 'Install the Vue SDK';
1313

1414
protected $hidden = true;
1515

1616
public function handle()
1717
{
18-
$this->info('Installing Cloudinary Vue components...');
18+
$this->info('Installing Cloudinary Vue SDK...');
1919

2020
$process = new Process(['npm', 'install', '@cloudinary/vue', '@cloudinary/url-gen']);
2121

@@ -24,7 +24,7 @@ public function handle()
2424
});
2525

2626
$this->line(' ');
27-
$this->info('Cloudinary Vue components installed successfully.');
27+
$this->info('Cloudinary Vue SDK installed successfully.');
2828
$this->line('Read getting started: https://cloudinary.com/documentation/vue_quick_start');
2929
}
3030
}

0 commit comments

Comments
 (0)