Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit c2f15f4

Browse files
Don't use depricated constructor
1 parent 24ebd9f commit c2f15f4

File tree

18 files changed

+14020
-1015
lines changed

18 files changed

+14020
-1015
lines changed

scripts/Regenerate-JSFiles.ps1

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[cmdletbinding(SupportsShouldProcess = $true)]
2+
param(
3+
)
4+
5+
$ErrorActionPreference = 'Stop'
6+
Set-StrictMode -Version 2
7+
8+
Push-Location "src"
9+
try {
10+
$dirs = Get-ChildItem -Directory
11+
foreach($dir in $dirs)
12+
{
13+
Push-Location $dir
14+
try{
15+
if(Test-Path -Path "package.json")
16+
{
17+
npm install
18+
npm run build
19+
}
20+
}
21+
finally{
22+
Pop-Location
23+
}
24+
}
25+
}
26+
finally {
27+
Pop-Location
28+
}

0 commit comments

Comments
 (0)