Skip to content

Commit

Permalink
Merge pull request #80 from st3phhays/testing-and-development
Browse files Browse the repository at this point in the history
(#79) Simplify local development of choco-theme
  • Loading branch information
vexx32 committed May 10, 2024
2 parents aa07984 + 131cb67 commit b504a69
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"choco-theme": "yarn dlx --quiet ts-node --skipIgnore node_modules/choco-theme/build/choco-theme.ts --repository=boxstarter"
},
"devDependencies": {
"choco-theme": "0.6.0"
"choco-theme": "0.7.0"
}
}
13 changes: 9 additions & 4 deletions preview.ps1
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
}
}
14 changes: 13 additions & 1 deletion preview.sh
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"
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "boxstarter.org@workspace:."
dependencies:
choco-theme: "npm:0.6.0"
choco-theme: "npm:0.7.0"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -1560,9 +1560,9 @@ __metadata:
languageName: node
linkType: hard

"choco-theme@npm:0.6.0":
version: 0.6.0
resolution: "choco-theme@npm:0.6.0"
"choco-theme@npm:0.7.0":
version: 0.7.0
resolution: "choco-theme@npm:0.7.0"
dependencies:
"@fortawesome/fontawesome-free": "npm:^6.1.2"
"@playwright/test": "npm:1.35.1"
Expand Down Expand Up @@ -1601,7 +1601,7 @@ __metadata:
stylelint-config-twbs-bootstrap: "npm:^14.0.0"
ts-node: "npm:^10.9.2"
typescript: "npm:^5.4.2"
checksum: 10c0/c445671fe4cf0aeaa0211b1fcf538941e30cae6bcc6848600b361404a2af9cc41b6442e62cd401628d525b121f01dc9e62d85e0deb2c7b4e325a48b40a102af8
checksum: 10c0/3e3e344860c6c3d55477525f63703826affb22359af4866deaf7292578d8c4ad398233031c63bb126094425e0d90e5481f58d78cb6abf3a5f0ce3923b924090c
languageName: node
linkType: hard

Expand Down

0 comments on commit b504a69

Please sign in to comment.