-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Define the paths | ||
$snClientPath = "C:\Users\kovacsn\Desktop\SenseNet\sn-client" | ||
$sensenetAppPath = "C:\Users\kovacsn\Desktop\SenseNet\sn-client\apps\sensenet" | ||
$desktopPath = "C:\Users\kovacsn\Desktop" | ||
|
||
# Navigate to the sn-client directory and run yarn build | ||
Write-Host "Navigating to $snClientPath and running yarn build..." | ||
Set-Location -Path $snClientPath | ||
yarn build | ||
|
||
# Check if the build succeeded | ||
if ($LASTEXITCODE -ne 0) { | ||
Write-Host "yarn build failed." | ||
exit $LASTEXITCODE | ||
} | ||
|
||
# Navigate to the sensenet app directory and run npm start | ||
Write-Host "Navigating to $sensenetAppPath and running npm start..." | ||
Set-Location -Path $sensenetAppPath | ||
npm start | ||
|
||
# Check the exit code of npm start | ||
if ($LASTEXITCODE -ne 0) { | ||
Write-Host "npm start failed." | ||
exit $LASTEXITCODE | ||
} | ||
|
||
# Navigate back to the desktop | ||
Write-Host "Navigating back to $desktopPath..." | ||
Set-Location -Path $desktopPath | ||
Write-Host "Script completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters