lucy-cli 2.0.0-alpha.9 → 2.0.0-beta.10

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 (620) hide show
  1. package/.cursorignore +4 -0
  2. package/.wix/debug.log +10 -0
  3. package/.yarnrc.yml +0 -1
  4. package/README.md +117 -102
  5. package/dist/args.d.ts +1 -6
  6. package/dist/args.js +102 -7
  7. package/dist/args.js.map +1 -0
  8. package/dist/commands/checks.d.ts +7 -0
  9. package/dist/commands/checks.js +47 -0
  10. package/dist/commands/checks.js.map +1 -0
  11. package/dist/commands/cleanup.d.ts +4 -0
  12. package/dist/commands/cleanup.js +10 -0
  13. package/dist/commands/cleanup.js.map +1 -0
  14. package/dist/commands/copy.d.ts +6 -0
  15. package/dist/commands/copy.js +20 -0
  16. package/dist/commands/copy.js.map +1 -0
  17. package/dist/commands/edit.d.ts +10 -0
  18. package/dist/commands/edit.js +67 -0
  19. package/dist/commands/edit.js.map +1 -0
  20. package/dist/commands/exec.d.ts +7 -0
  21. package/dist/commands/exec.js +69 -0
  22. package/dist/commands/exec.js.map +1 -0
  23. package/dist/commands/git.d.ts +8 -0
  24. package/dist/commands/git.js +104 -0
  25. package/dist/commands/git.js.map +1 -0
  26. package/dist/commands/home.d.ts +4 -0
  27. package/dist/commands/home.js +41 -0
  28. package/dist/commands/home.js.map +1 -0
  29. package/dist/commands/install.d.ts +9 -0
  30. package/dist/commands/install.js +178 -0
  31. package/dist/commands/install.js.map +1 -0
  32. package/dist/commands/read.d.ts +6 -0
  33. package/dist/commands/read.js +40 -0
  34. package/dist/commands/read.js.map +1 -0
  35. package/dist/commands/write.d.ts +7 -0
  36. package/dist/commands/write.js +28 -0
  37. package/dist/commands/write.js.map +1 -0
  38. package/dist/commands.js +1 -0
  39. package/dist/commands.js.map +1 -0
  40. package/dist/config.d.ts +29 -7
  41. package/dist/config.js +90 -26
  42. package/dist/config.js.map +1 -0
  43. package/dist/error.d.ts +1 -9
  44. package/dist/error.js +1 -2
  45. package/dist/error.js.map +1 -0
  46. package/dist/helpers.d.ts +9 -0
  47. package/dist/helpers.js +76 -0
  48. package/dist/helpers.js.map +1 -0
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.js +80 -10
  51. package/dist/index.js.map +1 -0
  52. package/dist/init/blocks.d.ts +5 -0
  53. package/dist/init/blocks.js +62 -0
  54. package/dist/init/blocks.js.map +1 -0
  55. package/dist/init/cargo.d.ts +2 -0
  56. package/dist/init/cargo.js +21 -0
  57. package/dist/init/cargo.js.map +1 -0
  58. package/dist/init/expo.d.ts +5 -0
  59. package/dist/init/expo.js +52 -0
  60. package/dist/init/expo.js.map +1 -0
  61. package/dist/init/gitModules.d.ts +2 -0
  62. package/dist/init/gitModules.js +13 -0
  63. package/dist/init/gitModules.js.map +1 -0
  64. package/dist/init/index.d.ts +3 -0
  65. package/dist/init/index.js +86 -0
  66. package/dist/init/index.js.map +1 -0
  67. package/dist/init/monorepo.d.ts +4 -0
  68. package/dist/init/monorepo.js +48 -0
  69. package/dist/init/monorepo.js.map +1 -0
  70. package/dist/init/prepareVelo.d.ts +2 -0
  71. package/dist/init/prepareVelo.js +16 -0
  72. package/dist/init/prepareVelo.js.map +1 -0
  73. package/dist/init/tauri.d.ts +5 -0
  74. package/dist/init/tauri.js +32 -0
  75. package/dist/init/tauri.js.map +1 -0
  76. package/dist/init/templates.d.ts +5 -0
  77. package/dist/init/templates.js +93 -0
  78. package/dist/init/templates.js.map +1 -0
  79. package/dist/init/velo.d.ts +5 -0
  80. package/dist/init/velo.js +61 -0
  81. package/dist/init/velo.js.map +1 -0
  82. package/dist/policy.js +1 -0
  83. package/dist/policy.js.map +1 -0
  84. package/dist/prepare.js +1 -0
  85. package/dist/prepare.js.map +1 -0
  86. package/dist/runtime.d.ts +1 -1
  87. package/dist/runtime.js +1 -0
  88. package/dist/runtime.js.map +1 -0
  89. package/dist/schemas/gulp.d.ts +25 -0
  90. package/dist/schemas/gulp.js +8 -0
  91. package/dist/schemas/gulp.js.map +1 -0
  92. package/dist/schemas/index.d.ts +11 -0
  93. package/dist/schemas/index.js +10 -0
  94. package/dist/schemas/index.js.map +1 -0
  95. package/dist/schemas/lucy.d.ts +29 -0
  96. package/dist/schemas/lucy.js +42 -0
  97. package/dist/schemas/lucy.js.map +1 -0
  98. package/dist/schemas/tsconfig.js +2 -0
  99. package/dist/schemas/tsconfig.js.map +1 -0
  100. package/dist/schemas/types.d.ts +33 -0
  101. package/dist/schemas/types.js +5 -1
  102. package/dist/schemas/types.js.map +1 -0
  103. package/dist/states.js +1 -0
  104. package/dist/states.js.map +1 -0
  105. package/dist/tasks/Gulpfile.d.ts +4 -0
  106. package/dist/tasks/Gulpfile.js +111 -0
  107. package/dist/tasks/Gulpfile.js.map +1 -0
  108. package/dist/tasks/gulp/backend.d.ts +4 -0
  109. package/dist/tasks/gulp/backend.js +92 -0
  110. package/dist/tasks/gulp/backend.js.map +1 -0
  111. package/dist/tasks/gulp/checks.d.ts +4 -0
  112. package/dist/tasks/gulp/checks.js +203 -0
  113. package/dist/tasks/gulp/checks.js.map +1 -0
  114. package/dist/tasks/gulp/clean.d.ts +3 -0
  115. package/dist/tasks/gulp/clean.js +33 -0
  116. package/dist/tasks/gulp/clean.js.map +1 -0
  117. package/dist/tasks/gulp/copy.d.ts +3 -0
  118. package/dist/tasks/gulp/copy.js +34 -0
  119. package/dist/tasks/gulp/copy.js.map +1 -0
  120. package/dist/tasks/gulp/helpers.d.ts +3 -0
  121. package/dist/tasks/gulp/helpers.js +19 -0
  122. package/dist/tasks/gulp/helpers.js.map +1 -0
  123. package/dist/tasks/gulp/pages.d.ts +2 -0
  124. package/dist/tasks/gulp/pages.js +39 -0
  125. package/dist/tasks/gulp/pages.js.map +1 -0
  126. package/dist/tasks/gulp/pipeline.d.ts +1 -0
  127. package/dist/tasks/gulp/pipeline.js +29 -0
  128. package/dist/tasks/gulp/pipeline.js.map +1 -0
  129. package/dist/tasks/gulp/public.d.ts +3 -0
  130. package/dist/tasks/gulp/public.js +50 -0
  131. package/dist/tasks/gulp/public.js.map +1 -0
  132. package/dist/tasks/gulp/styles.d.ts +3 -0
  133. package/dist/tasks/gulp/styles.js +40 -0
  134. package/dist/tasks/gulp/styles.js.map +1 -0
  135. package/dist/tasks/gulp/templates.d.ts +2 -0
  136. package/dist/tasks/gulp/templates.js +45 -0
  137. package/dist/tasks/gulp/templates.js.map +1 -0
  138. package/dist/tasks/gulp/types.d.ts +4 -0
  139. package/dist/tasks/gulp/types.js +293 -0
  140. package/dist/tasks/gulp/types.js.map +1 -0
  141. package/dist/tasks/gulp/watchers.d.ts +3 -0
  142. package/dist/tasks/gulp/watchers.js +59 -0
  143. package/dist/tasks/gulp/watchers.js.map +1 -0
  144. package/dist/tasks/index.d.ts +4 -0
  145. package/dist/tasks/index.js +23 -0
  146. package/dist/tasks/index.js.map +1 -0
  147. package/dist/tasks/syncSettings.d.ts +3 -0
  148. package/dist/tasks/syncSettings.js +18 -0
  149. package/dist/tasks/syncSettings.js.map +1 -0
  150. package/dist/utils/index.js +2 -0
  151. package/dist/utils/index.js.map +1 -0
  152. package/dist/utils/logger.d.ts +17 -0
  153. package/dist/utils/logger.js +37 -0
  154. package/dist/utils/logger.js.map +1 -0
  155. package/dist/wix-sdk/check.d.ts +4 -0
  156. package/dist/wix-sdk/check.js +23 -0
  157. package/dist/wix-sdk/check.js.map +1 -0
  158. package/dist/wix-sdk/client.d.ts +10 -0
  159. package/dist/wix-sdk/client.js +18 -0
  160. package/dist/wix-sdk/client.js.map +1 -0
  161. package/dist/wix-sdk/index.d.ts +4 -0
  162. package/dist/wix-sdk/index.js +15 -0
  163. package/dist/wix-sdk/index.js.map +1 -0
  164. package/dist/wix-sdk/init.d.ts +4 -0
  165. package/dist/wix-sdk/init.js +51 -0
  166. package/dist/wix-sdk/init.js.map +1 -0
  167. package/dist/wix-sdk/run.d.ts +4 -0
  168. package/dist/wix-sdk/run.js +53 -0
  169. package/dist/wix-sdk/run.js.map +1 -0
  170. package/dist/wix-sync/client.d.ts +3 -0
  171. package/dist/wix-sync/client.js +5 -0
  172. package/dist/wix-sync/client.js.map +1 -0
  173. package/dist/wix-sync/export.d.ts +4 -0
  174. package/dist/wix-sync/export.js +15 -0
  175. package/dist/wix-sync/export.js.map +1 -0
  176. package/dist/wix-sync/import.d.ts +4 -0
  177. package/dist/wix-sync/import.js +26 -0
  178. package/dist/wix-sync/import.js.map +1 -0
  179. package/dist/wix-sync/index.d.ts +4 -0
  180. package/dist/wix-sync/index.js +35 -0
  181. package/dist/wix-sync/index.js.map +1 -0
  182. package/dist/wix-sync/init.d.ts +4 -0
  183. package/dist/wix-sync/init.js +74 -0
  184. package/dist/wix-sync/init.js.map +1 -0
  185. package/dist/wix-sync/is-alive.d.ts +4 -0
  186. package/dist/wix-sync/is-alive.js +23 -0
  187. package/dist/wix-sync/is-alive.js.map +1 -0
  188. package/dist/wix-sync/migrate.d.ts +4 -0
  189. package/dist/wix-sync/migrate.js +21 -0
  190. package/dist/wix-sync/migrate.js.map +1 -0
  191. package/dist/wix-sync/sync.d.ts +4 -0
  192. package/dist/wix-sync/sync.js +26 -0
  193. package/dist/wix-sync/sync.js.map +1 -0
  194. package/files/sync-data/data/test.csv +17 -0
  195. package/files/sync-data/files/lucy.jpg +0 -0
  196. package/files/sync-data/schema/test.json +11 -0
  197. package/files/templates/block[D]/files/.cursorignore +4 -0
  198. package/files/templates/block[D]/files/.stylelintrc.js +8 -0
  199. package/files/templates/block[D]/lucy.json +9 -0
  200. package/files/templates/cargo[D]/files/.cursorignore +4 -0
  201. package/files/templates/cargo[D]/files/.env +1 -0
  202. package/files/templates/cargo[D]/files/Cargo.toml +238 -0
  203. package/files/templates/cargo[D]/files/Makefile.toml +4 -0
  204. package/files/templates/cargo[D]/files/build/main.rs +35 -0
  205. package/files/templates/cargo[D]/files/config/beta.json +19 -0
  206. package/files/templates/cargo[D]/files/config/ci.json +15 -0
  207. package/files/templates/cargo[D]/files/config/default.json +71 -0
  208. package/files/templates/cargo[D]/files/config/development.json +10 -0
  209. package/files/templates/cargo[D]/files/config/produktion.json +5 -0
  210. package/files/templates/cargo[D]/files/config/stage.json +4 -0
  211. package/files/templates/cargo[D]/files/locales/todo.yml +3 -0
  212. package/files/templates/cargo[D]/files/public/index.html +1 -0
  213. package/files/templates/cargo[D]/lucy.json +15 -0
  214. package/files/templates/expo verse[D]/files/.stylelintrc.json +8 -0
  215. package/files/templates/expo verse[D]/files/.vscode/extensions.json +10 -0
  216. package/files/templates/expo verse[D]/files/.vscode/launch.json +54 -0
  217. package/files/templates/expo verse[D]/files/.vscode/settings.json +30 -0
  218. package/files/templates/expo verse[D]/files/.yarnrc.yml +8 -0
  219. package/files/templates/expo verse[D]/files/App.tsx +63 -0
  220. package/files/templates/expo verse[D]/files/DEBUGGING.md +126 -0
  221. package/files/templates/expo verse[D]/files/android/app/build.gradle +177 -0
  222. package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
  223. package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +14 -0
  224. package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +7 -0
  225. package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +33 -0
  226. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
  227. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
  228. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  229. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  230. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  231. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  232. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
  233. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
  234. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
  235. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
  236. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
  237. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  238. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  239. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  240. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
  241. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
  242. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  243. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  244. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
  245. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  246. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  247. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  248. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
  249. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  250. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  251. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  252. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
  253. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  254. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  255. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  256. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
  257. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  258. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  259. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  260. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
  261. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  262. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +6 -0
  263. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +7 -0
  264. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +12 -0
  265. package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +3 -0
  266. package/files/templates/expo verse[D]/files/android/build.gradle +37 -0
  267. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  268. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  269. package/files/templates/expo verse[D]/files/android/gradle.properties +59 -0
  270. package/files/templates/expo verse[D]/files/android/gradlew +251 -0
  271. package/files/templates/expo verse[D]/files/android/gradlew.bat +94 -0
  272. package/files/templates/expo verse[D]/files/android/settings.gradle +39 -0
  273. package/files/templates/expo verse[D]/files/app.config.ts +77 -0
  274. package/files/templates/expo verse[D]/files/assets/data/de.csv +949 -0
  275. package/files/templates/expo verse[D]/files/assets/data/en.csv +949 -0
  276. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
  277. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
  278. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
  279. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
  280. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
  281. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
  282. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
  283. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
  284. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
  285. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
  286. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
  287. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
  288. package/files/{expo → templates/expo verse[D]/files}/assets/fonts/SpaceMono-Regular.ttf +0 -0
  289. package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
  290. package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
  291. package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
  292. package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
  293. package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
  294. package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
  295. package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
  296. package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
  297. package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
  298. package/files/templates/expo verse[D]/files/components/MainScreen.tsx +299 -0
  299. package/files/templates/expo verse[D]/files/components/Share.tsx +132 -0
  300. package/files/templates/expo verse[D]/files/components/ui/dev.tsx +48 -0
  301. package/files/templates/expo verse[D]/files/constants/config.ts +30 -0
  302. package/files/templates/expo verse[D]/files/data/de.csv +219 -0
  303. package/files/templates/expo verse[D]/files/data/en.csv +219 -0
  304. package/files/templates/expo verse[D]/files/data/version.json +4 -0
  305. package/files/templates/expo verse[D]/files/eas.json +47 -0
  306. package/files/templates/expo verse[D]/files/eslint.config.mjs +185 -0
  307. package/files/templates/expo verse[D]/files/index.ts +28 -0
  308. package/files/templates/expo verse[D]/files/lib/content.ts +31 -0
  309. package/files/templates/expo verse[D]/files/lib/data.ts +180 -0
  310. package/files/templates/expo verse[D]/files/lib/helper.ts +54 -0
  311. package/files/templates/expo verse[D]/files/lib/index.ts +21 -0
  312. package/files/templates/expo verse[D]/files/lib/state.ts +128 -0
  313. package/files/templates/expo verse[D]/files/lib/storage.ts +17 -0
  314. package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +38 -0
  315. package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +14 -0
  316. package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +77 -0
  317. package/files/templates/expo verse[D]/files/metro.config.js +81 -0
  318. package/files/templates/expo verse[D]/files/models/index.ts +28 -0
  319. package/files/templates/expo verse[D]/files/package.json +102 -0
  320. package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +3 -0
  321. package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +309 -0
  322. package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +83 -0
  323. package/files/{expo → templates/expo verse[D]/files}/scripts/reset-project.ts +0 -0
  324. package/files/templates/expo verse[D]/files/tsconfig.json +45 -0
  325. package/files/templates/expo verse[D]/files/types/index.ts +4 -0
  326. package/files/templates/expo verse[D]/files/types/reset.d.ts +1 -0
  327. package/files/templates/expo verse[D]/lucy.json +86 -0
  328. package/files/templates/expo[D]/files/.cursorignore +4 -0
  329. package/files/templates/expo[D]/files/.nvmrc +1 -0
  330. package/files/templates/expo[D]/files/.prettierignore +23 -0
  331. package/files/templates/expo[D]/files/.prettierrc.js +16 -0
  332. package/files/templates/expo[D]/files/.stylelintrc.js +8 -0
  333. package/files/templates/expo[D]/files/.yarnrc +1 -0
  334. package/files/templates/expo[D]/files/README.md +45 -0
  335. package/files/templates/expo[D]/files/app.config.ts +69 -0
  336. package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  337. package/files/templates/expo[D]/files/babel.config.js +10 -0
  338. package/files/templates/expo[D]/files/constants/theme.ts +18 -0
  339. package/files/{expo → templates/expo[D]/files}/eas.json +9 -3
  340. package/files/templates/expo[D]/files/global.css +47 -0
  341. package/files/templates/expo[D]/files/hooks/useColorScheme.ts +17 -0
  342. package/files/templates/expo[D]/files/lib/data.ts +197 -0
  343. package/files/templates/expo[D]/files/lib/utils/index.ts +11 -0
  344. package/files/templates/expo[D]/files/lib/utils/polyfills.ts +29 -0
  345. package/files/{expo → templates/expo[D]/files}/metro.config.js +6 -0
  346. package/files/templates/expo[D]/files/nativewind-env.d.ts +1 -0
  347. package/files/templates/expo[D]/files/pnpm-workspace.yaml +3 -0
  348. package/files/templates/expo[D]/files/scripts/reset-project.ts +116 -0
  349. package/files/templates/expo[D]/files/tailwind.config.js +63 -0
  350. package/files/templates/expo[D]/lucy.json +86 -0
  351. package/files/templates/monorepo[D]/files/.cursorignore +4 -0
  352. package/files/templates/monorepo[D]/files/.editorconfig +10 -0
  353. package/files/templates/monorepo[D]/files/.nvmrc +1 -0
  354. package/files/templates/monorepo[D]/files/.prettierignore +23 -0
  355. package/files/templates/monorepo[D]/files/.prettierrc.json +15 -0
  356. package/files/templates/monorepo[D]/files/.stylelintrc.js +8 -0
  357. package/files/templates/monorepo[D]/files/.yarnrc +1 -0
  358. package/files/{velo → templates/monorepo[D]/files}/.yarnrc.yml +1 -1
  359. package/files/templates/monorepo[D]/files/README.md +109 -0
  360. package/files/templates/monorepo[D]/files/currents.config.ts +5 -0
  361. package/files/templates/monorepo[D]/files/nx.json +25 -0
  362. package/files/templates/monorepo[D]/files/pnpm-workspace.yaml +11 -0
  363. package/files/templates/monorepo[D]/files/tsconfig.json +6 -0
  364. package/files/templates/monorepo[D]/files/typedoc.json +25 -0
  365. package/files/templates/monorepo[D]/files/vitest.config.ts +27 -0
  366. package/files/templates/monorepo[D]/lucy.json +69 -0
  367. package/files/templates/tauri[D]/files/.cursorignore +4 -0
  368. package/files/templates/tauri[D]/lucy.json +9 -0
  369. package/files/templates/velo[D]/files/.cursorignore +4 -0
  370. package/files/templates/velo[D]/files/.prettierignore +23 -0
  371. package/files/templates/velo[D]/files/.prettierrc.js +16 -0
  372. package/files/templates/velo[D]/files/.yarnrc.yml +2 -0
  373. package/files/{velo → templates/velo[D]/files}/local.tsconfig.json +6 -5
  374. package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +47 -0
  375. package/files/templates/velo[D]/files/typescript/backend/config/env.ts +8 -0
  376. package/files/templates/velo[D]/files/typescript/backend/config/index.ts +26 -0
  377. package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +10 -0
  378. package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +6 -0
  379. package/files/templates/velo[D]/files/typescript/public/config/env.ts +9 -0
  380. package/files/templates/velo[D]/files/typescript/public/config/index.ts +76 -0
  381. package/files/templates/velo[D]/files/typescript/public/config/locales.ts +30 -0
  382. package/files/templates/velo[D]/files/typescript/public/config/theme.ts +110 -0
  383. package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +123 -0
  384. package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +117 -0
  385. package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +21 -0
  386. package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +38 -0
  387. package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +94 -0
  388. package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +14 -0
  389. package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +80 -0
  390. package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +15 -0
  391. package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +16 -0
  392. package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +31 -0
  393. package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +20 -0
  394. package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +18 -0
  395. package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +10 -0
  396. package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +10 -0
  397. package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +10 -0
  398. package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +236 -0
  399. package/files/templates/velo[D]/files/typescript/styles/.gitkeep +0 -0
  400. package/files/templates/velo[D]/files/typescript/styles/global.scss +0 -0
  401. package/files/templates/velo[D]/lucy.json +137 -0
  402. package/lucy +4 -0
  403. package/lucy.jpg +0 -0
  404. package/mitarbeiter-login.html +188 -0
  405. package/old/Gulpfile.d.ts +34 -0
  406. package/old/Gulpfile.js +116 -0
  407. package/old/Gulpfile.js.map +1 -0
  408. package/old/gulp/backend.d.ts +3 -0
  409. package/old/gulp/backend.js +92 -0
  410. package/old/gulp/backend.js.map +1 -0
  411. package/old/gulp/checks.d.ts +3 -0
  412. package/old/gulp/checks.js +205 -0
  413. package/old/gulp/checks.js.map +1 -0
  414. package/old/gulp/clean.d.ts +3 -0
  415. package/old/gulp/clean.js +29 -0
  416. package/old/gulp/clean.js.map +1 -0
  417. package/old/gulp/copy.d.ts +2 -0
  418. package/old/gulp/copy.js +34 -0
  419. package/old/gulp/copy.js.map +1 -0
  420. package/old/gulp/helpers.d.ts +2 -0
  421. package/old/gulp/helpers.js +25 -0
  422. package/old/gulp/helpers.js.map +1 -0
  423. package/old/gulp/pages.d.ts +2 -0
  424. package/old/gulp/pages.js +37 -0
  425. package/old/gulp/pages.js.map +1 -0
  426. package/old/gulp/pipeline.d.ts +1 -0
  427. package/old/gulp/pipeline.js +29 -0
  428. package/old/gulp/pipeline.js.map +1 -0
  429. package/old/gulp/public.d.ts +2 -0
  430. package/old/gulp/public.js +50 -0
  431. package/old/gulp/public.js.map +1 -0
  432. package/old/gulp/styles.d.ts +2 -0
  433. package/old/gulp/styles.js +40 -0
  434. package/old/gulp/styles.js.map +1 -0
  435. package/old/gulp/templates.d.ts +2 -0
  436. package/old/gulp/templates.js +33 -0
  437. package/old/gulp/templates.js.map +1 -0
  438. package/old/gulp/types.d.ts +4 -0
  439. package/old/gulp/types.js +289 -0
  440. package/old/gulp/types.js.map +1 -0
  441. package/old/gulp/watchers.d.ts +9 -0
  442. package/old/gulp/watchers.js +59 -0
  443. package/old/gulp/watchers.js.map +1 -0
  444. package/old/helpers.d.ts +32 -0
  445. package/old/helpers.js +267 -0
  446. package/old/helpers.js.map +1 -0
  447. package/{src copy/helpers.ts → old/helpers.ts} +1 -1
  448. package/old/index.d.ts +59 -0
  449. package/old/index.js +288 -0
  450. package/old/index.js.map +1 -0
  451. package/{src copy → old}/index.ts +0 -0
  452. package/old/init.d.ts +8 -0
  453. package/old/init.js +165 -0
  454. package/old/init.js.map +1 -0
  455. package/old/models.d.ts +37 -0
  456. package/old/models.js +2 -0
  457. package/old/models.js.map +1 -0
  458. package/old/prepare.d.ts +8 -0
  459. package/old/prepare.js +20 -0
  460. package/old/prepare.js.map +1 -0
  461. package/old/schemas/index.d.ts +0 -0
  462. package/old/schemas/index.js +2 -0
  463. package/old/schemas/index.js.map +1 -0
  464. package/old/schemas/index.ts +0 -0
  465. package/old/schemas/types.d.ts +0 -0
  466. package/old/schemas/types.js +2 -0
  467. package/old/schemas/types.js.map +1 -0
  468. package/old/schemas/types.ts +0 -0
  469. package/old/sync.d.ts +2 -0
  470. package/old/sync.js +88 -0
  471. package/old/sync.js.map +1 -0
  472. package/package.json +28 -28
  473. package/patches/velo-sync+0.0.9.patch +13 -0
  474. package/pnpm-workspace.yaml +6 -0
  475. package/src/args.ts +102 -17
  476. package/src/commands/checks.ts +51 -0
  477. package/src/commands/cleanup.ts +11 -0
  478. package/src/commands/copy.ts +28 -0
  479. package/src/commands/edit.ts +81 -0
  480. package/src/commands/exec.ts +73 -0
  481. package/src/commands/git.ts +113 -0
  482. package/src/commands/home.ts +56 -0
  483. package/src/commands/install.ts +269 -0
  484. package/src/commands/read.ts +45 -0
  485. package/src/commands/write.ts +45 -0
  486. package/src/config.ts +116 -35
  487. package/src/error.ts +1 -2
  488. package/src/helpers.ts +84 -0
  489. package/src/index.ts +91 -14
  490. package/src/init/blocks.ts +85 -0
  491. package/src/init/cargo.ts +25 -0
  492. package/src/init/expo.ts +69 -0
  493. package/src/init/gitModules.ts +15 -0
  494. package/src/init/index.ts +89 -0
  495. package/src/init/monorepo.ts +72 -0
  496. package/src/init/prepareVelo.ts +19 -0
  497. package/src/init/tauri.ts +42 -0
  498. package/src/init/templates.ts +98 -0
  499. package/src/init/velo.ts +66 -0
  500. package/src/runtime.ts +1 -0
  501. package/src/schemas/gulp.ts +31 -0
  502. package/src/schemas/index.ts +15 -1
  503. package/src/schemas/lucy.ts +43 -0
  504. package/src/schemas/types.ts +40 -0
  505. package/src/tasks/Gulpfile.ts +207 -0
  506. package/src/tasks/gulp/backend.ts +113 -0
  507. package/src/tasks/gulp/checks.ts +219 -0
  508. package/src/tasks/gulp/clean.ts +38 -0
  509. package/src/tasks/gulp/copy.ts +38 -0
  510. package/src/tasks/gulp/helpers.ts +18 -0
  511. package/src/tasks/gulp/pages.ts +43 -0
  512. package/src/tasks/gulp/pipeline.ts +31 -0
  513. package/src/tasks/gulp/public.ts +61 -0
  514. package/src/tasks/gulp/styles.ts +47 -0
  515. package/src/tasks/gulp/templates.ts +53 -0
  516. package/src/tasks/gulp/types.ts +310 -0
  517. package/src/tasks/gulp/watchers.ts +97 -0
  518. package/src/tasks/index.ts +24 -0
  519. package/src/tasks/syncSettings.ts +21 -0
  520. package/src/types.d.ts +1 -1
  521. package/src/utils/index.ts +0 -0
  522. package/src/utils/logger.ts +40 -0
  523. package/src/wix-sdk/check.ts +24 -0
  524. package/src/wix-sdk/client.ts +18 -0
  525. package/src/wix-sdk/index.ts +17 -0
  526. package/src/wix-sdk/init.ts +54 -0
  527. package/src/wix-sdk/run.ts +56 -0
  528. package/src/wix-sync/client.ts +6 -0
  529. package/src/wix-sync/export.ts +19 -0
  530. package/src/wix-sync/import.ts +27 -0
  531. package/src/wix-sync/index.ts +36 -0
  532. package/src/wix-sync/init.ts +77 -0
  533. package/src/wix-sync/is-alive.ts +25 -0
  534. package/src/wix-sync/migrate.ts +23 -0
  535. package/src/wix-sync/sync.ts +27 -0
  536. package/tsconfig.json +6 -5
  537. package/dist/init.d.ts +0 -4
  538. package/dist/init.js +0 -275
  539. package/dist/models.js +0 -1
  540. package/dist/params.d.ts +0 -7
  541. package/dist/params.js +0 -23
  542. package/files/expo/lib/data.ts +0 -48
  543. package/src/init.ts +0 -392
  544. /package/dist/{models.d.ts → schemas/tsconfig.d.ts} +0 -0
  545. /package/{files/expo/components/.gitkeep → dist/utils/index.d.ts} +0 -0
  546. /package/files/{expo → templates/expo verse[D]/files}/.nvmrc +0 -0
  547. /package/files/{expo → templates/expo verse[D]/files}/.prettierignore +0 -0
  548. /package/files/{expo → templates/expo verse[D]/files}/.prettierrc.js +0 -0
  549. /package/files/{expo/components/ui/.gitkeep → templates/expo verse[D]/files/.vscode/tasks.json} +0 -0
  550. /package/files/{expo → templates/expo verse[D]/files}/.yarnrc +0 -0
  551. /package/files/{expo → templates/expo verse[D]/files}/README.md +0 -0
  552. /package/files/{expo → templates/expo verse[D]/files}/babel.config.js +0 -0
  553. /package/files/{velo/typescript/__mocks__ → templates/expo verse[D]/files/components}/.gitkeep +0 -0
  554. /package/files/{velo/typescript/pages → templates/expo verse[D]/files/components/ui}/.gitkeep +0 -0
  555. /package/files/{expo → templates/expo verse[D]/files}/constants/theme.ts +0 -0
  556. /package/files/{expo → templates/expo verse[D]/files}/global.css +0 -0
  557. /package/files/{expo → templates/expo verse[D]/files}/hooks/useColorScheme.ts +0 -0
  558. /package/files/{expo → templates/expo verse[D]/files}/lib/utils/index.ts +0 -0
  559. /package/files/{expo → templates/expo verse[D]/files}/lib/utils/polyfills.ts +0 -0
  560. /package/files/{expo → templates/expo verse[D]/files}/lucy.json +0 -0
  561. /package/files/{expo → templates/expo verse[D]/files}/nativewind-env.d.ts +0 -0
  562. /package/files/{expo → templates/expo verse[D]/files}/tailwind.config.js +0 -0
  563. /package/files/{expo → templates/expo[D]/files}/.yarnrc.yml +0 -0
  564. /package/files/{expo → templates/expo[D]/files}/assets/images/adaptive-icon.png +0 -0
  565. /package/files/{expo → templates/expo[D]/files}/assets/images/favicon.png +0 -0
  566. /package/files/{expo → templates/expo[D]/files}/assets/images/icon.png +0 -0
  567. /package/files/{expo → templates/expo[D]/files}/assets/images/splash-icon.png +0 -0
  568. /package/files/{velo/typescript/public → templates/expo[D]/files/components}/.gitkeep +0 -0
  569. /package/files/{velo/typescript/styles → templates/expo[D]/files/components/ui}/.gitkeep +0 -0
  570. /package/files/{expo → templates/expo[D]/files}/eslint.config.mjs +0 -0
  571. /package/files/{expo → templates/expo[D]/files}/index.ts +0 -0
  572. /package/files/{expo → templates/expo[D]/files}/lib/wix/client.ts +0 -0
  573. /package/files/{expo → templates/expo[D]/files}/lib/wix/error.ts +0 -0
  574. /package/files/{expo → templates/expo[D]/files}/lib/wix/index.ts +0 -0
  575. /package/files/{expo → templates/expo[D]/files}/tsconfig.json +0 -0
  576. /package/files/{expo → templates/expo[D]/files}/types/reset.d.ts +0 -0
  577. /package/files/{velo → templates/velo[D]/files}/.gitmodules +0 -0
  578. /package/files/{velo → templates/velo[D]/files}/.madgerc +0 -0
  579. /package/files/{velo → templates/velo[D]/files}/.nvmrc +0 -0
  580. /package/files/{velo → templates/velo[D]/files}/.stylelintrc.js +0 -0
  581. /package/files/{velo → templates/velo[D]/files}/currents.config.js +0 -0
  582. /package/files/{velo → templates/velo[D]/files}/cypress/e2e/base/base.cy.ts +0 -0
  583. /package/files/{velo → templates/velo[D]/files}/cypress/fixtures/example.json +0 -0
  584. /package/files/{velo → templates/velo[D]/files}/cypress/support/commands.ts +0 -0
  585. /package/files/{velo → templates/velo[D]/files}/cypress/support/e2e.ts +0 -0
  586. /package/files/{velo → templates/velo[D]/files}/cypress/tsconfig.json +0 -0
  587. /package/files/{velo → templates/velo[D]/files}/cypress.config.mjs +0 -0
  588. /package/files/{velo → templates/velo[D]/files}/eslint.config.mjs +0 -0
  589. /package/files/{velo → templates/velo[D]/files}/typedoc.json +0 -0
  590. /package/files/{velo/typescript/backend/data.ts → templates/velo[D]/files/typescript/__mocks__/.gitkeep} +0 -0
  591. /package/files/{velo/typescript/backend/events.ts → templates/velo[D]/files/typescript/backend/data.ts} +0 -0
  592. /package/files/{velo/typescript/public/scss/app.scss → templates/velo[D]/files/typescript/backend/events.ts} +0 -0
  593. /package/files/{velo → templates/velo[D]/files}/typescript/backend/http-functions.ts +0 -0
  594. /package/files/{velo → templates/velo[D]/files}/typescript/backend/lib/http-functions/sync.ts +0 -0
  595. /package/files/{velo → templates/velo[D]/files}/typescript/backend/permissions.json +0 -0
  596. /package/files/{velo/typescript/styles/global.scss → templates/velo[D]/files/typescript/pages/.gitkeep} +0 -0
  597. /package/{src copy/schemas/index.ts → files/templates/velo[D]/files/typescript/public/.gitkeep} +0 -0
  598. /package/{src copy/schemas/types.ts → files/templates/velo[D]/files/typescript/public/scss/app.scss} +0 -0
  599. /package/files/{velo → templates/velo[D]/files}/typescript/tsconfig.json +0 -0
  600. /package/files/{velo → templates/velo[D]/files}/vitest.config.ts +0 -0
  601. /package/{src copy → old}/Gulpfile.ts +0 -0
  602. /package/{src copy → old}/gulp/backend.ts +0 -0
  603. /package/{src copy → old}/gulp/checks.ts +0 -0
  604. /package/{src copy → old}/gulp/clean.ts +0 -0
  605. /package/{src copy → old}/gulp/copy.ts +0 -0
  606. /package/{src copy → old}/gulp/helpers.ts +0 -0
  607. /package/{src copy → old}/gulp/pages.ts +0 -0
  608. /package/{src copy → old}/gulp/pipeline.ts +0 -0
  609. /package/{src copy → old}/gulp/public.ts +0 -0
  610. /package/{src copy → old}/gulp/styles.ts +0 -0
  611. /package/{src copy → old}/gulp/templates.ts +0 -0
  612. /package/{src copy → old}/gulp/types.ts +0 -0
  613. /package/{src copy → old}/gulp/watchers.ts +0 -0
  614. /package/{src copy → old}/init.ts +0 -0
  615. /package/{src copy → old}/models.ts +0 -0
  616. /package/{src copy → old}/prepare.ts +0 -0
  617. /package/{src copy → old}/settings.json +0 -0
  618. /package/{src copy → old}/sync.ts +0 -0
  619. /package/{src copy → old}/types.d.ts +0 -0
  620. /package/src/{models.ts → schemas/tsconfig.ts} +0 -0
