create-better-t-stack 2.43.1 → 2.45.0

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.
Files changed (71) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/index.d.ts +38 -1
  3. package/dist/index.js +1 -1
  4. package/dist/{src-CLCbHMKK.js → src-Cve0nldx.js} +102 -17
  5. package/package.json +3 -1
  6. package/templates/auth/better-auth/native/native-base/lib/auth-client.ts.hbs +3 -2
  7. package/templates/auth/better-auth/server/base/src/lib/auth.ts.hbs +5 -5
  8. package/templates/backend/server/next/package.json.hbs +3 -3
  9. package/templates/frontend/native/native-base/assets/images/android-icon-background.png +0 -0
  10. package/templates/frontend/native/native-base/assets/images/android-icon-foreground.png +0 -0
  11. package/templates/frontend/native/native-base/assets/images/android-icon-monochrome.png +0 -0
  12. package/templates/frontend/native/native-base/assets/images/favicon.png +0 -0
  13. package/templates/frontend/native/native-base/assets/images/icon.png +0 -0
  14. package/templates/frontend/native/native-base/assets/images/partial-react-logo.png +0 -0
  15. package/templates/frontend/native/native-base/assets/images/react-logo.png +0 -0
  16. package/templates/frontend/native/native-base/assets/images/react-logo@2x.png +0 -0
  17. package/templates/frontend/native/native-base/assets/images/react-logo@3x.png +0 -0
  18. package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{_layout.tsx → _layout.tsx.hbs} +3 -3
  19. package/templates/frontend/native/nativewind/app/{+not-found.tsx → +not-found.tsx.hbs} +1 -1
  20. package/templates/frontend/native/nativewind/app.json.hbs +49 -0
  21. package/templates/frontend/native/nativewind/babel.config.js.hbs +14 -0
  22. package/templates/frontend/native/nativewind/components/{container.tsx → container.tsx.hbs} +1 -1
  23. package/templates/frontend/native/nativewind/components/{header-button.tsx → header-button.tsx.hbs} +1 -1
  24. package/templates/frontend/native/{unistyles/components/tabbar-icon.tsx → nativewind/components/tabbar-icon.tsx.hbs} +1 -1
  25. package/templates/frontend/native/nativewind/metro.config.js.hbs +31 -0
  26. package/templates/frontend/native/nativewind/package.json.hbs +23 -21
  27. package/templates/frontend/native/nativewind/tailwind.config.js.hbs +59 -0
  28. package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{_layout.tsx → _layout.tsx.hbs} +3 -3
  29. package/templates/frontend/native/unistyles/app/(drawer)/index.tsx.hbs +1 -3
  30. package/templates/frontend/native/unistyles/app/{+not-found.tsx → +not-found.tsx.hbs} +2 -2
  31. package/templates/frontend/native/unistyles/app/_layout.tsx.hbs +2 -2
  32. package/templates/frontend/native/unistyles/app.json.hbs +49 -0
  33. package/templates/frontend/native/unistyles/babel.config.js.hbs +21 -0
  34. package/templates/frontend/native/unistyles/components/{container.tsx → container.tsx.hbs} +1 -1
  35. package/templates/frontend/native/unistyles/components/{header-button.tsx → header-button.tsx.hbs} +1 -1
  36. package/templates/frontend/native/{nativewind/components/tabbar-icon.tsx → unistyles/components/tabbar-icon.tsx.hbs} +1 -1
  37. package/templates/frontend/native/unistyles/metro.config.js.hbs +5 -0
  38. package/templates/frontend/native/unistyles/package.json.hbs +29 -28
  39. package/templates/frontend/native/unistyles/theme.ts.hbs +98 -0
  40. package/templates/frontend/react/next/package.json.hbs +3 -3
  41. package/templates/frontend/react/react-router/package.json.hbs +3 -3
  42. package/templates/frontend/react/tanstack-router/package.json.hbs +3 -3
  43. package/templates/frontend/react/tanstack-start/package.json.hbs +3 -3
  44. package/templates/frontend/native/native-base/assets/favicon.png +0 -0
  45. package/templates/frontend/native/native-base/assets/icon.png +0 -0
  46. package/templates/frontend/native/native-base/assets/splash.png +0 -0
  47. package/templates/frontend/native/nativewind/app/+html.tsx +0 -47
  48. package/templates/frontend/native/nativewind/app-env.d.ts +0 -2
  49. package/templates/frontend/native/nativewind/app.json +0 -46
  50. package/templates/frontend/native/nativewind/babel.config.js +0 -11
  51. package/templates/frontend/native/nativewind/metro.config.js +0 -59
  52. package/templates/frontend/native/nativewind/tailwind.config.js +0 -59
  53. package/templates/frontend/native/unistyles/app/+html.tsx +0 -48
  54. package/templates/frontend/native/unistyles/app.json +0 -44
  55. package/templates/frontend/native/unistyles/babel.config.js +0 -21
  56. package/templates/frontend/native/unistyles/expo-env.d.ts +0 -3
  57. package/templates/frontend/native/unistyles/metro.config.js +0 -20
  58. package/templates/frontend/native/unistyles/theme.ts +0 -98
  59. /package/templates/frontend/native/native-base/assets/{adaptive-icon.png → images/splash-icon.png} +0 -0
  60. /package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{index.tsx → index.tsx.hbs} +0 -0
  61. /package/templates/frontend/native/nativewind/app/(drawer)/(tabs)/{two.tsx → two.tsx.hbs} +0 -0
  62. /package/templates/frontend/native/nativewind/app/{modal.tsx → modal.tsx.hbs} +0 -0
  63. /package/templates/frontend/native/nativewind/lib/{android-navigation-bar.tsx → android-navigation-bar.tsx.hbs} +0 -0
  64. /package/templates/frontend/native/nativewind/lib/{constants.ts → constants.ts.hbs} +0 -0
  65. /package/templates/frontend/native/nativewind/lib/{use-color-scheme.ts → use-color-scheme.ts.hbs} +0 -0
  66. /package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{index.tsx → index.tsx.hbs} +0 -0
  67. /package/templates/frontend/native/unistyles/app/(drawer)/(tabs)/{two.tsx → two.tsx.hbs} +0 -0
  68. /package/templates/frontend/native/unistyles/app/{modal.tsx → modal.tsx.hbs} +0 -0
  69. /package/templates/frontend/native/unistyles/{breakpoints.ts → breakpoints.ts.hbs} +0 -0
  70. /package/templates/frontend/native/unistyles/{index.js → index.js.hbs} +0 -0
  71. /package/templates/frontend/native/unistyles/{unistyles.ts → unistyles.ts.hbs} +0 -0
