-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from st3phhays/testing-and-development
(#79) Simplify local development of choco-theme
- Loading branch information
Showing
4 changed files
with
28 additions
and
11 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
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
param( | ||
[Parameter(Position = 0)] | ||
[int] | ||
$Port = 5080 | ||
) | ||
|
||
try { | ||
Push-Location $PSScriptRoot | ||
dotnet tool restore | ||
dotnet cake recipe.cake | ||
} | ||
finally { | ||
dotnet cake --port $Port | ||
} finally { | ||
Pop-Location | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# Default port | ||
DEFAULT_PORT=5080 | ||
|
||
# Check if the first argument is present | ||
if [ $# -ge 1 ]; then | ||
# Use the first argument as the port | ||
PORT="$1" | ||
else | ||
# Use the default port if no argument is provided | ||
PORT="$DEFAULT_PORT" | ||
fi | ||
|
||
dotnet tool restore | ||
dotnet cake recipe.cake | ||
dotnet cake --port="$PORT" |
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