Initialize tdc114plus project docs
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
APP_DIR="$ROOT_DIR/app"
|
||||
|
||||
if ! command -v flutter >/dev/null 2>&1; then
|
||||
echo "flutter command not found. Install Flutter SDK before running bootstrap." >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
if [ ! -d "$APP_DIR" ]; then
|
||||
echo "app directory does not exist. Run ./scripts/create-flutter-app.sh first." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$APP_DIR"
|
||||
flutter pub get
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
APP_DIR="$ROOT_DIR/app"
|
||||
|
||||
if ! command -v flutter >/dev/null 2>&1; then
|
||||
echo "flutter command not found. Install Flutter SDK before creating the app skeleton." >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
if [ -d "$APP_DIR" ]; then
|
||||
echo "app directory already exists: $APP_DIR" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
flutter create \
|
||||
--platforms=android,ios \
|
||||
--org kr.co.baron \
|
||||
--project-name tdc114plus \
|
||||
"$APP_DIR"
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
APP_DIR="$ROOT_DIR/app"
|
||||
|
||||
if ! command -v flutter >/dev/null 2>&1; then
|
||||
echo "flutter command not found. Install Flutter SDK before running tests." >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
cd "$APP_DIR"
|
||||
flutter analyze
|
||||
flutter test
|
||||
Reference in New Issue
Block a user