lovdacn 0.0.2 → 0.0.3

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 (123) hide show
  1. package/README.md +72 -106
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +224 -0
  4. package/package.json +37 -65
  5. package/templates/nativewind/.vscode/extensions.json +1 -0
  6. package/templates/nativewind/.vscode/settings.json +7 -0
  7. package/templates/nativewind/AGENTS.md +3 -0
  8. package/templates/nativewind/CLAUDE.md +1 -0
  9. package/{LICENSE → templates/nativewind/LICENSE} +21 -21
  10. package/templates/nativewind/README.md +56 -0
  11. package/templates/nativewind/app.json +43 -0
  12. package/templates/nativewind/assets/expo.icon/Assets/expo-symbol 2.svg +3 -0
  13. package/templates/nativewind/assets/expo.icon/Assets/grid.png +0 -0
  14. package/templates/nativewind/assets/expo.icon/icon.json +40 -0
  15. package/templates/nativewind/assets/images/android-icon-background.png +0 -0
  16. package/templates/nativewind/assets/images/android-icon-foreground.png +0 -0
  17. package/templates/nativewind/assets/images/android-icon-monochrome.png +0 -0
  18. package/templates/nativewind/assets/images/expo-badge-white.png +0 -0
  19. package/templates/nativewind/assets/images/expo-badge.png +0 -0
  20. package/templates/nativewind/assets/images/expo-logo.png +0 -0
  21. package/templates/nativewind/assets/images/favicon.png +0 -0
  22. package/templates/nativewind/assets/images/icon.png +0 -0
  23. package/templates/nativewind/assets/images/logo-glow.png +0 -0
  24. package/templates/nativewind/assets/images/react-logo.png +0 -0
  25. package/templates/nativewind/assets/images/react-logo@2x.png +0 -0
  26. package/templates/nativewind/assets/images/react-logo@3x.png +0 -0
  27. package/templates/nativewind/assets/images/splash-icon.png +0 -0
  28. package/templates/nativewind/assets/images/tabIcons/explore.png +0 -0
  29. package/templates/nativewind/assets/images/tabIcons/explore@2x.png +0 -0
  30. package/templates/nativewind/assets/images/tabIcons/explore@3x.png +0 -0
  31. package/templates/nativewind/assets/images/tabIcons/home.png +0 -0
  32. package/templates/nativewind/assets/images/tabIcons/home@2x.png +0 -0
  33. package/templates/nativewind/assets/images/tabIcons/home@3x.png +0 -0
  34. package/templates/nativewind/assets/images/tutorial-web.png +0 -0
  35. package/templates/nativewind/babel.config.js +9 -0
  36. package/templates/nativewind/expo-env.d.ts +3 -0
  37. package/templates/nativewind/lvcn.json +16 -0
  38. package/templates/nativewind/metro.config.js +6 -0
  39. package/templates/nativewind/nativewind-env.d.ts +3 -0
  40. package/templates/nativewind/package.json +55 -0
  41. package/templates/nativewind/postcss.config.js +6 -0
  42. package/templates/nativewind/scripts/reset-project.js +114 -0
  43. package/templates/nativewind/src/app/_layout.tsx +25 -0
  44. package/templates/nativewind/src/app/explore.tsx +180 -0
  45. package/templates/nativewind/src/app/index.tsx +12 -0
  46. package/templates/nativewind/src/components/animated-icon.module.css +6 -0
  47. package/templates/nativewind/src/components/animated-icon.tsx +148 -0
  48. package/templates/nativewind/src/components/animated-icon.web.tsx +108 -0
  49. package/templates/nativewind/src/components/app-tabs.tsx +32 -0
  50. package/templates/nativewind/src/components/app-tabs.web.tsx +115 -0
  51. package/templates/nativewind/src/components/external-link.tsx +25 -0
  52. package/templates/nativewind/src/components/hint-row.tsx +35 -0
  53. package/templates/nativewind/src/components/themed-text.tsx +73 -0
  54. package/templates/nativewind/src/components/themed-view.tsx +16 -0
  55. package/templates/nativewind/src/components/ui/button.tsx +106 -0
  56. package/templates/nativewind/src/components/ui/collapsible.tsx +65 -0
  57. package/templates/nativewind/src/components/ui/text.tsx +89 -0
  58. package/templates/nativewind/src/components/web-badge.tsx +43 -0
  59. package/templates/nativewind/src/constants/theme.ts +65 -0
  60. package/templates/nativewind/src/global.css +13 -0
  61. package/templates/nativewind/src/hooks/use-color-scheme.ts +1 -0
  62. package/templates/nativewind/src/hooks/use-color-scheme.web.ts +21 -0
  63. package/templates/nativewind/src/hooks/use-theme.ts +14 -0
  64. package/templates/nativewind/tailwind.config.js +86 -0
  65. package/templates/nativewind/tsconfig.json +21 -0
  66. package/templates/uniwind/.claude/settings.json +5 -0
  67. package/templates/uniwind/.vscode/extensions.json +1 -0
  68. package/templates/uniwind/.vscode/settings.json +7 -0
  69. package/templates/uniwind/AGENTS.md +3 -0
  70. package/templates/uniwind/CLAUDE.md +1 -0
  71. package/templates/uniwind/LICENSE +21 -0
  72. package/templates/uniwind/README.md +56 -0
  73. package/templates/uniwind/app.json +42 -0
  74. package/templates/uniwind/assets/expo.icon/Assets/expo-symbol 2.svg +3 -0
  75. package/templates/uniwind/assets/expo.icon/Assets/grid.png +0 -0
  76. package/templates/uniwind/assets/expo.icon/icon.json +40 -0
  77. package/templates/uniwind/assets/images/android-icon-background.png +0 -0
  78. package/templates/uniwind/assets/images/android-icon-foreground.png +0 -0
  79. package/templates/uniwind/assets/images/android-icon-monochrome.png +0 -0
  80. package/templates/uniwind/assets/images/expo-badge-white.png +0 -0
  81. package/templates/uniwind/assets/images/expo-badge.png +0 -0
  82. package/templates/uniwind/assets/images/expo-logo.png +0 -0
  83. package/templates/uniwind/assets/images/favicon.png +0 -0
  84. package/templates/uniwind/assets/images/icon.png +0 -0
  85. package/templates/uniwind/assets/images/logo-glow.png +0 -0
  86. package/templates/uniwind/assets/images/react-logo.png +0 -0
  87. package/templates/uniwind/assets/images/react-logo@2x.png +0 -0
  88. package/templates/uniwind/assets/images/react-logo@3x.png +0 -0
  89. package/templates/uniwind/assets/images/splash-icon.png +0 -0
  90. package/templates/uniwind/assets/images/tabIcons/explore.png +0 -0
  91. package/templates/uniwind/assets/images/tabIcons/explore@2x.png +0 -0
  92. package/templates/uniwind/assets/images/tabIcons/explore@3x.png +0 -0
  93. package/templates/uniwind/assets/images/tabIcons/home.png +0 -0
  94. package/templates/uniwind/assets/images/tabIcons/home@2x.png +0 -0
  95. package/templates/uniwind/assets/images/tabIcons/home@3x.png +0 -0
  96. package/templates/uniwind/assets/images/tutorial-web.png +0 -0
  97. package/templates/uniwind/expo-env.d.ts +3 -0
  98. package/templates/uniwind/lvcn.json +16 -0
  99. package/templates/uniwind/metro.config.js +14 -0
  100. package/templates/uniwind/package.json +46 -0
  101. package/templates/uniwind/scripts/reset-project.js +114 -0
  102. package/templates/uniwind/src/app/_layout.tsx +23 -0
  103. package/templates/uniwind/src/app/explore.tsx +180 -0
  104. package/templates/uniwind/src/app/index.tsx +98 -0
  105. package/templates/uniwind/src/components/animated-icon.module.css +6 -0
  106. package/templates/uniwind/src/components/animated-icon.tsx +148 -0
  107. package/templates/uniwind/src/components/animated-icon.web.tsx +108 -0
  108. package/templates/uniwind/src/components/app-tabs.tsx +32 -0
  109. package/templates/uniwind/src/components/app-tabs.web.tsx +115 -0
  110. package/templates/uniwind/src/components/external-link.tsx +25 -0
  111. package/templates/uniwind/src/components/hint-row.tsx +35 -0
  112. package/templates/uniwind/src/components/themed-text.tsx +73 -0
  113. package/templates/uniwind/src/components/themed-view.tsx +16 -0
  114. package/templates/uniwind/src/components/ui/collapsible.tsx +65 -0
  115. package/templates/uniwind/src/components/web-badge.tsx +43 -0
  116. package/templates/uniwind/src/constants/theme.ts +65 -0
  117. package/templates/uniwind/src/global.css +12 -0
  118. package/templates/uniwind/src/hooks/use-color-scheme.ts +1 -0
  119. package/templates/uniwind/src/hooks/use-color-scheme.web.ts +21 -0
  120. package/templates/uniwind/src/hooks/use-theme.ts +14 -0
  121. package/templates/uniwind/src/uniwind-types.d.ts +10 -0
  122. package/templates/uniwind/tsconfig.json +20 -0
  123. package/dist/bin.cjs +0 -59578
