Changed whole project structure (split client and server into separat projects)
This commit is contained in:
12
ReallifeGamemode.Client/Scripts/buildScripts.ps1
Normal file
12
ReallifeGamemode.Client/Scripts/buildScripts.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
$rootPath = "$PSScriptRoot\.."
|
||||
|
||||
$tsConfig = "$rootPath\tsconfig.json"
|
||||
|
||||
$outputPath = "$rootPath\js_output"
|
||||
|
||||
if(Test-Path $outputPath)
|
||||
{
|
||||
Remove-Item -Path $outputPath -Recurse -Force | Out-Null
|
||||
}
|
||||
|
||||
tsc -p $tsConfig
|
||||
13
ReallifeGamemode.Client/Scripts/moveItems.ps1
Normal file
13
ReallifeGamemode.Client/Scripts/moveItems.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
$rootPath = "$PSScriptRoot\.."
|
||||
|
||||
$assetPath = "$rootPath\assets"
|
||||
$csPackagesPath = "$rootPath\cs_packages"
|
||||
$dlcPacksPath = "$rootPath\dlcpacks"
|
||||
|
||||
$clientResourcesPath = "$rootPath\..\..\client_packages"
|
||||
|
||||
Remove-Item -Path "$clientResourcesPath\*" -Recurse -Force
|
||||
|
||||
$exclude = @('*.ts', 'package.json', 'package-lock.json', 'tsconfig.json', '*.csproj', 'Scripts', 'node_modules', 'bin', 'obj')
|
||||
|
||||
Copy-Item "$rootPath\*" $clientResourcesPath -Recurse -Exclude $exclude
|
||||
Reference in New Issue
Block a user