40 lines
1.3 KiB
YAML

version: 3
vars:
RED: '\033[0;31m'
GREEN: '\033[0;32m'
COLOROFF: '\033[0m'
PREFIX: "⏳"
silent: true
tasks:
get:
desc: Getting latest dependencies
aliases: [g]
cmds:
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Getting latest dependencies...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
- flutter pub get
upgrade:
desc: Upgrading dependencies
aliases: [u]
cmds:
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Upgrading dependencies...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
- flutter pub upgrade
upgrade-major:
desc: Upgrading dependencies
aliases: [um]
cmds:
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Upgrading dependencies --major-versions...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
- flutter pub upgrade --major-versions
outdated:
desc: Checking for outdated dependencies
deps: [upgrade]
aliases: [o]
cmds:
- echo -e "{{#mustacheCase}}.GREEN{{/mustacheCase}}{{#mustacheCase}}.PREFIX{{/mustacheCase}} Checking for outdated dependencies...{{#mustacheCase}}.COLOROFF{{/mustacheCase}}"
- flutter pub upgrade