forked from enm10k/nocodb-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
release:
python3 scripts/release.py
run_integration_test rit:
flutter run --dart-define-from-file=integration_test/.env -t integration_test/hello_test.dart
run_unit_test rut:
# dart test test/provider_test.dart
flutter run --dart-define-from-file=test/.env -t test/provider_test.dart
fix:
dart fix --apply lib
dart fix --apply test
dart fix --apply integration_test
dart format lib integration_test
gen:
flutter pub run build_runner watch -d -v
clean:
find . | grep -e 'freezed\.dart' -e '\.g\.dart' | xargs -I {} rm {}
apk:
flutter build apk
open build/app/outputs/flutter-apk
setup_nocodb:
./scripts/setup-nocodb-with-pg-sakila-db.sh
show_nc_db:
grep NC_DB _nocodb/docker-compose/pg/docker-compose.yml | awk '{print $$2}'
enable_db_log:
cd _nocodb/docker-compose/pg && docker-compose exec root_db bash -c 'psql -U $$POSTGRES_USER -d $$POSTGRES_DB -c "ALTER SYSTEM SET log_statement = '\''all'\'';"'
cd _nocodb/docker-compose/pg && docker-compose exec root_db bash -c 'psql -U $$POSTGRES_USER -d $$POSTGRES_DB -c "SELECT pg_reload_conf();"'
tail_db_log:
cd _nocodb/docker-compose/pg && docker-compose logs -f root_db
# open_swagger_definition:
# code nocodb/scripts/sdk/swagger.json
cloc:
cloc . --vcs=git --include-ext=dart,yaml lib
run_web:
CHROME_EXECUTABLE="./scripts/google-chrome-unsafe.sh" flutter run -d chrome