lucy-cli 2.0.0-beta.3 → 2.0.0-beta.6

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 (204) hide show
  1. package/.wix/debug.log +10 -0
  2. package/dist/args.js +0 -1
  3. package/dist/args.js.map +1 -1
  4. package/dist/commands/checks.d.ts +2 -2
  5. package/dist/commands/edit.d.ts +1 -1
  6. package/dist/commands/exec.d.ts +1 -1
  7. package/dist/commands/exec.js +15 -13
  8. package/dist/commands/exec.js.map +1 -1
  9. package/dist/commands/git.d.ts +2 -2
  10. package/dist/commands/home.d.ts +2 -2
  11. package/dist/commands/home.js +25 -2
  12. package/dist/commands/home.js.map +1 -1
  13. package/dist/commands/install.d.ts +1 -0
  14. package/dist/commands/install.js +29 -16
  15. package/dist/commands/install.js.map +1 -1
  16. package/dist/commands/read.d.ts +3 -3
  17. package/dist/config.d.ts +1 -1
  18. package/dist/index.js +0 -0
  19. package/dist/init/blocks.d.ts +1 -1
  20. package/dist/init/blocks.js +2 -2
  21. package/dist/init/cargo.d.ts +1 -1
  22. package/dist/init/cargo.js +2 -2
  23. package/dist/init/expo.d.ts +1 -1
  24. package/dist/init/expo.js +2 -2
  25. package/dist/init/gitModules.d.ts +1 -1
  26. package/dist/init/index.d.ts +1 -2
  27. package/dist/init/index.js +7 -1
  28. package/dist/init/index.js.map +1 -1
  29. package/dist/init/monorepo.d.ts +1 -1
  30. package/dist/init/monorepo.js +2 -2
  31. package/dist/init/prepareVelo.d.ts +1 -1
  32. package/dist/init/tauri.d.ts +1 -1
  33. package/dist/init/tauri.js +2 -2
  34. package/dist/init/templates.d.ts +1 -1
  35. package/dist/init/velo.d.ts +1 -1
  36. package/dist/init/velo.js +3 -2
  37. package/dist/init/velo.js.map +1 -1
  38. package/dist/runtime.d.ts +1 -1
  39. package/dist/schemas/index.d.ts +1 -0
  40. package/dist/schemas/index.js +1 -0
  41. package/dist/schemas/index.js.map +1 -1
  42. package/dist/schemas/lucy.d.ts +2 -2
  43. package/dist/schemas/lucy.js +1 -1
  44. package/dist/schemas/lucy.js.map +1 -1
  45. package/dist/tasks/index.d.ts +1 -1
  46. package/dist/wix-sdk/index.d.ts +1 -1
  47. package/dist/wix-sdk/init.d.ts +1 -1
  48. package/dist/wix-sdk/run.d.ts +1 -1
  49. package/dist/wix-sync/index.d.ts +1 -1
  50. package/dist/wix-sync/init.d.ts +1 -1
  51. package/files/templates/expo verse[D]/files/.nvmrc +1 -0
  52. package/files/templates/expo verse[D]/files/.prettierignore +23 -0
  53. package/files/templates/expo verse[D]/files/.prettierrc.js +16 -0
  54. package/files/templates/expo verse[D]/files/.stylelintrc.json +8 -0
  55. package/files/templates/expo verse[D]/files/.vscode/extensions.json +10 -0
  56. package/files/templates/expo verse[D]/files/.vscode/launch.json +54 -0
  57. package/files/templates/expo verse[D]/files/.vscode/settings.json +30 -0
  58. package/files/templates/expo verse[D]/files/.vscode/tasks.json +0 -0
  59. package/files/templates/expo verse[D]/files/.yarnrc +1 -0
  60. package/files/templates/expo verse[D]/files/.yarnrc.yml +8 -0
  61. package/files/templates/expo verse[D]/files/App.tsx +63 -0
  62. package/files/templates/expo verse[D]/files/DEBUGGING.md +126 -0
  63. package/files/templates/expo verse[D]/files/README.md +45 -0
  64. package/files/templates/expo verse[D]/files/android/app/build.gradle +177 -0
  65. package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
  66. package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +14 -0
  67. package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +7 -0
  68. package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +33 -0
  69. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
  70. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
  71. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  72. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  73. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  74. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  75. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
  76. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
  77. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
  78. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
  79. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
  80. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  81. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  82. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  83. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
  84. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
  85. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  86. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  87. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
  88. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  89. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  90. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  91. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
  92. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  93. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  94. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  95. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
  96. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  97. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  98. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  99. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
  100. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  101. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  102. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  103. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
  104. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  105. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +6 -0
  106. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +7 -0
  107. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +12 -0
  108. package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +3 -0
  109. package/files/templates/expo verse[D]/files/android/build.gradle +37 -0
  110. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  111. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  112. package/files/templates/expo verse[D]/files/android/gradle.properties +59 -0
  113. package/files/templates/expo verse[D]/files/android/gradlew +251 -0
  114. package/files/templates/expo verse[D]/files/android/gradlew.bat +94 -0
  115. package/files/templates/expo verse[D]/files/android/settings.gradle +39 -0
  116. package/files/templates/expo verse[D]/files/app.config.ts +77 -0
  117. package/files/templates/expo verse[D]/files/assets/data/de.csv +949 -0
  118. package/files/templates/expo verse[D]/files/assets/data/en.csv +949 -0
  119. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
  120. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
  121. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
  122. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
  123. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
  124. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
  125. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
  126. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
  127. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
  128. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
  129. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
  130. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
  131. package/files/templates/expo verse[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  132. package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
  133. package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
  134. package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
  135. package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
  136. package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
  137. package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
  138. package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
  139. package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
  140. package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
  141. package/files/templates/expo verse[D]/files/babel.config.js +10 -0
  142. package/files/templates/expo verse[D]/files/components/.gitkeep +0 -0
  143. package/files/templates/expo verse[D]/files/components/MainScreen.tsx +299 -0
  144. package/files/templates/expo verse[D]/files/components/Share.tsx +132 -0
  145. package/files/templates/expo verse[D]/files/components/ui/.gitkeep +0 -0
  146. package/files/templates/expo verse[D]/files/components/ui/dev.tsx +48 -0
  147. package/files/templates/expo verse[D]/files/constants/config.ts +30 -0
  148. package/files/templates/expo verse[D]/files/constants/theme.ts +18 -0
  149. package/files/templates/expo verse[D]/files/data/de.csv +219 -0
  150. package/files/templates/expo verse[D]/files/data/en.csv +219 -0
  151. package/files/templates/expo verse[D]/files/data/version.json +4 -0
  152. package/files/templates/expo verse[D]/files/eas.json +47 -0
  153. package/files/templates/expo verse[D]/files/eslint.config.mjs +185 -0
  154. package/files/templates/expo verse[D]/files/global.css +47 -0
  155. package/files/templates/expo verse[D]/files/hooks/useColorScheme.ts +17 -0
  156. package/files/templates/expo verse[D]/files/index.ts +28 -0
  157. package/files/templates/expo verse[D]/files/lib/content.ts +31 -0
  158. package/files/templates/expo verse[D]/files/lib/data.ts +180 -0
  159. package/files/templates/expo verse[D]/files/lib/helper.ts +54 -0
  160. package/files/templates/expo verse[D]/files/lib/index.ts +21 -0
  161. package/files/templates/expo verse[D]/files/lib/state.ts +128 -0
  162. package/files/templates/expo verse[D]/files/lib/storage.ts +17 -0
  163. package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +38 -0
  164. package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +14 -0
  165. package/files/templates/expo verse[D]/files/lib/utils/index.ts +11 -0
  166. package/files/templates/expo verse[D]/files/lib/utils/polyfills.ts +29 -0
  167. package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +77 -0
  168. package/files/templates/expo verse[D]/files/lucy.json +8 -0
  169. package/files/templates/expo verse[D]/files/metro.config.js +81 -0
  170. package/files/templates/expo verse[D]/files/models/index.ts +28 -0
  171. package/files/templates/expo verse[D]/files/nativewind-env.d.ts +1 -0
  172. package/files/templates/expo verse[D]/files/package.json +102 -0
  173. package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +3 -0
  174. package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +309 -0
  175. package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +83 -0
  176. package/files/templates/expo verse[D]/files/scripts/reset-project.ts +116 -0
  177. package/files/templates/expo verse[D]/files/tailwind.config.js +63 -0
  178. package/files/templates/expo verse[D]/files/tsconfig.json +45 -0
  179. package/files/templates/expo verse[D]/files/types/index.ts +4 -0
  180. package/files/templates/expo verse[D]/files/types/reset.d.ts +1 -0
  181. package/files/templates/expo verse[D]/lucy.json +86 -0
  182. package/files/templates/expo[D]/files/app.config.ts +69 -0
  183. package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  184. package/files/templates/expo[D]/files/scripts/reset-project.ts +0 -0
  185. package/files/templates/velo[D]/files/.yarnrc.yml +1 -2
  186. package/files/templates/velo[D]/lucy.json +1 -1
  187. package/mitarbeiter-login.html +188 -0
  188. package/old/index.ts +0 -0
  189. package/package.json +11 -11
  190. package/pnpm-workspace.yaml +6 -0
  191. package/src/args.ts +0 -1
  192. package/src/commands/exec.ts +22 -18
  193. package/src/commands/home.ts +36 -2
  194. package/src/commands/install.ts +41 -21
  195. package/src/index.ts +0 -0
  196. package/src/init/blocks.ts +2 -2
  197. package/src/init/cargo.ts +2 -2
  198. package/src/init/expo.ts +2 -2
  199. package/src/init/index.ts +7 -1
  200. package/src/init/monorepo.ts +2 -2
  201. package/src/init/tauri.ts +2 -2
  202. package/src/init/velo.ts +4 -3
  203. package/src/schemas/index.ts +2 -0
  204. package/src/schemas/lucy.ts +1 -1
package/src/init/expo.ts CHANGED
@@ -7,7 +7,7 @@ import { mergeAdditions, mergeLucySettings2PackageJson, setInitialized } from ".
7
7
  import { writeLucySettings, writePackageJson } from "../commands/write.js";
8
8
  import { copyTemplateFiles } from "../commands/copy.js";
9
9
  import { readPackageJson } from "../commands/read.js";
10
- import { execCommand, openVSCode } from "../commands/exec.js";
10
+ import { execCommand, openEditor } from "../commands/exec.js";
11
11
  import { approveBuilds, installPackages } from "../commands/install.js";
12
12
  import { AppError } from "../error.js";
13
13
  import { cleanup } from "../commands/cleanup.js";
@@ -64,6 +64,6 @@ export const init_expo = () => {
64
64
 
65
65
  logger.success("Expo project initialized successfully!");
66
66
 
67
- yield* openVSCode;
67
+ yield* openEditor;
68
68
  })
