-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnalog.php
More file actions
44 lines (37 loc) · 916 Bytes
/
Analog.php
File metadata and controls
44 lines (37 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace Utopia\Detector\Detection\Framework;
use Utopia\Detector\Detection\Framework;
class Analog extends Framework
{
public function getName(): string
{
return 'analog';
}
/**
* @return array<string>
*/
public function getFiles(): array
{
return ['vite.config.js', 'vite.config.ts', 'angular.json'];
}
public function getInstallCommand(): string
{
return match ($this->packager) {
'yarn' => 'yarn install',
'pnpm' => 'pnpm install',
default => 'npm install',
};
}
public function getBuildCommand(): string
{
return match ($this->packager) {
'yarn' => 'yarn build',
'pnpm' => 'pnpm build',
default => 'npm run build',
};
}
public function getOutputDirectory(): string
{
return './dist/analog';
}
}