create-better-t-stack 2.44.0 → 2.45.1
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.
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +1 -1
- package/dist/{src-CwLBNdNq.js → src-D36yrEH0.js} +21 -28
- package/package.json +1 -1
- package/templates/auth/better-auth/native/native-base/lib/auth-client.ts.hbs +3 -2
- package/templates/auth/better-auth/server/base/src/lib/auth.ts.hbs +5 -5
- package/templates/backend/server/next/package.json.hbs +3 -3
- package/templates/db/prisma/postgres/src/db/index.ts.hbs +5 -0
- package/templates/frontend/native/native-base/assets/images/android-icon-background.png +0 -0
- package/templates/frontend/native/native-base/assets/images/android-icon-foreground.png +0 -0
- package/templates/frontend/native/native-base/assets/images/android-icon-monochrome.png +0 -0
- package/templates/frontend/native/native-base/assets/images/favicon.png +0 -0
- package/templates/frontend/native/native-base/assets/images/icon.png +0 -0
- package/templates/frontend/native/native-base/assets/images/partial-react-logo.png +0 -0
- package/templates/frontend/native/native-base/assets/images/react-logo.png +0 -0
- package/templates/frontend/native/native-base/assets/images/react-logo@2x.png +0 -0
- package/templates/frontend/native/native-base/assets/images/react-logo@3x.png +0 -0
- package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{_layout.tsx → _layout.tsx.hbs} +3 -3
- package/templates/frontend/native/nativewind/app/{+not-found.tsx → +not-found.tsx.hbs} +1 -1
- package/templates/frontend/native/nativewind/app.json.hbs +49 -0
- package/templates/frontend/native/nativewind/babel.config.js.hbs +14 -0
- package/templates/frontend/native/nativewind/components/{container.tsx → container.tsx.hbs} +1 -1
- package/templates/frontend/native/nativewind/components/{header-button.tsx → header-button.tsx.hbs} +1 -1
- package/templates/frontend/native/{unistyles/components/tabbar-icon.tsx → nativewind/components/tabbar-icon.tsx.hbs} +1 -1
- package/templates/frontend/native/nativewind/metro.config.js.hbs +31 -0
- package/templates/frontend/native/nativewind/package.json.hbs +23 -21
- package/templates/frontend/native/nativewind/tailwind.config.js.hbs +59 -0
- package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{_layout.tsx → _layout.tsx.hbs} +3 -3
- package/templates/frontend/native/unistyles/app/(drawer)/index.tsx.hbs +1 -3
- package/templates/frontend/native/unistyles/app/{+not-found.tsx → +not-found.tsx.hbs} +2 -2
- package/templates/frontend/native/unistyles/app/_layout.tsx.hbs +2 -2
- package/templates/frontend/native/unistyles/app.json.hbs +49 -0
- package/templates/frontend/native/unistyles/babel.config.js.hbs +21 -0
- package/templates/frontend/native/unistyles/components/{container.tsx → container.tsx.hbs} +1 -1
- package/templates/frontend/native/unistyles/components/{header-button.tsx → header-button.tsx.hbs} +1 -1
- package/templates/frontend/native/{nativewind/components/tabbar-icon.tsx → unistyles/components/tabbar-icon.tsx.hbs} +1 -1
- package/templates/frontend/native/unistyles/metro.config.js.hbs +5 -0
- package/templates/frontend/native/unistyles/package.json.hbs +29 -28
- package/templates/frontend/native/unistyles/theme.ts.hbs +98 -0
- package/templates/frontend/react/next/package.json.hbs +3 -3
- package/templates/frontend/react/react-router/package.json.hbs +3 -3
- package/templates/frontend/react/tanstack-router/package.json.hbs +3 -3
- package/templates/frontend/react/tanstack-start/package.json.hbs +3 -3
- package/templates/frontend/native/native-base/assets/favicon.png +0 -0
- package/templates/frontend/native/native-base/assets/icon.png +0 -0
- package/templates/frontend/native/native-base/assets/splash.png +0 -0
- package/templates/frontend/native/nativewind/app/+html.tsx +0 -47
- package/templates/frontend/native/nativewind/app-env.d.ts +0 -2
- package/templates/frontend/native/nativewind/app.json +0 -46
- package/templates/frontend/native/nativewind/babel.config.js +0 -11
- package/templates/frontend/native/nativewind/metro.config.js +0 -59
- package/templates/frontend/native/nativewind/tailwind.config.js +0 -59
- package/templates/frontend/native/unistyles/app/+html.tsx +0 -48
- package/templates/frontend/native/unistyles/app.json +0 -44
- package/templates/frontend/native/unistyles/babel.config.js +0 -21
- package/templates/frontend/native/unistyles/expo-env.d.ts +0 -3
- package/templates/frontend/native/unistyles/metro.config.js +0 -20
- package/templates/frontend/native/unistyles/theme.ts +0 -98
- /package/templates/frontend/native/native-base/assets/{adaptive-icon.png → images/splash-icon.png} +0 -0
- /package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{index.tsx → index.tsx.hbs} +0 -0
- /package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{two.tsx → two.tsx.hbs} +0 -0
- /package/templates/frontend/native/nativewind/app/{modal.tsx → modal.tsx.hbs} +0 -0
- /package/templates/frontend/native/nativewind/lib/{android-navigation-bar.tsx → android-navigation-bar.tsx.hbs} +0 -0
- /package/templates/frontend/native/nativewind/lib/{constants.ts → constants.ts.hbs} +0 -0
- /package/templates/frontend/native/nativewind/lib/{use-color-scheme.ts → use-color-scheme.ts.hbs} +0 -0
- /package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{index.tsx → index.tsx.hbs} +0 -0
- /package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{two.tsx → two.tsx.hbs} +0 -0
- /package/templates/frontend/native/unistyles/app/{modal.tsx → modal.tsx.hbs} +0 -0
- /package/templates/frontend/native/unistyles/{breakpoints.ts → breakpoints.ts.hbs} +0 -0
- /package/templates/frontend/native/unistyles/{index.js → index.js.hbs} +0 -0
- /package/templates/frontend/native/unistyles/{unistyles.ts → unistyles.ts.hbs} +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"expo": {
|
|
3
|
-
"name": "my-better-t-app",
|
|
4
|
-
"slug": "my-better-t-app",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"newArchEnabled": true,
|
|
7
|
-
"scheme": "my-better-t-app",
|
|
8
|
-
"web": {
|
|
9
|
-
"bundler": "metro",
|
|
10
|
-
"output": "static",
|
|
11
|
-
"favicon": "./assets/favicon.png"
|
|
12
|
-
},
|
|
13
|
-
"plugins": [
|
|
14
|
-
"expo-router",
|
|
15
|
-
"react-native-edge-to-edge",
|
|
16
|
-
"expo-secure-store"
|
|
17
|
-
],
|
|
18
|
-
"experiments": {
|
|
19
|
-
"typedRoutes": true,
|
|
20
|
-
"tsconfigPaths": true,
|
|
21
|
-
"reactCompiler": true
|
|
22
|
-
},
|
|
23
|
-
"orientation": "portrait",
|
|
24
|
-
"icon": "./assets/icon.png",
|
|
25
|
-
"userInterfaceStyle": "automatic",
|
|
26
|
-
"splash": {
|
|
27
|
-
"image": "./assets/splash.png",
|
|
28
|
-
"resizeMode": "contain",
|
|
29
|
-
"backgroundColor": "#ffffff"
|
|
30
|
-
},
|
|
31
|
-
"assetBundlePatterns": ["**/*"],
|
|
32
|
-
"ios": {
|
|
33
|
-
"supportsTablet": true,
|
|
34
|
-
"bundleIdentifier": "com.amanvarshney01.mybettertapp"
|
|
35
|
-
},
|
|
36
|
-
"android": {
|
|
37
|
-
"adaptiveIcon": {
|
|
38
|
-
"foregroundImage": "./assets/adaptive-icon.png",
|
|
39
|
-
"backgroundColor": "#ffffff"
|
|
40
|
-
},
|
|
41
|
-
"package": "com.amanvarshney01.mybettertapp"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
module.exports = function (api) {
|
|
2
|
-
api.cache(true);
|
|
3
|
-
const plugins = [];
|
|
4
|
-
|
|
5
|
-
plugins.push([
|
|
6
|
-
'react-native-unistyles/plugin',
|
|
7
|
-
{
|
|
8
|
-
root: "src",
|
|
9
|
-
autoProcessRoot: 'app',
|
|
10
|
-
autoProcessImports: ['@/components']
|
|
11
|
-
},
|
|
12
|
-
]);
|
|
13
|
-
|
|
14
|
-
plugins.push('react-native-reanimated/plugin');
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
presets: ['babel-preset-expo'],
|
|
18
|
-
|
|
19
|
-
plugins,
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// Learn more https://docs.expo.io/guides/customizing-metro
|
|
2
|
-
const { getDefaultConfig } = require("expo/metro-config");
|
|
3
|
-
const path = require("path");
|
|
4
|
-
|
|
5
|
-
const workspaceRoot = path.resolve(__dirname, "../..");
|
|
6
|
-
const projectRoot = __dirname;
|
|
7
|
-
|
|
8
|
-
const config = getDefaultConfig(projectRoot);
|
|
9
|
-
|
|
10
|
-
// 1. Watch all files within the monorepo
|
|
11
|
-
config.watchFolders = [workspaceRoot];
|
|
12
|
-
// 2. Let Metro know where to resolve packages, and in what order
|
|
13
|
-
config.resolver.nodeModulesPaths = [
|
|
14
|
-
path.resolve(projectRoot, "node_modules"),
|
|
15
|
-
path.resolve(workspaceRoot, "node_modules"),
|
|
16
|
-
];
|
|
17
|
-
// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
|
|
18
|
-
config.resolver.disableHierarchicalLookup = true;
|
|
19
|
-
|
|
20
|
-
module.exports = config;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
const sharedColors = {
|
|
2
|
-
success: "#22C55E",
|
|
3
|
-
destructive: "#EF4444",
|
|
4
|
-
warning: "#F59E0B",
|
|
5
|
-
info: "#3B82F6",
|
|
6
|
-
} as const;
|
|
7
|
-
|
|
8
|
-
export const lightTheme = {
|
|
9
|
-
colors: {
|
|
10
|
-
...sharedColors,
|
|
11
|
-
typography: "hsl(222.2 84% 4.9%)",
|
|
12
|
-
background: "hsl(0 0% 100%)",
|
|
13
|
-
foreground: "hsl(222.2 84% 4.9%)",
|
|
14
|
-
card: "hsl(0 0% 100%)",
|
|
15
|
-
cardForeground: "hsl(222.2 84% 4.9%)",
|
|
16
|
-
primary: "hsl(221.2 83.2% 53.3%)",
|
|
17
|
-
primaryForeground: "hsl(210 40% 98%)",
|
|
18
|
-
secondary: "hsl(210 40% 96%)",
|
|
19
|
-
secondaryForeground: "hsl(222.2 84% 4.9%)",
|
|
20
|
-
muted: "hsl(210 40% 96%)",
|
|
21
|
-
mutedForeground: "hsl(215.4 16.3% 46.9%)",
|
|
22
|
-
accent: "hsl(210 40% 96%)",
|
|
23
|
-
accentForeground: "hsl(222.2 84% 4.9%)",
|
|
24
|
-
border: "hsl(214.3 31.8% 91.4%)",
|
|
25
|
-
input: "hsl(214.3 31.8% 91.4%)",
|
|
26
|
-
ring: "hsl(221.2 83.2% 53.3%)",
|
|
27
|
-
},
|
|
28
|
-
spacing: {
|
|
29
|
-
xs: 4,
|
|
30
|
-
sm: 8,
|
|
31
|
-
md: 16,
|
|
32
|
-
lg: 24,
|
|
33
|
-
xl: 32,
|
|
34
|
-
xxl: 48,
|
|
35
|
-
},
|
|
36
|
-
borderRadius: {
|
|
37
|
-
sm: 6,
|
|
38
|
-
md: 8,
|
|
39
|
-
lg: 12,
|
|
40
|
-
xl: 16,
|
|
41
|
-
},
|
|
42
|
-
fontSize: {
|
|
43
|
-
xs: 12,
|
|
44
|
-
sm: 14,
|
|
45
|
-
base: 16,
|
|
46
|
-
lg: 18,
|
|
47
|
-
xl: 20,
|
|
48
|
-
"2xl": 24,
|
|
49
|
-
"3xl": 30,
|
|
50
|
-
"4xl": 36,
|
|
51
|
-
},
|
|
52
|
-
} as const;
|
|
53
|
-
|
|
54
|
-
export const darkTheme = {
|
|
55
|
-
colors: {
|
|
56
|
-
...sharedColors,
|
|
57
|
-
typography: "hsl(210 40% 98%)",
|
|
58
|
-
background: "hsl(222.2 84% 4.9%)",
|
|
59
|
-
foreground: "hsl(210 40% 98%)",
|
|
60
|
-
card: "hsl(222.2 84% 4.9%)",
|
|
61
|
-
cardForeground: "hsl(210 40% 98%)",
|
|
62
|
-
primary: "hsl(217.2 91.2% 59.8%)",
|
|
63
|
-
primaryForeground: "hsl(222.2 84% 4.9%)",
|
|
64
|
-
secondary: "hsl(217.2 32.6% 17.5%)",
|
|
65
|
-
secondaryForeground: "hsl(210 40% 98%)",
|
|
66
|
-
muted: "hsl(217.2 32.6% 17.5%)",
|
|
67
|
-
mutedForeground: "hsl(215 20.2% 65.1%)",
|
|
68
|
-
accent: "hsl(217.2 32.6% 17.5%)",
|
|
69
|
-
accentForeground: "hsl(210 40% 98%)",
|
|
70
|
-
border: "hsl(217.2 32.6% 17.5%)",
|
|
71
|
-
input: "hsl(217.2 32.6% 17.5%)",
|
|
72
|
-
ring: "hsl(224.3 76.3% 94.1%)",
|
|
73
|
-
},
|
|
74
|
-
spacing: {
|
|
75
|
-
xs: 4,
|
|
76
|
-
sm: 8,
|
|
77
|
-
md: 16,
|
|
78
|
-
lg: 24,
|
|
79
|
-
xl: 32,
|
|
80
|
-
xxl: 48,
|
|
81
|
-
},
|
|
82
|
-
borderRadius: {
|
|
83
|
-
sm: 6,
|
|
84
|
-
md: 8,
|
|
85
|
-
lg: 12,
|
|
86
|
-
xl: 16,
|
|
87
|
-
},
|
|
88
|
-
fontSize: {
|
|
89
|
-
xs: 12,
|
|
90
|
-
sm: 14,
|
|
91
|
-
base: 16,
|
|
92
|
-
lg: 18,
|
|
93
|
-
xl: 20,
|
|
94
|
-
"2xl": 24,
|
|
95
|
-
"3xl": 30,
|
|
96
|
-
"4xl": 36,
|
|
97
|
-
},
|
|
98
|
-
} as const;
|
/package/templates/frontend/native/native-base/assets/{adaptive-icon.png → images/splash-icon.png}
RENAMED
|
File without changes
|
/package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{index.tsx → index.tsx.hbs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/frontend/native/nativewind/lib/{use-color-scheme.ts → use-color-scheme.ts.hbs}
RENAMED
|
File without changes
|
/package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{index.tsx → index.tsx.hbs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|