@@ -1,48 +0,0 @@
1
- import { ScrollViewStyleReset } from 'expo-router/html';
2
-
3
- import '../unistyles';
4
-
5
- // This file is web-only and used to configure the root HTML for every
6
- // web page during static rendering.
7
- // The contents of this function only run in Node.js environments and
8
- // do not have access to the DOM or browser APIs.
9
- export default function Root({ children }: { children: React.ReactNode }) {
10
- return (
11
- <html lang="en">
12
- <head>
13
- <meta charSet="utf-8" />
14
- <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
15
-
16
- {/*
17
- This viewport disables scaling which makes the mobile website act more like a native app.
18
- However this does reduce built-in accessibility. If you want to enable scaling, use this instead:
19
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
20
- */}
21
- <meta
22
- name="viewport"
23
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1.00001,viewport-fit=cover"
24
- />
25
- {/*
26
- Disable body scrolling on web. This makes ScrollView components work closer to how they do on native.
27
- However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line.
28
- */}
29
- <ScrollViewStyleReset />
30
-
31
- {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */}
32
- <style dangerouslySetInnerHTML={{ __html: responsiveBackground }} />
33
- {/* Add any additional <head> elements that you want globally available on web... */}
34
- </head>
35
- <body>{children}</body>
36
- </html>
37
- );
38
- }
39
-
40
- const responsiveBackground = `
41
- body {
42
- background-color: #fff;
43
- }
44
- @media (prefers-color-scheme: dark) {
45
- body {
46
- background-color: #000;
47
- }
48
- }`;
@@ -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,3 +0,0 @@
1
- /// <reference types="expo/types" />
2
-
3
- // NOTE: This file should not be edited and should be in your git ignore
@@ -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;