added webpack, begin migration from js to ts
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user