package/package.json CHANGED
@@ -1,80 +1,52 @@
1
1
  {
2
2
  "name": "lovdacn",
3
- "version": "0.0.2",
4
3
  "type": "module",
4
+ "version": "0.0.3",
5
+ "private": false,
5
6
  "license": "MIT",
6
- "description": "A CLI for Lavdacn-UI",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/lovdacn-ui/ui.git",
10
- "directory": "apps/cli"
11
- },
7
+ "files": [
8
+ "dist",
9
+ "templates"
10
+ ],
12
11
  "publishConfig": {
13
12
  "access": "public"
14
13
  },
15
- "main": "./dist/bin.cjs",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ }
19
+ },
16
20
  "bin": {
17
- "lovdacn": "./dist/bin.cjs",
18
- "lvcn": "./dist/bin.cjs"
21
+ "lovdacn": "./dist/index.js",
22
+ "lvcn": "./dist/index.js"
19
23
  },
20
- "files": [
21
- "dist"
22
- ],
23
24
  "scripts": {
24
- "build": "tsup",
25
- "build:ts": "tsup",
26
- "clean": "rimraf dist/*",
27
- "check": "tsc -b tsconfig.json",
28
- "dev": "cross-env INTERNAL_ENV=development tsx src/bin.ts",
29
- "lint": "eslint \"**/{src,test,examples,scripts,dtslint}/**/*.{ts,mjs}\"",
30
- "lint-fix": "pnpm lint --fix",
31
25
  "test": "vitest run",
32
- "coverage": "vitest run --coverage",
33
- "changeset-version": "changeset version && node scripts/version.mjs",
34
- "changeset-publish": "pnpm build && cross-env TEST_DIST= pnpm vitest && changeset publish",
35
- "pub:beta": "pnpm publish --no-git-checks --access public --tag beta",
36
- "pub:next": "pnpm publish --no-git-checks --access public --tag next",
37
- "pub:release": "pnpm publish --access public"
38
- },
39
- "dependencies": {
40
- "tsconfig-paths": "^4.2.0"
26
+ "build": "tsup && node -e \"const fs=require('fs-extra'); fs.removeSync('./templates'); fs.copySync('../templates', './templates', {filter: (src) => !src.includes('node_modules') && !src.includes('.expo') && !src.includes('.git') && !src.includes('package-lock.json') && !src.includes('bun.lock') && !src.includes('bun.lockb') && !src.includes('styles')})\"",
27
+ "dev": "tsup --watch",
28
+ "start": "node dist/index.js",
29
+ "clean": "rimraf dist templates"
41
30
  },
