added webpack, begin migration from js to ts

This commit is contained in:
hydrant
2019-03-11 16:37:22 +01:00
parent f6fac52b3d
commit 715cf3c1e6
26 changed files with 4405 additions and 374 deletions

View File

@@ -1,22 +1,22 @@
$rootPath = "$PSScriptRoot\.."
#$rootPath = "$PSScriptRoot\.."
$assetPath = "$rootPath\assets"
$csPackagesPath = "$rootPath\cs_packages"
$dlcPacksPath = "$rootPath\dlcpacks"
#$assetPath = "$rootPath\assets"
#$csPackagesPath = "$rootPath\cs_packages"
#$dlcPacksPath = "$rootPath\dlcpacks"
$clientResourcesPath = "$rootPath\..\..\client_packages"
$sourceDlcPacksPath = "$rootPath\..\..\source_dlcpacks"
#$clientResourcesPath = "$rootPath\..\..\client_packages"
#$sourceDlcPacksPath = "$rootPath\..\..\source_dlcpacks"
Remove-Item -Path "$clientResourcesPath\*" -Recurse -Force
#Remove-Item -Path "$clientResourcesPath\*" -Recurse -Force
$exclude = @('*.ts', 'package.json', 'package-lock.json', 'tsconfig.json', '*.csproj', 'Scripts', 'node_modules', 'bin', 'obj', 'dlcpacks')
#$exclude = @('*.ts', 'package.json', 'package-lock.json', 'tsconfig.json', '*.csproj', 'Scripts', 'node_modules', 'bin', 'obj', 'dlcpacks')
if(!(Test-Path $sourceDlcPacksPath))
{
New-Item -Type Directory $sourceDlcPacksPath
}
#if(!(Test-Path $sourceDlcPacksPath))
#{
# New-Item -Type Directory $sourceDlcPacksPath
#}
Remove-Item -Path "$sourceDlcPacksPath\*" -Recurse -Force
#Remove-Item -Path "$sourceDlcPacksPath\*" -Recurse -Force
Copy-Item "$rootPath\*" $clientResourcesPath -Recurse -Exclude $exclude
Copy-Item "$dlcPacksPath\*" $sourceDlcPacksPath -Recurse -Force
#Copy-Item "$rootPath\*" $clientResourcesPath -Recurse -Exclude $exclude
#Copy-Item "$dlcPacksPath\*" $sourceDlcPacksPath -Recurse -Force