mirror of https://github.com/AMT-Cheif/drift.git
Fix docs build script
This commit is contained in:
parent
48041512cb
commit
d1d7900cd8
|
@ -20,7 +20,7 @@ jobs:
|
|||
|
||||
- name: Analyze Dart sources
|
||||
working-directory: docs
|
||||
run: >
|
||||
run: >-
|
||||
dart analyze --fatal-infos --fatal-warnings
|
||||
dart run drift_dev analyze
|
||||
|
||||
|
|
|
@ -4,17 +4,31 @@ builders:
|
|||
build_to: cache
|
||||
builder_factories: ["writeVersions"]
|
||||
build_extensions: {"$package$": ["lib/versions.json"]}
|
||||
code_snippets:
|
||||
import: 'tool/snippets.dart'
|
||||
build_to: cache
|
||||
builder_factories: ["SnippetsBuilder.new"]
|
||||
build_extensions: {"": [".excerpt.json"]}
|
||||
auto_apply: none
|
||||
|
||||
targets:
|
||||
prepare:
|
||||
builders:
|
||||
"|versions":
|
||||
enabled: true
|
||||
"|code_snippets":
|
||||
enabled: true
|
||||
generate_for:
|
||||
- "lib/snippets/**/*.dart"
|
||||
- "lib/snippets/*/*.drift"
|
||||
- "lib/snippets/*.dart"
|
||||
auto_apply_builders: false
|
||||
sources:
|
||||
- "$package$"
|
||||
- "lib/versions.json"
|
||||
- "lib/snippets/**"
|
||||
- "tool/write_versions.dart"
|
||||
- "tool/snippets.dart"
|
||||
|
||||
$default:
|
||||
dependencies: [":prepare"]
|
||||
|
|
Loading…
Reference in New Issue