lucy-cli 2.0.0-alpha.2 → 2.0.0-alpha.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.
- package/dist/init.js +29 -11
- package/files/expo/.prettierrc.js +16 -0
- package/files/expo/.yarnrc.yml +1 -1
- package/files/expo/app/(tabs)/_layout.tsx +38 -33
- package/files/expo/app/(tabs)/explore.tsx +114 -0
- package/files/expo/app/(tabs)/index.tsx +80 -0
- package/files/expo/app/+not-found.tsx +37 -0
- package/files/expo/app/_layout.tsx +39 -30
- package/files/expo/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/expo/assets/images/adaptive-icon.png +0 -0
- package/files/expo/assets/images/favicon.png +0 -0
- package/files/expo/assets/images/icon.png +0 -0
- package/files/expo/assets/images/partial-react-logo.png +0 -0
- package/files/expo/assets/images/react-logo.png +0 -0
- package/files/expo/assets/images/react-logo@2x.png +0 -0
- package/files/expo/assets/images/react-logo@3x.png +0 -0
- package/files/expo/assets/images/splash-icon.png +0 -0
- package/files/expo/babel.config.js +7 -6
- package/files/expo/components/Collapsible.tsx +52 -0
- package/files/expo/components/ExternalLink.tsx +32 -0
- package/files/expo/components/HapticTab.tsx +24 -0
- package/files/expo/components/HelloWave.tsx +35 -0
- package/files/expo/components/ParallaxScrollView.tsx +85 -0
- package/files/expo/components/ThemedText.tsx +70 -0
- package/files/expo/components/ThemedView.tsx +23 -0
- package/files/expo/components/ui/IconSymbol.ios.tsx +32 -0
- package/files/expo/components/ui/IconSymbol.tsx +41 -0
- package/files/expo/components/ui/TabBarBackground.ios.tsx +19 -0
- package/files/expo/components/ui/TabBarBackground.tsx +6 -0
- package/files/expo/constants/Colors.ts +17 -17
- package/files/expo/constants/theme.ts +17 -17
- package/files/expo/{eslint.config.js → eslint.config.mjs} +15 -19
- package/files/expo/hooks/useColorScheme.ts +13 -7
- package/files/expo/hooks/useColorScheme.web.ts +12 -9
- package/files/expo/hooks/useThemeColor.ts +19 -10
- package/files/expo/lib/data.ts +36 -33
- package/files/expo/lib/utils/index.ts +7 -2
- package/files/expo/lib/utils/polyfills.ts +1 -1
- package/files/expo/lib/wix/client.ts +3 -5
- package/files/expo/lib/wix/error.ts +3 -0
- package/files/expo/lib/wix/index.ts +1 -0
- package/files/expo/metro.config.js +31 -0
- package/files/expo/patches/@wix-sdk-npm-1.15.24-1adbec98e9.patch +20 -0
- package/files/expo/scripts/reset-project.ts +116 -0
- package/files/expo/tailwind.config.js +61 -196
- package/files/expo/tsconfig.json +31 -26
- package/package.json +1 -1
- package/src/init.ts +41 -16
- package/files/expo/.prettierrc.json +0 -16
- /package/files/expo/{readme.md → README.md} +0 -0
- /package/files/expo/{types/nativewind-env.d.ts → nativewind-env.d.ts} +0 -0
package/src/init.ts
CHANGED
@@ -187,10 +187,6 @@ import { JsonSchema } from "./schemas/index.js";
|
|
187
187
|
// console.log(blue.underline(`🐕 => Updated file ${orange(filePath)}`));
|
188
188
|
// }
|
189
189
|
// }
|
190
|
-
const yarn = Command.make("yarn").pipe(
|
191
|
-
Command.stdout("inherit"), // Stream stdout to process.stdout
|
192
|
-
Command.exitCode // Get the exit code
|
193
|
-
)
|
194
190
|
|
195
191
|
const init_expo = () => {
|
196
192
|
return Effect.gen(function*() {
|
@@ -199,16 +195,22 @@ const init_expo = () => {
|
|
199
195
|
const fs = yield* FileSystem.FileSystem;
|
200
196
|
const path = yield* Path.Path;
|
201
197
|
|
198
|
+
const resolutions = {
|
199
|
+
"@wix/sdk@1.15.24": "patch:@wix/sdk@npm:1.15.24#./patches/@wix-sdk-npm-1.15.24-1adbec98e9.patch",
|
200
|
+
}
|
202
201
|
const yarn = Command.make(
|
203
202
|
"yarn",
|
204
203
|
"add",
|
205
204
|
"nativewind",
|
206
205
|
"react-native-reanimated@~3.17.4",
|
207
206
|
"react-native-safe-area-context@5.4.0",
|
208
|
-
"@wix/sdk",
|
207
|
+
"@wix/sdk@1.15.24",
|
209
208
|
"@wix/data",
|
210
209
|
"expo-standard-web-crypto",
|
211
|
-
"effect"
|
210
|
+
"effect",
|
211
|
+
"node-libs-react-native",
|
212
|
+
"util",
|
213
|
+
"events",
|
212
214
|
).pipe(
|
213
215
|
Command.stdout("inherit"), // Stream stdout to process.stdout
|
214
216
|
Command.exitCode // Get the exit code
|
@@ -236,6 +238,8 @@ const init_expo = () => {
|
|
236
238
|
"typescript-eslint",
|
237
239
|
"typescript-eslint-language-service",
|
238
240
|
"@total-typescript/ts-reset",
|
241
|
+
"expo-doctor",
|
242
|
+
"tsx",
|
239
243
|
).pipe(
|
240
244
|
Command.stdout("inherit"), // Stream stdout to process.stdout
|
241
245
|
Command.exitCode // Get the exit code
|
@@ -297,6 +301,12 @@ const init_expo = () => {
|
|
297
301
|
|
298
302
|
console.log("Expo project initialized with app.json:", projectName);
|
299
303
|
|
304
|
+
const baseFiles = yield* fs.readDirectory(config.config.filesFolder + '/expo')
|
305
|
+
yield* Effect.forEach(
|
306
|
+
baseFiles,
|
307
|
+
(file) => fs.copy(path.join(config.config.filesFolder, 'expo', file), path.join(config.config.cwd, file), { overwrite: true })
|
308
|
+
)
|
309
|
+
|
300
310
|
let res = yield* npx
|
301
311
|
res = yield* yarn
|
302
312
|
res = yield* yarnDev
|
@@ -305,22 +315,20 @@ const init_expo = () => {
|
|
305
315
|
return yield* Effect.logError("Failed to install Expo dependencies. Please check the error message above.");
|
306
316
|
}
|
307
317
|
|
308
|
-
const baseFiles = yield* fs.readDirectory(config.config.filesFolder + '/expo')
|
309
|
-
yield* Effect.forEach(
|
310
|
-
baseFiles,
|
311
|
-
(file) => fs.copy(path.join(config.config.filesFolder, 'expo', file), path.join(config.config.cwd, file), { overwrite: true })
|
312
|
-
)
|
313
|
-
|
314
318
|
const newScripts = {
|
315
319
|
"dev": "expo start",
|
316
320
|
"start": "expo start",
|
317
321
|
"android": "expo start --android",
|
318
322
|
"ios": "expo start --ios",
|
319
323
|
"web": "expo start --web",
|
324
|
+
"reset": "tsx ./scripts/reset-project.ts",
|
320
325
|
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
321
|
-
"build:
|
322
|
-
"build:
|
323
|
-
"build:
|
326
|
+
"build:dev": "eas build --local --profile development",
|
327
|
+
"build:sim": "eas build --local --profile simulator",
|
328
|
+
"build:prev": "eas build --local --profile preview",
|
329
|
+
"build:prod": "eas build --local --profile production",
|
330
|
+
"build:web": "expo export --platform web",
|
331
|
+
"doctor": "expo-doctor"
|
324
332
|
}
|
325
333
|
|
326
334
|
const packageJsonPath = path.join(config.config.cwd, "package.json")
|
@@ -329,11 +337,28 @@ const init_expo = () => {
|
|
329
337
|
|
330
338
|
packageJson.scripts = {
|
331
339
|
...packageJson.scripts,
|
332
|
-
...newScripts
|
340
|
+
...newScripts,
|
333
341
|
};
|
342
|
+
packageJson.resolutions = {
|
343
|
+
...packageJson.resolutions,
|
344
|
+
...resolutions,
|
345
|
+
};
|
346
|
+
packageJson.expo = {
|
347
|
+
doctor: {
|
348
|
+
reactNativeDirectoryCheck: {
|
349
|
+
listUnknownPackages: false,
|
350
|
+
},
|
351
|
+
}
|
352
|
+
}
|
353
|
+
|
334
354
|
yield* fs.writeFileString(path.join(config.config.cwd, 'package.json'), JSON.stringify(packageJson, null, 2));
|
335
355
|
yield* fs.remove(path.join(config.config.cwd, "package-lock.json"), { force: true })
|
336
356
|
|
357
|
+
yield* Command.make("yarn").pipe(
|
358
|
+
Command.stdout("inherit"), // Stream stdout to process.stdout
|
359
|
+
Command.exitCode // Get the exit code
|
360
|
+
)
|
361
|
+
|
337
362
|
})
|
338
363
|
}
|
339
364
|
|
@@ -1,16 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"printWidth": 80,
|
3
|
-
"tabWidth": 4,
|
4
|
-
"useTabs": true,
|
5
|
-
"singleQuote": true,
|
6
|
-
"trailingComma": "all",
|
7
|
-
"plugins": ["prettier-plugin-tailwindcss"],
|
8
|
-
"overrides": [
|
9
|
-
{
|
10
|
-
"files": ["**/*.{json,jsonc,json5}", "*.{json,jsonc,json5}"],
|
11
|
-
"options": {
|
12
|
-
"useTabs": true
|
13
|
-
}
|
14
|
-
}
|
15
|
-
]
|
16
|
-
}
|
File without changes
|
File without changes
|