halkyon/apps/todo/halkyon_todo_server/pubspec.yaml
Tizian 「ティツィアーン」 9643412be9
build: one workspace for every app and the packages they share
The root pubspec lists Learn's, Todo's and the shared packages, which
the apps now take by path instead of pinned commits of halkyon_shared:
one resolution, one lockfile. Learn's versions stay as they were; Todo
moves to Serverpod 4.0.4 and Dart 3.13 with the rest (its generated code
unchanged), drops google_fonts, which it never used, and a template
line Dart 3.13 refuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-22 18:11:03 +02:00

64 lines
2 KiB
YAML

name: halkyon_todo_server
description: Starting point for a Serverpod server.
# version: 1.0.0
# homepage: https://www.example.com
environment:
sdk: '^3.13.0'
resolution: workspace
dependencies:
serverpod: 4.0.4
serverpod_auth_idp_server: 4.0.4
serverpod_cloud_storage: 4.0.4
dev_dependencies:
lints: '>=3.0.0 <7.0.0'
serverpod_test: 4.0.4
test: ^1.25.5
serverpod:
scripts:
# Build the Flutter web app and copy it to the server's web directory.
# Windows uses xcopy since flutter's --output flag doesn't work there.
# See: https://github.com/flutter/flutter/issues/157886
# On failure, clean and retry once to clear stale Flutter build caches.
flutter_build:
windows: >-
(if exist web\app rmdir /S /Q web\app)
& cd /D ..\halkyon_todo_flutter
& set ARGS=web --base-href /
&& (call flutter build %ARGS% || (flutter clean && call flutter build %ARGS%))
&& xcopy /E /I /Y build\web ..\halkyon_todo_server\web\app
posix: |
rm -rf ../halkyon_todo_server/web/app
cd ../halkyon_todo_flutter
set -- web --base-href / --output ../halkyon_todo_server/web/app
flutter build "$@" || { flutter clean && flutter build "$@"; }
# Companion Flutter apps that `serverpod start` can launch (Ctrl+R), keyed
# by a display alias. The default device is the web server, opening the
# machine's default browser when ready. All non-reserved properties are
# forwarded to `flutter run`. For the best IDE debugging experience, use
# `chrome` or a native target as the device. See the example below:
#
# Admin:
# path: ../apps/admin_flutter
# displayName: "Admin app"
# auto_launch: true
# device: chrome
# target: lib/main.dart
# web-hostname: 0.0.0.0
# web-port: 8090
# release: true
# pub: false
# dart-define:
# API_URL=https://admin.example.com
# FLAVOR=production
flutter_apps:
halkyon_todo:
path: ../halkyon_todo_flutter
displayName: "Halkyon todo app"
auto_launch: true
target: lib/driver.dart