This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicon.build.ps1
77 lines (61 loc) · 2.7 KB
/
icon.build.ps1
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
task MaterialDesign {
$OutputPath = "$PSScriptRoot\MaterialDesign\output\Universal.Icons.MaterialDesign"
Remove-Item -Path $OutputPath -Force -ErrorAction SilentlyContinue -Recurse
Remove-Item -Path "$PSScriptRoot\MaterialDesign\public" -Force -ErrorAction SilentlyContinue -Recurse
Set-Location "$PSScriptRoot\MaterialDesign"
& {
$ErrorActionPreference = 'SilentlyContinue'
npm install
npm run build
}
New-Item -Path $OutputPath -ItemType Directory
Copy-Item $PSScriptRoot\MaterialDesign\public\*.* $OutputPath
Copy-Item $PSScriptRoot\MaterialDesign\Universal.*.psd1 $OutputPath
Copy-Item $PSScriptRoot\MaterialDesign\Universal.*.psm1 $OutputPath
}
task Feather {
$OutputPath = "$PSScriptRoot\Feather\output\Universal.Icons.Feather"
Remove-Item -Path $OutputPath -Force -ErrorAction SilentlyContinue -Recurse
Remove-Item -Path "$PSScriptRoot\Feather\public" -Force -ErrorAction SilentlyContinue -Recurse
Set-Location "$PSScriptRoot\Feather"
& {
$ErrorActionPreference = 'SilentlyContinue'
npm install
npm run build
}
New-Item -Path $OutputPath -ItemType Directory
Copy-Item $PSScriptRoot\Feather\public\*.* $OutputPath
Copy-Item $PSScriptRoot\Feather\Universal.*.psd1 $OutputPath
Copy-Item $PSScriptRoot\Feather\Universal.*.psm1 $OutputPath
}
task Bootstrap {
$OutputPath = "$PSScriptRoot\Bootstrap\output\Universal.Icons.Bootstrap"
Remove-Item -Path $OutputPath -Force -ErrorAction SilentlyContinue -Recurse
Remove-Item -Path "$PSScriptRoot\Bootstrap\public" -Force -ErrorAction SilentlyContinue -Recurse
Set-Location "$PSScriptRoot\Bootstrap"
& {
$ErrorActionPreference = 'SilentlyContinue'
npm install
npm run build
}
New-Item -Path $OutputPath -ItemType Directory
Copy-Item $PSScriptRoot\Bootstrap\public\*.* $OutputPath
Copy-Item $PSScriptRoot\Bootstrap\Universal.*.psd1 $OutputPath
Copy-Item $PSScriptRoot\Bootstrap\Universal.*.psm1 $OutputPath
}
task Tabler {
$OutputPath = "$PSScriptRoot\Tabler\output\Universal.Icons.Tabler"
Remove-Item -Path $OutputPath -Force -ErrorAction SilentlyContinue -Recurse
Remove-Item -Path "$PSScriptRoot\Tabler\public" -Force -ErrorAction SilentlyContinue -Recurse
Set-Location "$PSScriptRoot\Tabler"
& {
$ErrorActionPreference = 'SilentlyContinue'
npm install
npm run build
}
New-Item -Path $OutputPath -ItemType Directory
Copy-Item $PSScriptRoot\Tabler\public\*.* $OutputPath
Copy-Item $PSScriptRoot\Tabler\Universal.*.psd1 $OutputPath
Copy-Item $PSScriptRoot\Tabler\Universal.*.psm1 $OutputPath
}
task . MaterialDesign, Feather, Bootstrap, Tabler