42
31
  "devDependencies": {
43
- "@changesets/changelog-github": "^0.5.0",
44
- "@changesets/cli": "^2.27.8",
45
- "@effect/cli": "latest",
46
- "@effect/eslint-plugin": "^0.2.0",
47
- "@effect/language-service": "^0.1.0",
48
- "@effect/platform": "latest",
49
- "@effect/platform-node": "latest",
50
- "@effect/vitest": "latest",
51
- "@eslint/compat": "1.1.1",
52
- "@eslint/eslintrc": "3.1.0",
53
- "@eslint/js": "9.10.0",
54
- "@types/node": "22.10.5",
55
- "@typescript-eslint/eslint-plugin": "^8.4.0",
56
- "@typescript-eslint/parser": "^8.4.0",
57
- "cross-env": "^7.0.3",
58
- "effect": "latest",
59
- "eslint": "^9.10.0",
60
- "eslint-import-resolver-typescript": "^3.6.3",
61
- "eslint-plugin-codegen": "0.28.0",
62
- "eslint-plugin-deprecation": "^3.0.0",
63
- "eslint-plugin-import": "^2.30.0",
64
- "eslint-plugin-simple-import-sort": "^12.1.1",
65
- "eslint-plugin-sort-destructure-keys": "^2.0.0",
66
- "execa": "^7.2.0",
67
- "log-symbols": "^7.0.1",
68
- "ora": "^6.1.2",
69
- "package-manager-detector": "^1.3.0",
70
- "tsup": "^8.2.4",
71
- "tsx": "^4.19.1",
72
- "typescript": "^5.9.3",
73
- "vitest": "^2.0.5"
32
+ "@types/fs-extra": "^11.0.4",
33
+ "@types/node": "^22",
34
+ "@types/prompts": "^2.4.9",
35
+ "rimraf": "^6.0.1",
36
+ "tailwind-merge": "^3.6.0",
37
+ "tsup": "^8.5.0",
38
+ "vitest": "^3.0.0"
74
39
  },
