39 lines
1.1 KiB
YAML

version: 3
vars:
RED: '\033[0;31m'
GREEN: '\033[0;32m'
COLOROFF: '\033[0m'
PREFIX: "⏳"
silent: true
tasks:
logs:
desc: Show log output for running Flutter apps
aliases: [l]
cmds:
- echo -e "{{.GREEN}}{{.PREFIX}} Showing log output for running Flutter apps...{{.COLOROFF}}"
- flutter logs
dev:
desc: Run app in development environment
aliases: [d]
cmds:
- echo -e "{{.GREEN}}{{.PREFIX}} Running the app (development)...{{.COLOROFF}}"
- flutter run --target lib/main_development.dart --dart-define-from-file=config.json {{.CLI_ARGS}}
staging:
desc: Run app in staging environment
aliases: [s]
cmds:
- echo -e "{{.GREEN}}{{.PREFIX}} Running the app (staging)...{{.COLOROFF}}"
- flutter run --target lib/main_staging.dart --dart-define-from-file=config.json {{.CLI_ARGS}}
prod:
desc: Run app in production environment
aliases: [p]
cmds:
- echo -e "{{.GREEN}}{{.PREFIX}} Running the app (production)...{{.COLOROFF}}"
- flutter run --target lib/main_production.dart --dart-define-from-file=config.json {{.CLI_ARGS}}