docs: add examples

This commit is contained in:
Chen Asraf
2022-08-07 13:45:43 +03:00
parent b83df51d37
commit 631c38e914
3 changed files with 28 additions and 0 deletions

4
example/example.md Normal file
View File

@@ -0,0 +1,4 @@
# Config examples
- [Example for config as pubspec.yaml](pubspec.example.yaml)
- [Example for config as script_runner.yaml](script_runner.example.yaml)

View File

@@ -0,0 +1,12 @@
# add a config to your pubspec.yaml
script_runner:
shell: /bin/zsh
scripts:
- test: dart test
- lint-fix: dart fix --apply
- name: build:apk
cmd: flutter build apk
- name: build:ipa
cmd: flutter build ipa
- name: build:all
cmd: build:apk && build:ipa

View File

@@ -0,0 +1,12 @@
# add a config in the script_runner.yaml
# note! there is no `script_runner` key at the root here:
shell: /bin/zsh
scripts:
- test: dart test
- lint-fix: dart fix --apply
- name: build:apk
cmd: flutter build apk
- name: build:ipa
cmd: flutter build ipa
- name: build:all
cmd: build:apk && build:ipa