mirror of https://github.com/AMT-Cheif/drift.git
Fix build in app example
This commit is contained in:
parent
f11d1bdd83
commit
8498cfb8d9
|
@ -33,9 +33,15 @@ targets:
|
|||
- web/worker.dart
|
||||
options:
|
||||
compiler: dart2js
|
||||
":copy_compiled_worker_js":
|
||||
enabled: true
|
||||
|
||||
# JS outputs by the build system are private, we use a `build_to: source` builder
|
||||
# afterwards to make them visible in `web/`.
|
||||
copy_js:
|
||||
auto_apply_builders: false
|
||||
dependencies: [$default]
|
||||
builders:
|
||||
":copy_compiled_worker_js":
|
||||
enabled: true
|
||||
|
||||
# build_web_compilers writes a hidden asset, but we want an asset in `web/` for
|
||||
# flutter to see. So, copy that output. Again, this is not needed for most apps.
|
||||
|
@ -45,4 +51,3 @@ builders:
|
|||
builder_factories: ["CopyCompiledJs.new"]
|
||||
build_to: source
|
||||
build_extensions: {'web/worker.dart.js': ['web/shared_worker.dart.js']}
|
||||
required_inputs: [".dart.js"]
|
|
@ -11,7 +11,7 @@ dependencies:
|
|||
flutter:
|
||||
sdk: flutter
|
||||
drift:
|
||||
drift_dev:
|
||||
drift_dev: ^2.8.1
|
||||
file_picker: ^5.2.5
|
||||
flutter_colorpicker: ^1.0.3
|
||||
flutter_riverpod: ^2.3.0
|
||||
|
@ -39,7 +39,3 @@ dev_dependencies:
|
|||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
|
||||
dependency_overrides:
|
||||
# Flutter's test packages don't support the latest analyzer yet.
|
||||
test_api: ^0.4.16
|
||||
|
|
Loading…
Reference in New Issue