69
69
  }
package/src/init/index.ts CHANGED
@@ -40,13 +40,19 @@ export const init = Effect.gen(function* (_) {
40
40
  yield* selectTemplate();
41
41
  yield* readLucyJsonFromTemplate;
42
42
 
43
+ function supportedPackageManagers() {
44
+ if(config.config.action.initType === 'velo') {
45
+ return pkgManagers.filter(pkgMgr => pkgMgr !== 'pnpm')
46
+ }
47
+ return pkgManagers
48
+ }
43
49
  const pkgMgrQuestion = new Enquirer();
44
50
  const pkgMgr = yield* Effect.tryPromise({
45
51
  try: () => pkgMgrQuestion.prompt({
46
52
  type: 'select',
47
53
  name: 'packageManager',
48
54
  message: 'Select a package manager',
49
- choices: [...pkgManagers],
55
+ choices: [...supportedPackageManagers()],
50
56
  }),
51
57
  catch: (e) => {
52
58
  return new AppError({ cause: e, message: 'Error selecting package manager' });
@@ -10,7 +10,7 @@ import { approveBuilds, installPackages, runInstall } from "../commands/install.
10
10
  import { cleanup } from "../commands/cleanup.js";
11
11
  import { gitInit } from "../commands/git.js";
12
12
  import { checkForDirty } from "../commands/checks.js";
13
- import { openVSCode } from "../commands/exec.js";
13
+ import { openEditor } from "../commands/exec.js";
14
14
 
15
15
  export const init_monorepo = () => {
16
16
  return Effect.gen(function*() {
@@ -67,6 +67,6 @@ export const init_monorepo = () => {
67
67
 
68
68
  logger.success("Monorepo initialized successfully!");
69
69
 
70
- yield* openVSCode;
70
+ yield* openEditor;
71
71
  })
72
72
  }
package/src/init/tauri.ts CHANGED
@@ -9,7 +9,7 @@ import { Config } from "../config.js";
9
9
  import { Command, FileSystem, Path } from "@effect/platform"
10
10
  import { AppError } from "../error.js";
11
11
  import { approveBuilds, installPackages } from "../commands/install.js";
12
- import { openVSCode } from "../commands/exec.js";
12
+ import { openEditor } from "../commands/exec.js";
13
13
 
14
14
  export const init_tauri = () => {
15
15
  return Effect.gen(function*() {
@@ -37,6 +37,6 @@ export const init_tauri = () => {
37
37
 
38
38
  logger.success("Tauri project initialized successfully!");
39
39
 
40
- yield* openVSCode;
40
+ yield* openEditor;
41
41
  })
42
42
  }
package/src/init/velo.ts CHANGED
@@ -6,14 +6,14 @@ import { mergeAdditions, mergeLucySettings2PackageJson, setInitialized, setProje
6
6
  import { writeLucySettings, writePackageJson } from "../commands/write.js";
7
7
  import { copyTemplateFiles } from "../commands/copy.js";
8
8
  import { readPackageJson } from "../commands/read.js";
9
- import { installVeloPackages, runInstall } from "../commands/install.js";
9
+ import { installVeloPackages, runInstall, yarnSetVersion } from "../commands/install.js";
10
10
  import { cleanup } from "../commands/cleanup.js";
11
11
  import { gitInit } from "../commands/git.js";
12
12
  import { checkForVelo } from "../commands/checks.js";
13
13
  import { AppError } from "../error.js";
14
14
  import Enquirer from "enquirer";
15
15
  import { prepareVelo } from "./prepareVelo.js";
16
- import { openVSCode } from "../commands/exec.js";
16
+ import { openEditor } from "../commands/exec.js";
17
17
 
18
18
  export const init_velo = () => {
19
19
  return Effect.gen(function*() {
@@ -53,6 +53,7 @@ export const init_velo = () => {
53
53
  yield* writeLucySettings;
54
54
  yield* writePackageJson;
55
55
  yield* gitInit();
56
+ yield* runInstall;
56
57
  yield* installVeloPackages;
57
58
  yield* runInstall;
58
59
  yield* cleanup;
@@ -60,6 +61,6 @@ export const init_velo = () => {
60
61
 
61
62
  logger.success("Velo initialized successfully!");
62
63
 
63
- yield* openVSCode;
64
+ yield* openEditor;
64
65
  })
65
66
  }
@@ -13,3 +13,5 @@ export const wixSDKSettings = Schema.Struct({
13
13
  siteId: Schema.String,
14
14
  });
15
15
  export type WixSDKSettings = typeof wixSDKSettings.Type;
16
+
17
+ export const editors = ['vscode', 'cursor'] as const;
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect/index";
2
2
  import { initTypes } from "./types.js";
3
3
 
4
- export const pkgManagers = ['pnpm', 'npm', 'yarn'] as const;
4
+ export const pkgManagers = ['pnpm', 'yarn', 'npm'] as const;
5
5
  export const lucySettings = Schema.mutable(Schema.Struct({
6
6
  modules: Schema.Record({
7
7
  key: Schema.String,