75
- "pnpm": {
76
- "patchedDependencies": {
77
- "@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch"
78
- }
79
- }
40
+ "peerDependencies": {
41
+ "typescript": "^5"
42
+ },
43
+ "dependencies": {
44
+ "commander": "^15.0.0",
45
+ "execa": "^9.6.0",
46
+ "fs-extra": "^11.3.1",
47
+ "picocolors": "^1.1.1",
48
+ "prompts": "^2.4.2",
49
+ "zod": "^3.24.1"
50
+ },
51
+ "module": "src/index.ts"
80
52
  }
@@ -0,0 +1 @@
1
+ { "recommendations": ["expo.vscode-expo-tools"] }
@@ -0,0 +1,7 @@
1
+ {
2
+ "editor.codeActionsOnSave": {
3
+ "source.fixAll": "explicit",
4
+ "source.organizeImports": "explicit",
5
+ "source.sortMembers": "explicit"
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ # Expo HAS CHANGED
2
+
3
+ Read the exact versioned docs at https://docs.expo.dev/versions/v57.0.0/ before writing any code.
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024-present Entangle Labs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-present 650 Industries, Inc. (aka Expo)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,56 @@
1
+ # Welcome to your Expo app šŸ‘‹
2
+
3
+ This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
4
+
5
+ ## Get started
6
+
7
+ 1. Install dependencies
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ 2. Start the app
14
+
15
+ ```bash
16
+ npx expo start
17
+ ```
18
+
19
+ In the output, you'll find options to open the app in a
20
+
21
+ - [development build](https://docs.expo.dev/develop/development-builds/introduction/)
22
+ - [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
23
+ - [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
24
+ - [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
25
+
26
+ You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
27
+
28
+ ## Get a fresh project
29
+
30
+ When you're ready, run:
31
+
32
+ ```bash
33
+ npm run reset-project
34
+ ```
35
+
36
+ This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
37
+
38
+ ### Other setup steps
39
+
40
+ - To set up ESLint for linting, run `npx expo lint`, or follow our guide on ["Using ESLint and Prettier"](https://docs.expo.dev/guides/using-eslint/)
41
+ - If you'd like to set up unit testing, follow our guide on ["Unit Testing with Jest"](https://docs.expo.dev/develop/unit-testing/)
42
+ - Learn more about the TypeScript setup in this template in our guide on ["Using TypeScript"](https://docs.expo.dev/guides/typescript/)
43
+
44
+ ## Learn more
45
+
46
+ To learn more about developing your project with Expo, look at the following resources:
47
+
48
+ - [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
49
+ - [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
50
+
51
+ ## Join the community
52
+
53
+ Join our community of developers creating universal apps.
54
+
55
+ - [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
56
+ - [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
@@ -0,0 +1,43 @@
1
+ {
2
+ "expo": {
3
+ "name": "oooooo",
4
+ "slug": "oooooo",
5
+ "version": "1.0.0",
6
+ "orientation": "portrait",
7
+ "icon": "./assets/images/icon.png",
8
+ "scheme": "oooooo",
9
+ "userInterfaceStyle": "automatic",
10
+ "ios": {
11
+ "icon": "./assets/expo.icon"
12
+ },
13
+ "android": {
14
+ "adaptiveIcon": {
15
+ "backgroundColor": "#E6F4FE",
16
+ "foregroundImage": "./assets/images/android-icon-foreground.png",
17
+ "backgroundImage": "./assets/images/android-icon-background.png",
18
+ "monochromeImage": "./assets/images/android-icon-monochrome.png"
19
+ },
20
+ "predictiveBackGestureEnabled": false
21
+ },
22
+ "web": {
23
+ "output": "static",
24
+ "favicon": "./assets/images/favicon.png",
25
+ "bundler": "metro"
26
+ },
27
+ "plugins": [
28
+ "expo-router",
29
+ [
30
+ "expo-splash-screen",
31
+ {
32
+ "backgroundColor": "#208AEF",
33
+ "image": "./assets/images/splash-icon.png",
34
+ "imageWidth": 76
35
+ }
36
+ ]
37
+ ],
38
+ "experiments": {
39
+ "typedRoutes": true,
40
+ "reactCompiler": true
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,3 @@
1
+ <svg width="652" height="606" viewBox="0 0 652 606" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M353.554 0H298.446C273.006 0 249.684 14.6347 237.962 37.9539L4.37994 502.646C-1.04325 513.435 -1.45067 526.178 3.2716 537.313L22.6123 582.918C34.6475 611.297 72.5404 614.156 88.4414 587.885L309.863 222.063C313.34 216.317 319.439 212.826 326 212.826C332.561 212.826 338.659 216.317 342.137 222.063L563.559 587.885C579.46 614.156 617.352 611.297 629.388 582.918L648.728 537.313C653.451 526.178 653.043 513.435 647.62 502.646L414.038 37.9539C402.316 14.6347 378.994 0 353.554 0Z" fill="white"/>
3
+ </svg>
@@ -0,0 +1,40 @@
1
+ {
2
+ "fill" : {
3
+ "automatic-gradient" : "extended-srgb:0.00000,0.47843,1.00000,1.00000"
4
+ },
5
+ "groups" : [
6
+ {
7
+ "layers" : [
8
+ {
9
+ "image-name" : "expo-symbol 2.svg",
10
+ "name" : "expo-symbol 2",
11
+ "position" : {
12
+ "scale" : 1,
13
+ "translation-in-points" : [
14
+ 1.1008400065293245e-05,
15
+ -16.046875
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "image-name" : "grid.png",
21
+ "name" : "grid"
22
+ }
23
+ ],
24
+ "shadow" : {
25
+ "kind" : "neutral",
26
+ "opacity" : 0.5
27
+ },
28
+ "translucency" : {
29
+ "enabled" : true,
30
+ "value" : 0.5
31
+ }
32
+ }
33
+ ],
34
+ "supported-platforms" : {
35
+ "circles" : [
36
+ "watchOS"
37
+ ],
38
+ "squares" : "shared"
39
+ }
40
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = function (api) {
2
+ api.cache(true);
3
+ return {
4
+ presets: [
5
+ ["babel-preset-expo", { jsxImportSource: "nativewind" }],
6
+ "nativewind/babel",
7
+ ],
8
+ };
9
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="expo/types" />
2
+
3
+ // NOTE: This file should not be edited and should be in your git ignore
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://lovdacn.vercel.app/schema.json",
3
+ "style": "new-york",
4
+ "styleEngine": "nativewind",
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "tailwind.config.js",
8
+ "css": "src/global.css"
9
+ },
10
+ "aliases": {
11
+ "components": "@/components",
12
+ "utils": "@/lib/utils",
13
+ "ui": "@/components/ui"
14
+ },
15
+ "components": []
16
+ }
@@ -0,0 +1,6 @@
1
+ const { getDefaultConfig } = require("expo/metro-config");
2
+ const { withNativeWind } = require('nativewind/metro');
3
+
4
+ const config = getDefaultConfig(__dirname)
5
+
6
+ module.exports = withNativeWind(config, { input: './src/global.css' })
@@ -0,0 +1,3 @@
1
+ /// <reference types="nativewind/types" />
2
+
3
+ // NOTE: This file should not be edited and should be committed with your source code. It is generated by NativeWind.
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "oooooo",
3
+ "main": "expo-router/entry",
4
+ "version": "1.0.0",
5
+ "dependencies": {
6
+ "@expo/ui": "~57.0.4",
7
+ "@rn-primitives/portal": "^1.5.2",
8
+ "@rn-primitives/slot": "^1.5.2",
9
+ "class-variance-authority": "^0.7.1",
10
+ "clsx": "^2.1.1",
11
+ "expo": "~57.0.4",
12
+ "expo-constants": "~57.0.3",
13
+ "expo-device": "~57.0.0",
14
+ "expo-font": "~57.0.0",
15
+ "expo-glass-effect": "~57.0.0",
16
+ "expo-image": "~57.0.0",
17
+ "expo-linking": "~57.0.2",
18
+ "expo-router": "~57.0.4",
19
+ "expo-splash-screen": "~57.0.2",
20
+ "expo-status-bar": "~57.0.0",
21
+ "expo-symbols": "~57.0.0",
22
+ "expo-system-ui": "~57.0.0",
23
+ "expo-web-browser": "~57.0.0",
24
+ "nativewind": "^4.2.6",
25
+ "react": "19.2.3",
26
+ "react-dom": "19.2.3",
27
+ "react-native": "0.86.0",
28
+ "react-native-gesture-handler": "~2.32.0",
29
+ "react-native-reanimated": "4.5.0",
30
+ "react-native-safe-area-context": "~5.7.0",
31
+ "react-native-screens": "4.25.2",
32
+ "react-native-web": "~0.21.0",
33
+ "react-native-worklets": "0.10.0",
34
+ "tailwind-merge": "^3.6.0",
35
+ "tailwindcss-animate": "^1.0.7"
36
+ },
37
+ "devDependencies": {
38
+ "@types/react": "~19.2.2",
39
+ "autoprefixer": "^10.5.2",
40
+ "babel-preset-expo": "^57.0.1",
41
+ "postcss": "^8.5.16",
42
+ "prettier-plugin-tailwindcss": "^0.5.14",
43
+ "tailwindcss": "3.4.17",
44
+ "typescript": "~6.0.3"
45
+ },
46
+ "scripts": {
47
+ "start": "expo start",
48
+ "reset-project": "node ./scripts/reset-project.js",
49
+ "android": "expo start --android",
50
+ "ios": "expo start --ios",
51
+ "web": "expo start --web",
52
+ "lint": "expo lint"
53
+ },
54
+ "private": true
55
+ }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * This script is used to reset the project to a blank state.
5
+ * It deletes or moves the /src and /scripts directories to /example based on user input and creates a new /src/app directory with an index.tsx and _layout.tsx file.
6
+ * You can remove the `reset-project` script from package.json and safely delete this file after running it.
7
+ */
8
+
9
+ const fs = require("fs");
10
+ const path = require("path");
11
+ const readline = require("readline");
12
+
13
+ const root = process.cwd();
14
+ const oldDirs = ["src", "scripts"];
15
+ const exampleDir = "example";
16
+ const newAppDir = "src/app";
17
+ const exampleDirPath = path.join(root, exampleDir);
18
+
19
+ const indexContent = `import { Text, View, StyleSheet } from "react-native";
20
+
21
+ export default function Index() {
22
+ return (
23
+ <View style={styles.container}>
24
+ <Text>Edit src/app/index.tsx to edit this screen.</Text>
25
+ </View>
26
+ );
27
+ }
28
+
29
+ const styles = StyleSheet.create({
30
+ container: {
31
+ flex: 1,
32
+ alignItems: "center",
33
+ justifyContent: "center",
34
+ },
35
+ });
36
+ `;
37
+
38
+ const layoutContent = `import { Stack } from "expo-router";
39
+
40
+ export default function RootLayout() {
41
+ return <Stack />;
42
+ }
43
+ `;
44
+
45
+ const rl = readline.createInterface({
46
+ input: process.stdin,
47
+ output: process.stdout,
48
+ });
49
+
50
+ const moveDirectories = async (userInput) => {
51
+ try {
52
+ if (userInput === "y") {
53
+ // Create the app-example directory
54
+ await fs.promises.mkdir(exampleDirPath, { recursive: true });
55
+ console.log(`šŸ“ /${exampleDir} directory created.`);
56
+ }
57
+
58
+ // Move old directories to new app-example directory or delete them
59
+ for (const dir of oldDirs) {
60
+ const oldDirPath = path.join(root, dir);
61
+ if (fs.existsSync(oldDirPath)) {
62
+ if (userInput === "y") {
63
+ const newDirPath = path.join(root, exampleDir, dir);
64
+ await fs.promises.rename(oldDirPath, newDirPath);
65
+ console.log(`āž”ļø /${dir} moved to /${exampleDir}/${dir}.`);
66
+ } else {
67
+ await fs.promises.rm(oldDirPath, { recursive: true, force: true });
68
+ console.log(`āŒ /${dir} deleted.`);
69
+ }
70
+ } else {
71
+ console.log(`āž”ļø /${dir} does not exist, skipping.`);
72
+ }
73
+ }
74
+
75
+ // Create new /src/app directory
76
+ const newAppDirPath = path.join(root, newAppDir);
77
+ await fs.promises.mkdir(newAppDirPath, { recursive: true });
78
+ console.log("\nšŸ“ New /src/app directory created.");
79
+
80
+ // Create index.tsx
81
+ const indexPath = path.join(newAppDirPath, "index.tsx");
82
+ await fs.promises.writeFile(indexPath, indexContent);
83
+ console.log("šŸ“„ src/app/index.tsx created.");
84
+
85
+ // Create _layout.tsx
86
+ const layoutPath = path.join(newAppDirPath, "_layout.tsx");
87
+ await fs.promises.writeFile(layoutPath, layoutContent);
88
+ console.log("šŸ“„ src/app/_layout.tsx created.");
89
+
90
+ console.log("\nāœ… Project reset complete. Next steps:");
91
+ console.log(
92
+ `1. Run \`npx expo start\` to start a development server.\n2. Edit src/app/index.tsx to edit the main screen.\n3. Put all your application code in /src, only screens and layout files should be in /src/app.${
93
+ userInput === "y"
94
+ ? `\n4. Delete the /${exampleDir} directory when you're done referencing it.`
95
+ : ""
96
+ }`
97
+ );
98
+ } catch (error) {
99
+ console.error(`āŒ Error during script execution: ${error.message}`);
100
+ }
101
+ };
102
+
103
+ rl.question(
104
+ "Do you want to move existing files to /example instead of deleting them? (Y/n): ",
105
+ (answer) => {
106
+ const userInput = answer.trim().toLowerCase() || "y";
107
+ if (userInput === "y" || userInput === "n") {
108
+ moveDirectories(userInput).finally(() => rl.close());
109
+ } else {
110
+ console.log("āŒ Invalid input. Please enter 'Y' or 'N'.");
111
+ rl.close();
112
+ }
113
+ }
114
+ );
@@ -0,0 +1,25 @@
1
+ import { DarkTheme, DefaultTheme, ThemeProvider } from 'expo-router';
2
+ import { PortalHost } from '@rn-primitives/portal';
3
+ import * as SplashScreen from 'expo-splash-screen';
4
+ import { useColorScheme } from 'react-native';
5
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
6
+
7
+ import { AnimatedSplashOverlay } from '@/components/animated-icon';
8
+ import AppTabs from '@/components/app-tabs';
9
+
10
+ import "../global.css";
11
+
12
+ SplashScreen.preventAutoHideAsync();
13
+
14
+ export default function TabLayout() {
15
+ const colorScheme = useColorScheme();
16
+ return (
17
+ <GestureHandlerRootView style={{ flex: 1 }}>
18
+ <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
19
+ <AnimatedSplashOverlay />
20
+ <AppTabs />
21
+ <PortalHost />
22
+ </ThemeProvider>
23
+ </GestureHandlerRootView>
24
+ );
25
+ }