forked from chocolatey/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
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 chocolatey#985 from st3phhays/testing-and-development
(chocolatey#983) Simplify local development of choco-theme
- Loading branch information
Showing
5 changed files
with
29 additions
and
10 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
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,7 +1,13 @@ | ||
param( | ||
[Parameter(Position = 0)] | ||
[int] | ||
$Port = 5080 | ||
) | ||
|
||
try { | ||
Push-Location $PSScriptRoot | ||
dotnet tool restore | ||
dotnet cake | ||
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 | ||
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