2021-10-25 03:07:10 -07:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2022-06-27 23:58:48 -07:00
|
|
|
|
|
|
|
function generate() {
|
|
|
|
echo "------------- Generate: $1 -------------"
|
|
|
|
pushd $1 > /dev/null
|
2022-06-28 14:05:22 -07:00
|
|
|
dart pub upgrade
|
2022-06-27 23:58:48 -07:00
|
|
|
dart run build_runner build --delete-conflicting-outputs
|
|
|
|
popd > /dev/null
|
|
|
|
}
|
|
|
|
|
2022-06-28 14:05:22 -07:00
|
|
|
cd "$(dirname "$0")/.."
|
2022-06-27 23:58:48 -07:00
|
|
|
generate 'drift'
|
|
|
|
generate 'drift_dev'
|
|
|
|
generate 'docs'
|
|
|
|
generate 'extras/benchmarks'
|
|
|
|
generate 'extras/integration_tests/drift_testcases'
|
|
|
|
generate 'extras/integration_tests/web'
|
|
|
|
generate 'examples/app'
|
|
|
|
generate 'examples/flutter_web_worker_example'
|
|
|
|
generate 'examples/migrations_example'
|
|
|
|
generate 'examples/web_worker_example'
|
|
|
|
generate 'examples/with_built_value'
|