Skip to content

Commit

Permalink
setup a taskfile for the paratext extension to run the build steps re…
Browse files Browse the repository at this point in the history
…quired before starting paratext
  • Loading branch information
hahn-kev committed Nov 6, 2024
1 parent 1277445 commit 5fa2dac
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 115 deletions.
2 changes: 1 addition & 1 deletion backend/FwLite/LocalWebApp/LocalWebAppServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class LocalWebAppServer
public static WebApplication SetupAppServer(WebApplicationOptions options, Action<WebApplicationBuilder>? configure = null)
{
var builder = WebApplication.CreateBuilder(options);
if (!builder.Environment.IsDevelopment())
if (!builder.Environment.IsDevelopment() && options.Args?.Contains("--urls") != true)
builder.WebHost.UseUrls("http://127.0.0.1:0");
if (builder.Environment.IsDevelopment())
{
Expand Down
1 change: 1 addition & 0 deletions frontend/platform.bible-extension/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ dist-ssr

# Temporary intermediate build files
temp-build
public/fw-lite
24 changes: 24 additions & 0 deletions frontend/platform.bible-extension/Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 3
output: prefixed

tasks:
install:
method: checksum
sources:
- package.json
- package-lock.json
cmds:
# platform.bible does not support pnpm
- npm install

run:
deps: [ build-local-web-app, build-viewer-component ]
cmds:
- npm run start

build-local-web-app:
cmds:
- dotnet publish ../../backend/FwLite/LocalWebApp/LocalWebApp.csproj --configuration Release --sc --p:PublishSingleFile=true --output ./public/fw-lite
build-viewer-component:
dir: ../viewer
cmd: pnpm run build
Loading

0 comments on commit 5fa2dac

Please sign in to comment.