@@ -0,0 +1,67 @@
1
+ import { Effect, Schema } from "effect/index";
2
+ import { Config, lucyJsonPath } from "../config.js";
3
+ import { FileSystem } from "@effect/platform";
4
+ import { logger } from "../utils/logger.js";
5
+ import { JsonSchema } from "../schemas/index.js";
6
+ export const editJson = (json, keys, values) => {
7
+ return Effect.gen(function* () {
8
+ const config = yield* Config;
9
+ for (const key of keys) {
10
+ const index = keys.indexOf(key);
11
+ const value = values[index];
12
+ json[key] = value;
13
+ }
14
+ });
15
+ };
16
+ export const mergeLucySettings2PackageJson = Effect.gen(function* () {
17
+ const config = yield* Config;
18
+ const lucySettings = config.config.lucySettings;
19
+ const packageJson = config.config.packageJson;
20
+ if (Object.keys(lucySettings.scripts).length > 0) {
21
+ yield* editJson(packageJson, ['scripts'], [{ ...packageJson.scripts, ...lucySettings.scripts }]);
22
+ }
23
+ });
24
+ export const setModule = Effect.gen(function* () {
25
+ const config = yield* Config;
26
+ const lucySettings = config.config.lucySettings;
27
+ const packageJson = config.config.packageJson;
28
+ yield* editJson(packageJson, ['type'], ['module']);
29
+ });
30
+ export const mergeAdditions = Effect.gen(function* () {
31
+ const config = yield* Config;
32
+ const lucySettings = config.config.lucySettings;
33
+ const packageJson = config.config.packageJson;
34
+ config.config.packageJson = {
35
+ ...packageJson,
36
+ ...lucySettings.additionalPkgProps,
37
+ };
38
+ });
39
+ export const setProjectName = Effect.gen(function* () {
40
+ const config = yield* Config;
41
+ const packageJson = config.config.packageJson;
42
+ yield* editJson(packageJson, ["name"], [config.config.projectName]);
43
+ });
44
+ export const setInitialized = Effect.gen(function* () {
45
+ const fs = yield* FileSystem.FileSystem;
46
+ const lucyRaw = yield* fs.readFileString(lucyJsonPath);
47
+ const lucyJSON = (yield* Schema.decodeUnknown(JsonSchema)(lucyRaw));
48
+ lucyJSON.initialized = true;
49
+ yield* fs.writeFileString(lucyJsonPath, JSON.stringify(lucyJSON, null, 2));
50
+ });
51
+ export const stringReplace = (filePath, keys, values) => {
52
+ return Effect.gen(function* () {
53
+ const fs = yield* FileSystem.FileSystem;
54
+ let modifiedContent = '';
55
+ logger.action(`Replacing ${keys} with ${values} in ${filePath}`);
56
+ const data = yield* fs.readFileString(filePath, 'utf8');
57
+ for (const key of keys) {
58
+ const index = keys.indexOf(key);
59
+ const value = values[index];
60
+ const regex = new RegExp(`${key}`, 'g');
61
+ modifiedContent = data.replace(regex, `${value}`);
62
+ }
63
+ yield* fs.writeFileString(filePath, modifiedContent);
64
+ logger.info(`Updated file ${filePath}`);
65
+ });
66
+ };
67
+ //# sourceMappingURL=edit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.js","sourceRoot":"","sources":["../../src/commands/edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAA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,eAAe,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;QACrD,MAAM,CAAC,IAAI,CAAC,gBAAgB,QAAQ,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Effect } from "effect/index";
2
+ import { Config } from "../config.js";
3
+ import { FileSystem } from "@effect/platform";
4
+ import { AppError } from "../error.js";
5
+ export declare const execCommand: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/CommandExecutor").CommandExecutor>;
6
+ export declare const open: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | import("@effect/platform/CommandExecutor").CommandExecutor>;
7
+ export declare const openEditor: Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -0,0 +1,69 @@
1
+ import { Effect, Schema } from "effect/index";
2
+ import { Config } from "../config.js";
3
+ import { Command } from "@effect/platform/index";
4
+ import { logger } from "../utils/logger.js";
5
+ import { FileSystem } from "@effect/platform";
6
+ import Enquirer from "enquirer";
7
+ import { AppError } from "../error.js";
8
+ import { editors } from "../schemas/index.js";
9
+ export const execCommand = Effect.gen(function* () {
10
+ const config = yield* Config;
11
+ const cmds = config.config.lucySettings.additionalCommands ?? [];
12
+ logger.info("Executing additional commands...", cmds);
13
+ if (cmds.length > 0) {
14
+ logger.info("Executing additional commands");
15
+ yield* Effect.all([
16
+ ...cmds.map((cmd) => {
17
+ return Command.make(cmd[0], ...cmd.slice(1))
18
+ .pipe()
19
+ .pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
20
+ }),
21
+ ]);
22
+ }
23
+ });
24
+ export const open = Effect.scoped(Effect.gen(function* () {
25
+ const config = yield* Config;
26
+ const fs = yield* FileSystem.FileSystem;
27
+ console.log("Opening Lucy home directory:", config.config.lucyHome);
28
+ let command;
29
+ switch (process.platform) {
30
+ case 'darwin':
31
+ command = Command.make('open', config.config.lucyHome);
32
+ break;
33
+ case 'win32':
34
+ command = Command.make('start', config.config.lucyHome);
35
+ break;
36
+ default:
37
+ command = Command.make('xdg-open', config.config.lucyHome);
38
+ break;
39
+ }
40
+ command.pipe().pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
41
+ yield* command.pipe().pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
42
+ }));
43
+ export const openEditor = Effect.gen(function* () {
44
+ const config = yield* Config;
45
+ const editorQuestion = new Enquirer();
46
+ const openEditorQuestion = yield* Effect.tryPromise({
47
+ try: () => editorQuestion.prompt({
48
+ type: 'select',
49
+ name: 'openEditor',
50
+ message: `Do you want to open the project in a supported editor?`,
51
+ choices: [...editors, 'No'],
52
+ }),
53
+ catch: (e) => {
54
+ return new AppError({
55
+ cause: e,
56
+ message: "Error opening VSCode",
57
+ });
58
+ }
59
+ });
60
+ const choice = yield* Schema.decodeUnknown(Schema.Struct({ openEditor: Schema.Literal(...editors, 'No') }))(openEditorQuestion);
61
+ const open = Command.make(choice.openEditor, config.config.cwd).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
62
+ Command.stderr("inherit"), // Stream stderr to process.stderr
63
+ Command.exitCode // Get the exit code
64
+ );
65
+ if (choice.openEditor !== 'No') {
66
+ yield* open;
67
+ }
68
+ });
69
+ //# sourceMappingURL=exec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exec.js","sourceRoot":"","sources":["../../src/commands/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OA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AO,EAAE,wDAAwD;YACjE,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC;SAC9B,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE;YACT,OAAO,IAAI,QAAQ,CAAC;gBAChB,KAAK,EAAE,CAAC;gBACR,OAAO,EAAE,sBAAsB;aAClC,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,CAAA;IACF,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAEhI,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CACrB,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,MAAM,CAAC,GAAG,CAChB,CAAC,IAAI,CACN,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,kCAAkC;IAC7D,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,kCAAkC;IAC7D,OAAO,CAAC,QAAQ,CAAC,oBAAoB;KACxC,CAAA;IACD,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;QAC7B,KAAK,CAAC,CAAC,IAAI,CAAA;IACf,CAAC;AACL,CAAC,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Effect } from 'effect/index';
2
+ import { SimpleGit } from 'simple-git';
3
+ import { Config } from '../config.js';
4
+ import { AppError } from '../error.js';
5
+ import { FileSystem, Path } from "@effect/platform";
6
+ export declare const isSubmoduleRegistered: (git: SimpleGit, submoduleName: string) => Effect.Effect<boolean, AppError, never>;
7
+ export declare const gitInit: (update?: boolean) => Effect.Effect<void, AppError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
8
+ export declare const initSubmodules: (update?: boolean) => Effect.Effect<void, AppError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
@@ -0,0 +1,104 @@
1
+ import { Effect } from 'effect/index';
2
+ import { simpleGit } from 'simple-git';
3
+ import { Config } from '../config.js';
4
+ import { AppError } from '../error.js';
5
+ import { logger } from '../utils/logger.js';
6
+ import { FileSystem, Path } from "@effect/platform";
7
+ export const isSubmoduleRegistered = (git, submoduleName) => Effect.gen(function* () {
8
+ const value = yield* Effect.tryPromise({
9
+ try: () => git.getConfig(`submodule.${submoduleName}.url`),
10
+ catch: (error) => {
11
+ return new AppError({
12
+ cause: error,
13
+ message: "Failed to get submodule url",
14
+ });
15
+ }
16
+ });
17
+ return !!value.value;
18
+ });
19
+ export const gitInit = (update = false) => Effect.gen(function* () {
20
+ const config = yield* Config;
21
+ const git = simpleGit({ baseDir: config.config.cwd });
22
+ const path = yield* Path.Path;
23
+ const isGit = yield* Effect.tryPromise({
24
+ try: () => git.checkIsRepo(),
25
+ catch: (error) => {
26
+ return new AppError({
27
+ cause: error,
28
+ message: "Failed to check if the directory is a git repository",
29
+ });
30
+ }
31
+ });
32
+ if (!isGit) {
33
+ yield* Effect.tryPromise({
34
+ try: () => git.init(),
35
+ catch: (error) => {
36
+ return new AppError({
37
+ cause: error,
38
+ message: "Failed to initialize git repository",
39
+ });
40
+ }
41
+ });
42
+ }
43
+ if (!config.config.lucySettings.modules) {
44
+ logger.alert('No submodules defined in settings, skipping.');
45
+ return;
46
+ }
47
+ yield* initSubmodules(update);
48
+ });
49
+ export const initSubmodules = (update = false) => Effect.gen(function* () {
50
+ const config = yield* Config;
51
+ const git = simpleGit({ baseDir: config.config.cwd });
52
+ const path = yield* Path.Path;
53
+ const fs = yield* FileSystem.FileSystem;
54
+ const gitmodulesPath = path.join(config.config.cwd, ".gitmodules");
55
+ for (const [name, repo] of Object.entries(config.config.lucySettings.modules)) {
56
+ logger.action(`Processing submodule ${name}`);
57
+ const clonePath = repo.path || path.join(config.config.lucySettings.defaultModulePath ?? '', name);
58
+ const isRegistered = yield* isSubmoduleRegistered(git, clonePath);
59
+ const isConfiguredInFile = (yield* fs.exists(gitmodulesPath)) && (yield* fs.readFileString(gitmodulesPath, 'utf-8')).includes(`[submodule "${clonePath}"]`);
60
+ if (!isConfiguredInFile || config.config.force) {
61
+ logger.action(`Adding/updating submodule ${name} at ${clonePath}...`);
62
+ // If git already has a config entry, we must use --force to repair it.
63
+ const submoduleArgs = () => {
64
+ if (update) {
65
+ return ['add', '--force', repo.source, clonePath];
66
+ }
67
+ return ['add', ...(config.config.force || isRegistered ? ['--force'] : []), repo.source, clonePath];
68
+ };
69
+ // await git.subModule(submoduleArgs);
70
+ yield* Effect.tryPromise({
71
+ try: () => git.subModule(submoduleArgs()),
72
+ catch: (error) => {
73
+ return new AppError({
74
+ cause: error,
75
+ message: "Failed to add submodule",
76
+ });
77
+ }
78
+ });
79
+ }
80
+ else {
81
+ logger.alert(`Submodule ${name} at ${clonePath} already registered. Skipping add.`);
82
+ }
83
+ yield* Effect.tryPromise({
84
+ try: () => git.submoduleUpdate(['--init', '--recursive', clonePath]),
85
+ catch: (error) => {
86
+ return new AppError({
87
+ cause: error,
88
+ message: "Failed to update submodule",
89
+ });
90
+ }
91
+ });
92
+ yield* Effect.tryPromise({
93
+ try: () => simpleGit({ baseDir: path.join(config.config.cwd, clonePath) }).checkout(repo.branch),
94
+ catch: (error) => {
95
+ return new AppError({
96
+ cause: error,
97
+ message: `Failed to checkout submodule ${repo} branch ${repo.branch}`,
98
+ });
99
+ }
100
+ });
101
+ }
102
+ logger.success("All modules processed!");
103
+ });
104
+ //# sourceMappingURL=git.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/commands/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,E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js";
3
+ import { FileSystem, Path } from "@effect/platform";
4
+ export declare const createLucyHome: () => Effect.Effect<void, any, Config | FileSystem.FileSystem | Path.Path>;
@@ -0,0 +1,41 @@
1
+ import { Effect } from "effect/index";
2
+ import { Config } from "../config.js";
3
+ import { FileSystem, Path } from "@effect/platform";
4
+ import { logger, orange } from "../utils/logger.js";
5
+ import path from 'path';
6
+ export const createLucyHome = () => {
7
+ return Effect.gen(function* () {
8
+ const config = yield* Config;
9
+ const fs = yield* FileSystem.FileSystem;
10
+ const p = yield* Path.Path;
11
+ if (!(yield* fs.exists(config.config.lucyHome))) {
12
+ logger.action(`Creating Lucy home directory at ${orange(config.config.lucyHome)}`);
13
+ yield* fs.makeDirectory(config.config.lucyHome, { recursive: true });
14
+ }
15
+ const templateFiles = yield* fs.readDirectory(config.config.filesFolder);
16
+ const shouldExclude = (relativePath) => {
17
+ const segments = relativePath.split(/[/\\]/);
18
+ return segments.includes("node_modules") || segments.includes("Pods");
19
+ };
20
+ const copyDirFiltered = (src, dest, base) => Effect.gen(function* () {
21
+ const entries = yield* fs.readDirectory(src);
22
+ yield* fs.makeDirectory(dest, { recursive: true });
23
+ yield* Effect.forEach(entries, (entry) => Effect.gen(function* () {
24
+ const from = p.join(src, entry);
25
+ const to = p.join(dest, entry);
26
+ const rel = base ? p.relative(base, from) : entry;
27
+ if (shouldExclude(rel)) {
28
+ return;
29
+ }
30
+ const stat = yield* fs.stat(from);
31
+ if (stat.type === "Directory") {
32
+ yield* copyDirFiltered(from, to, base ?? src);
33
+ return;
34
+ }
35
+ yield* fs.copyFile(from, to);
36
+ }), { discard: true });
37
+ });
38
+ yield* Effect.forEach(templateFiles, (file) => copyDirFiltered(path.join(config.config.filesFolder, file), path.join(config.config.lucyHome, file)), { discard: true });
39
+ });
40
+ };
41
+ //# sourceMappingURL=home.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home.js","sourceRoot":"","sources":["../../src/commands/home.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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;QAEN,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CACjB,aAAa,EACb,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,EAC9G,EAAE,OAAO,EAAE,IAAI,EAAE,CACpB,CAAA;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Effect } from "effect/index";
2
+ import { Config } from "../config.js";
3
+ import { CommandExecutor } from "@effect/platform/CommandExecutor";
4
+ import { PlatformError } from "@effect/platform/Error";
5
+ export declare const installPackages: (workspace?: boolean) => Effect.Effect<void, PlatformError, Config | CommandExecutor>;
6
+ export declare const runInstall: Effect.Effect<void, PlatformError, Config | CommandExecutor>;
7
+ export declare const yarnSetVersion: Effect.Effect<void, PlatformError, CommandExecutor>;
8
+ export declare const installVeloPackages: Effect.Effect<void, PlatformError, Config | CommandExecutor>;
9
+ export declare const approveBuilds: Effect.Effect<void, PlatformError, Config | CommandExecutor>;
@@ -0,0 +1,178 @@
1
+ import { Command } from "@effect/platform/index";
2
+ import { Effect, Schedule } from "effect/index";
3
+ import { Config } from "../config.js";
4
+ import { logger } from "../utils/logger.js";
5
+ export const installPackages = (workspace = false) => {
6
+ return Effect.gen(function* () {
7
+ const config = yield* Config;
8
+ const pkgs = [];
9
+ for (const [key, value] of Object.entries(config.config.lucySettings.dependencies)) {
10
+ if (value.length > 0) {
11
+ pkgs.push(`${key}@${value}`);
12
+ continue;
13
+ }
14
+ pkgs.push(key);
15
+ }
16
+ const devPkgs = [];
17
+ for (const [key, value] of Object.entries(config.config.lucySettings.devDependencies)) {
18
+ if (value.length > 0) {
19
+ devPkgs.push(`${key}@${value}`);
20
+ continue;
21
+ }
22
+ devPkgs.push(key);
23
+ }
24
+ const manager = config.config.lucySettings.packageManager;
25
+ function pkgMgrParamsInstall() {
26
+ if (manager === "npm") {
27
+ return ["install"];
28
+ }
29
+ if (manager === "pnpm") {
30
+ return ["install"];
31
+ }
32
+ return ["add"];
33
+ }
34
+ function pkgMgrParamsInstallDev() {
35
+ if (manager === "npm") {
36
+ return ["install", "-D"];
37
+ }
38
+ if (manager === "pnpm") {
39
+ return ["install", "-D"];
40
+ }
41
+ return ["add", "-D"];
42
+ }
43
+ function workspaceEnabled() {
44
+ if (config.config.lucySettings.packageManager === "pnpm" && workspace) {
45
+ return ["--workspace-root"];
46
+ }
47
+ return [];
48
+ }
49
+ logger.info("Installing dependencies");
50
+ const install = Command.make(manager, ...pkgMgrParamsInstall(), ...workspaceEnabled(), ...pkgs).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
51
+ Command.stderr("inherit"), // Stream stderr to process.stderr
52
+ Command.exitCode // Get the exit code
53
+ );
54
+ logger.info("Installing dev dependencies");
55
+ const installDev = Command.make(manager, ...pkgMgrParamsInstallDev(), ...workspaceEnabled(), ...devPkgs).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
56
+ Command.stderr("inherit"), // Stream stderr to process.stderr
57
+ Command.exitCode // Get the exit code
58
+ );
59
+ if (Object.keys(config.config.lucySettings.dependencies).length > 0) {
60
+ if ((yield* install) !== 0) {
61
+ return logger.error("Failed to install dependencies. Please check the error message above.");
62
+ }
63
+ }
64
+ if (Object.keys(config.config.lucySettings.devDependencies).length > 0) {
65
+ if ((yield* installDev) !== 0) {
66
+ return logger.error("Failed to install dev dependencies. Please check the error message above.");
67
+ }
68
+ }
69
+ });
70
+ };
71
+ export const runInstall = Effect.gen(function* () {
72
+ const config = yield* Config;
73
+ const manager = config.config.lucySettings.packageManager;
74
+ const install = Command.make(manager, "install").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
75
+ Command.stderr("inherit"), // Stream stderr to process.stderr
76
+ Command.exitCode // Get the exit code
77
+ );
78
+ yield* install;
79
+ });
80
+ export const yarnSetVersion = Effect.gen(function* () {
81
+ const set = Command.make("yarn", "set", "version", "berry").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
82
+ Command.exitCode // Get the exit code
83
+ );
84
+ yield* set;
85
+ });
86
+ export const installVeloPackages = Effect.gen(function* () {
87
+ const config = yield* Config;
88
+ const simpleSchedule = Schedule.tapOutput(Schedule.fromDelays(50, 100, 200, 400, 800, 1600, 3200), (n) => Effect.succeed(logger.warning(`Failed to install WIX package. Retrying...`)));
89
+ const pkgs = [];
90
+ for (const [key, value] of Object.entries(config.config.lucySettings.dependencies)) {
91
+ if (value.length > 0) {
92
+ pkgs.push(`${key}@${value}`);
93
+ continue;
94
+ }
95
+ pkgs.push(key);
96
+ }
97
+ const wixPkgs = [];
98
+ const wixInstall = (cmd) => Effect.gen(function* () {
99
+ const code = yield* Effect.retryOrElse(Effect.gen(function* () {
100
+ const code = yield* cmd;
101
+ if (code !== 0) {
102
+ return yield* Effect.fail(code);
103
+ }
104
+ return yield* Effect.succeed(code);
105
+ }), simpleSchedule, () => Effect.succeed(0));
106
+ if (code !== 0) {
107
+ logger.error("Failed to install WIX package.");
108
+ }
109
+ return code;
110
+ });
111
+ for (const [key, value] of Object.entries(config.config.lucySettings.dependencies)) {
112
+ if (value.length > 0) {
113
+ wixPkgs.push(wixInstall(Command.make("wix", "install", `${key}@${value}`).pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode)));
114
+ continue;
115
+ }
116
+ wixPkgs.push(wixInstall(Command.make("wix", "install", `${key}`).pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode)));
117
+ }
118
+ const devPkgs = [];
119
+ for (const [key, value] of Object.entries(config.config.lucySettings.devDependencies)) {
120
+ if (value.length > 0) {
121
+ devPkgs.push(`${key}@${value}`);
122
+ continue;
123
+ }
124
+ devPkgs.push(key);
125
+ }
126
+ const manager = config.config.lucySettings.packageManager;
127
+ function pkgMgrParamsInstall() {
128
+ if (manager === "npm") {
129
+ return ["install"];
130
+ }
131
+ if (manager === "pnpm") {
132
+ return ["install"];
133
+ }
134
+ return ["add"];
135
+ }
136
+ function pkgMgrParamsInstallDev() {
137
+ if (manager === "npm") {
138
+ return ["install", "-D"];
139
+ }
140
+ if (manager === "pnpm") {
141
+ return ["install", "-D"];
142
+ }
143
+ return ["add", "-D"];
144
+ }
145
+ const install = Command.make(manager, ...pkgMgrParamsInstall(), ...pkgs).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
146
+ Command.exitCode // Get the exit code
147
+ );
148
+ const installDev = Command.make(manager, ...pkgMgrParamsInstallDev(), ...devPkgs).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
149
+ Command.exitCode // Get the exit code
150
+ );
151
+ logger.info("Installing dependencies with wix...");
152
+ const status = yield* Effect.all([...wixPkgs], { concurrency: 15 });
153
+ if (status.every((s) => s !== 0)) {
154
+ return logger.error("Failed to install WIX dependencies. Please check the error message above.");
155
+ }
156
+ logger.info("Installing dependencies");
157
+ if ((yield* install) !== 0) {
158
+ return logger.error("Failed to install dependencies. Please check the error message above.");
159
+ }
160
+ logger.info("Installing dev dependencies");
161
+ if ((yield* installDev) !== 0) {
162
+ return logger.error("Failed to install dev dependencies. Please check the error message above.");
163
+ }
164
+ });
165
+ export const approveBuilds = Effect.gen(function* () {
166
+ const config = yield* Config;
167
+ const manager = config.config.lucySettings.packageManager;
168
+ const approve = Command.make("pnpm", "approve-builds").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
169
+ Command.stderr("inherit"), // Stream stderr to process.stderr
170
+ Command.stdin("inherit"), Command.exitCode // Get the exit code
171
+ );
172
+ if (manager !== "pnpm") {
173
+ logger.warning("The 'approve-build' command is only available for pnpm. Skipping...");
174
+ return;
175
+ }
176
+ yield* approve;
177
+ });
178
+ //# sourceMappingURL=install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AAC,QAAQ,CAAC;IACzC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;IAEjC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,cAAc,CAAC;IAC1D,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CACxB,MAAM,EACN,gBAAgB,CACnB,CAAC,IAAI,CACF,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,kCAAkC;IAC7D,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,kCAAkC;IAC7D,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,EACxB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;KACxC,CAAA;IACD,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACrB,MAAM,CAAC,OAAO,CAAC,qEAAqE,CAAC,CAAC;QACtF,OAAO;IACX,CAAC;IACD,KAAK,CAAC,CAAC,OAAO,CAAC;AACnB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Effect } from "effect/index";
2
+ import { FileSystem, Path } from "@effect/platform";
3
+ import { Config } from "../config.js";
4
+ export declare const readPackageJson: Effect.Effect<void, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
5
+ export declare const readLucyJsonFromTemplate: Effect.Effect<void, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
6
+ export declare const readVeloSyncSettings: Effect.Effect<void, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem>;
@@ -0,0 +1,40 @@
1
+ import { Effect, Schema } from "effect/index";
2
+ import { FileSystem, Path } from "@effect/platform";
3
+ import { Config, lucyJsonName, packageJsonPath, veloSyncJsonPath } from "../config.js";
4
+ import { JsonSchema, veloSyncSettings } from "../schemas/index.js";
5
+ import { lucySettings } from "../schemas/lucy.js";
6
+ import { logger } from "../utils/logger.js";
7
+ export const readPackageJson = Effect.gen(function* () {
8
+ const config = yield* Config;
9
+ const fs = yield* FileSystem.FileSystem;
10
+ const path = yield* Path.Path;
11
+ const packageJsonRaw = yield* fs.readFile(packageJsonPath);
12
+ config.config.packageJson = yield* Schema.decodeUnknown(JsonSchema)(packageJsonRaw.toString());
13
+ });
14
+ export const readLucyJsonFromTemplate = Effect.gen(function* () {
15
+ const config = yield* Config;
16
+ const fs = yield* FileSystem.FileSystem;
17
+ const path = yield* Path.Path;
18
+ const lucyRaw = yield* fs.readFileString(path.join(config.config.templateDir, lucyJsonName));
19
+ const lucySettingsJSON = yield* Schema.decodeUnknown(JsonSchema)(lucyRaw);
20
+ const lucySetting = yield* Schema.decodeUnknown(lucySettings)(lucySettingsJSON);
21
+ if (config.config.lucySettings.initialized) {
22
+ if (config.config.force) {
23
+ logger.warning(`${lucyJsonName} already exists in the target directory, but 'force' is set. Overwriting...`);
24
+ config.config.lucySettings = lucySetting;
25
+ return;
26
+ }
27
+ logger.warning(`${lucyJsonName} already exists in the target directory. Skipping reading ${lucyJsonName} from template.`);
28
+ return;
29
+ }
30
+ config.config.lucySettings = lucySetting;
31
+ });
32
+ export const readVeloSyncSettings = Effect.gen(function* () {
33
+ const config = yield* Config;
34
+ const fs = yield* FileSystem.FileSystem;
35
+ if (yield* fs.exists(veloSyncJsonPath)) {
36
+ const snyConfigRaw = yield* fs.readFileString(veloSyncJsonPath);
37
+ config.config.veloSyncSettings = yield* Schema.decodeUnknown(veloSyncSettings)(snyConfigRaw);
38
+ }
39
+ });
40
+ //# sourceMappingURL=read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/commands/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE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AO,CAAC,CAAC;IAC1E,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,gBAAgB,CAAC,CAAA;IAE/E,IAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;QACxC,IAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACrB,MAAM,CAAC,OAAO,CAAC,GAAG,YAAY,6EAA6E,CAAC,CAAC;YAC7G,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,WAAW,CAAC;YACzC,OAAO;QACX,CAAC;QACD,MAAM,CAAC,OAAO,CAAC,GAAG,YAAY,6DAA6D,YAAY,iBAAiB,CAAC,CAAC;QAC1H,OAAO;IACX,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,WAAW,CAAC;AAC7C,CAAC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACrC,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAA;QAC/D,MAAM,CAAC,MAAM,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC;IACjG,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Effect } from "effect/index";
2
+ import { FileSystem, Path } from "@effect/platform";
3
+ import { Config } from "../config.js";
4
+ export declare const writeLucySettings: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
5
+ export declare const writePackageJson: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
6
+ export declare const writeVeloSyncSettings: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
7
+ export declare const writeWixSDKSettings: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;