Skip to content

Commit

Permalink
slim down basic
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsherrard authored and natew committed Oct 5, 2024
1 parent bceb998 commit 154abea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 58 deletions.
7 changes: 3 additions & 4 deletions examples/one-basic/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { Text, View } from 'react-native'

export default function Index() {
return (
<View
style={{
width: 100,
height: 100,
flex: 1,
alignSelf: 'center',
justifyContent: 'center',
alignItems: 'center',
minHeight: '100%',
}}
>
<Text>Hello world</Text>
<Text>Hello world, from One</Text>
</View>
)
}
35 changes: 2 additions & 33 deletions examples/one-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,16 @@
"clean": "one clean",
"prebuild:native": "one prebuild",
"build:web": "one build",
"serve": "one serve",
"ios": "EXPO_NO_TELEMETRY=true expo run:ios",
"android": "EXPO_NO_TELEMETRY=true expo run:android",
"upgrade:tamagui": "yarn up '*tamagui*' '@tamagui/*'",
"db:init": "./db/init.sh && yarn db:generate && yarn db:push && yarn db:seed",
"db:generate": "drizzle-kit generate --config ./db/drizzle.config.ts",
"db:push": "drizzle-kit push --config ./db/drizzle.config.ts",
"db:migrate": "dotenvx run -f .env -- tsx db/run-migrations.ts",
"db:seed": "dotenvx run -f .env -- tsx db/seed.ts"
"serve": "one serve"
},
"installConfig": {
"hoistingLimits": "workspaces"
},
"dependencies": {
"@dotenvx/dotenvx": "^1.12.1",
"@tamagui/config": "^1.112.21",
"@tamagui/image-next": "^1.112.21",
"@tamagui/lucide-icons": "^1.112.21",
"@tamagui/vite-plugin": "^1.112.21",
"@vxrn/color-scheme": "1.1.295",
"better-sqlite3": "^11.2.1",
"dotenv": "^16.4.5",
"drizzle-kit": "^0.24.2",
"drizzle-orm": "^0.33.0",
"expo": "~51.0.28",
"expo-modules-core": "^1.12.24",
"one": "1.1.295",
"postgres": "^3.4.4",
"react": "^18.3.1",
"react-native": "0.74.1",
"react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "^4.10.1",
"react-native-screens": "3.31.1",
"react-native-svg": "15.2.0",
"react-native-web": "^0.19.12",
"tamagui": "^1.112.21"
},
"devDependencies": {
"@faker-js/faker": "next",
"@tamagui/vite-plugin": "^1.112.21",
"tsx": "^4.19.0",
"vite": "6.0.0-beta.1"
"react-native-web": "^0.19.12"
}
}
2 changes: 1 addition & 1 deletion examples/one-basic/routes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ declare module 'one' {
IsTyped: true
}
}
}
}
20 changes: 0 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12380,31 +12380,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "example-basic@workspace:examples/one-basic"
dependencies:
"@dotenvx/dotenvx": "npm:^1.12.1"
"@faker-js/faker": "npm:next"
"@tamagui/config": "npm:^1.112.21"
"@tamagui/image-next": "npm:^1.112.21"
"@tamagui/lucide-icons": "npm:^1.112.21"
"@tamagui/vite-plugin": "npm:^1.112.21"
"@vxrn/color-scheme": "npm:1.1.295"
better-sqlite3: "npm:^11.2.1"
dotenv: "npm:^16.4.5"
drizzle-kit: "npm:^0.24.2"
drizzle-orm: "npm:^0.33.0"
expo: "npm:~51.0.28"
expo-modules-core: "npm:^1.12.24"
one: "npm:1.1.295"
postgres: "npm:^3.4.4"
react: "npm:^18.3.1"
react-native: "npm:0.74.1"
react-native-reanimated: "npm:~3.10.1"
react-native-safe-area-context: "npm:^4.10.1"
react-native-screens: "npm:3.31.1"
react-native-svg: "npm:15.2.0"
react-native-web: "npm:^0.19.12"
tamagui: "npm:^1.112.21"
tsx: "npm:^4.19.0"
vite: "npm:6.0.0-beta.1"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 154abea

Please sign in to comment.