mirror of
https://github.com/chenasraf/dart_script_runner.git
synced 2026-05-18 01:49:04 +00:00
docs: add examples
This commit is contained in:
4
example/example.md
Normal file
4
example/example.md
Normal 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)
|
||||
12
example/pubspec.example.yaml
Normal file
12
example/pubspec.example.yaml
Normal 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
|
||||
12
example/script_runner.example.yaml
Normal file
12
example/script_runner.example.yaml
Normal 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
|
||||
Reference in New Issue
Block a user