halkyon/apps/todo/halkyon_todo_server/pubspec.yaml

64 lines
2 KiB
YAML
Raw Normal View History

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