create-your-stack 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,8 +37,12 @@ while [[ $# -gt 0 ]]; do
37
37
  done
38
38
 
39
39
  if [[ -z "$PROJECT_NAME" ]]; then
40
- echo " Please provide a project name."
41
- echo "Usage: create-your-stack my-new-app [--dry-run] [--no-clerk] [--no-convex] [--no-uniwind]"
40
+ printf "Enter your project name: "
41
+ read PROJECT_NAME
42
+ fi
43
+
44
+ if [[ -z "$PROJECT_NAME" ]]; then
45
+ echo "❗ Project name cannot be empty."
42
46
  exit 1
43
47
  fi
44
48
 
@@ -64,26 +68,31 @@ else
64
68
  echo "[DRY RUN] cd \"$PROJECT_NAME\""
65
69
  fi
66
70
 
67
- echo "📦 Installing Core Dependencies..."
71
+ echo "📦 Installing Dependencies..."
68
72
 
69
- run "bun add expo-router expo-constants"
73
+ DEPS="expo-router expo-constants safe-area-context zustand react-native-mmkv date-fns date-fns-tz zod react-hook-form @hookform/resolvers"
74
+ DEV_DEPS=""
70
75
 
71
76
  if [[ "$USE_CLERK" == "true" ]]; then
72
- run "bun add @clerk/clerk-expo expo-secure-store"
77
+ DEPS="$DEPS @clerk/clerk-expo expo-secure-store"
73
78
  fi
74
79
 
75
80
  if [[ "$USE_CONVEX" == "true" ]]; then
76
- run "bun add convex"
77
- run "bun add -D convex-helpers"
81
+ DEPS="$DEPS convex"
82
+ DEV_DEPS="$DEV_DEPS convex-helpers"
78
83
  fi
79
84
 
80
- run "bun add zustand react-native-mmkv"
81
-
82
85
  if [[ "$USE_UNIWIND" == "true" ]]; then
83
- run "bun add uniwind tailwindcss clsx tailwind-merge lucide-react-native react-native-reanimated @gorhom/bottom-sheet react-native-gesture-handler reanimated-color-picker"
86
+ DEPS="$DEPS uniwind tailwindcss clsx tailwind-merge lucide-react-native react-native-reanimated @gorhom/bottom-sheet react-native-gesture-handler reanimated-color-picker"
84
87
  fi
85
88
 
86
- run "bun add date-fns date-fns-tz zod react-hook-form @hookform/resolvers"
89
+ echo "Installing main dependencies..."
90
+ run "bun add $DEPS"
91
+
92
+ if [[ -n "$DEV_DEPS" ]]; then
93
+ echo "Installing dev dependencies..."
94
+ run "bun add -D $DEV_DEPS"
95
+ fi
87
96
 
88
97
  echo "📂 Creating directories..."
89
98
  run "mkdir -p lib stores components providers"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-your-stack",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {