lucy-cli 2.0.0-beta.1 → 2.0.0-beta.11

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 (305) hide show
  1. package/.cursorignore +4 -0
  2. package/.wix/debug.log +10 -0
  3. package/README.md +117 -102
  4. package/dist/args.js +41 -1
  5. package/dist/args.js.map +1 -1
  6. package/dist/commands/exec.d.ts +2 -2
  7. package/dist/commands/exec.js +15 -13
  8. package/dist/commands/exec.js.map +1 -1
  9. package/dist/commands/home.d.ts +2 -2
  10. package/dist/commands/home.js +25 -2
  11. package/dist/commands/home.js.map +1 -1
  12. package/dist/commands/install.d.ts +1 -0
  13. package/dist/commands/install.js +29 -16
  14. package/dist/commands/install.js.map +1 -1
  15. package/dist/helpers.d.ts +1 -1
  16. package/dist/helpers.js +1 -8
  17. package/dist/helpers.js.map +1 -1
  18. package/dist/index.d.ts +0 -1
  19. package/dist/index.js +4 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/init/blocks.d.ts +1 -1
  22. package/dist/init/blocks.js +2 -2
  23. package/dist/init/cargo.d.ts +1 -1
  24. package/dist/init/cargo.js +2 -2
  25. package/dist/init/expo.d.ts +1 -1
  26. package/dist/init/expo.js +2 -2
  27. package/dist/init/index.d.ts +1 -2
  28. package/dist/init/index.js +10 -1
  29. package/dist/init/index.js.map +1 -1
  30. package/dist/init/monorepo.d.ts +1 -1
  31. package/dist/init/monorepo.js +2 -2
  32. package/dist/init/tauri.d.ts +1 -1
  33. package/dist/init/tauri.js +2 -2
  34. package/dist/init/velo.d.ts +1 -1
  35. package/dist/init/velo.js +3 -2
  36. package/dist/init/velo.js.map +1 -1
  37. package/dist/schemas/index.d.ts +1 -0
  38. package/dist/schemas/index.js +1 -0
  39. package/dist/schemas/index.js.map +1 -1
  40. package/dist/schemas/lucy.d.ts +2 -2
  41. package/dist/schemas/lucy.js +1 -1
  42. package/dist/schemas/lucy.js.map +1 -1
  43. package/dist/tasks/Gulpfile.js +3 -3
  44. package/dist/tasks/Gulpfile.js.map +1 -1
  45. package/dist/tasks/gulp/checks.js +12 -11
  46. package/dist/tasks/gulp/checks.js.map +1 -1
  47. package/dist/tasks/gulp/watchers.js +3 -3
  48. package/dist/tasks/gulp/watchers.js.map +1 -1
  49. package/dist/tasks/index.d.ts +1 -1
  50. package/files/templates/Default[B]/files/.cursorignore +4 -0
  51. package/files/templates/Default[C]/files/.cursorignore +4 -0
  52. package/files/templates/Default[E]/files/.cursorignore +4 -0
  53. package/files/templates/Default[E]/files/app.config.ts +69 -0
  54. package/files/templates/{expo[D] → Default[E]}/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  55. package/files/templates/{expo[D] → Default[E]}/files/scripts/reset-project.ts +0 -0
  56. package/files/templates/Default[M]/files/.cursorignore +4 -0
  57. package/files/templates/Default[T]/files/.cursorignore +4 -0
  58. package/files/templates/expo verse[E]/files/.nvmrc +1 -0
  59. package/files/templates/expo verse[E]/files/.prettierignore +23 -0
  60. package/files/templates/expo verse[E]/files/.prettierrc.js +16 -0
  61. package/files/templates/expo verse[E]/files/.stylelintrc.json +8 -0
  62. package/files/templates/expo verse[E]/files/.vscode/extensions.json +10 -0
  63. package/files/templates/expo verse[E]/files/.vscode/launch.json +54 -0
  64. package/files/templates/expo verse[E]/files/.vscode/settings.json +30 -0
  65. package/files/templates/expo verse[E]/files/.vscode/tasks.json +0 -0
  66. package/files/templates/expo verse[E]/files/.yarnrc +1 -0
  67. package/files/templates/expo verse[E]/files/.yarnrc.yml +8 -0
  68. package/files/templates/expo verse[E]/files/App.tsx +63 -0
  69. package/files/templates/expo verse[E]/files/DEBUGGING.md +126 -0
  70. package/files/templates/expo verse[E]/files/README.md +45 -0
  71. package/files/templates/expo verse[E]/files/android/app/build.gradle +177 -0
  72. package/files/templates/expo verse[E]/files/android/app/debug.keystore +0 -0
  73. package/files/templates/expo verse[E]/files/android/app/proguard-rules.pro +14 -0
  74. package/files/templates/expo verse[E]/files/android/app/src/debug/AndroidManifest.xml +7 -0
  75. package/files/templates/expo verse[E]/files/android/app/src/main/AndroidManifest.xml +33 -0
  76. package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
  77. package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
  78. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  79. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  80. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  81. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  82. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
  83. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
  84. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
  85. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
  86. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
  87. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  88. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  89. package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  90. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
  91. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
  92. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  93. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  94. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
  95. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  96. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  97. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  98. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
  99. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  100. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  101. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  102. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
  103. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  104. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  105. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  106. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
  107. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  108. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  109. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  110. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
  111. package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  112. package/files/templates/expo verse[E]/files/android/app/src/main/res/values/colors.xml +6 -0
  113. package/files/templates/expo verse[E]/files/android/app/src/main/res/values/strings.xml +7 -0
  114. package/files/templates/expo verse[E]/files/android/app/src/main/res/values/styles.xml +12 -0
  115. package/files/templates/expo verse[E]/files/android/app/src/main/res/values-night/colors.xml +3 -0
  116. package/files/templates/expo verse[E]/files/android/build.gradle +37 -0
  117. package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  118. package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  119. package/files/templates/expo verse[E]/files/android/gradle.properties +59 -0
  120. package/files/templates/expo verse[E]/files/android/gradlew +251 -0
  121. package/files/templates/expo verse[E]/files/android/gradlew.bat +94 -0
  122. package/files/templates/expo verse[E]/files/android/settings.gradle +39 -0
  123. package/files/templates/expo verse[E]/files/app.config.ts +77 -0
  124. package/files/templates/expo verse[E]/files/assets/data/de.csv +949 -0
  125. package/files/templates/expo verse[E]/files/assets/data/en.csv +949 -0
  126. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
  127. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
  128. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
  129. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
  130. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
  131. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
  132. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
  133. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
  134. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
  135. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
  136. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
  137. package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
  138. package/files/templates/expo verse[E]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  139. package/files/templates/expo verse[E]/files/assets/images/andorid/background.png +0 -0
  140. package/files/templates/expo verse[E]/files/assets/images/android-dark.png +0 -0
  141. package/files/templates/expo verse[E]/files/assets/images/android-light.png +0 -0
  142. package/files/templates/expo verse[E]/files/assets/images/background.png +0 -0
  143. package/files/templates/expo verse[E]/files/assets/images/ios-dark.png +0 -0
  144. package/files/templates/expo verse[E]/files/assets/images/ios-light.png +0 -0
  145. package/files/templates/expo verse[E]/files/assets/images/ios-tinted.png +0 -0
  146. package/files/templates/expo verse[E]/files/assets/images/splash-icon-dark.png +0 -0
  147. package/files/templates/expo verse[E]/files/assets/images/splash-icon-light.png +0 -0
  148. package/files/templates/expo verse[E]/files/babel.config.js +10 -0
  149. package/files/templates/expo verse[E]/files/components/.gitkeep +0 -0
  150. package/files/templates/expo verse[E]/files/components/MainScreen.tsx +299 -0
  151. package/files/templates/expo verse[E]/files/components/Share.tsx +132 -0
  152. package/files/templates/expo verse[E]/files/components/ui/.gitkeep +0 -0
  153. package/files/templates/expo verse[E]/files/components/ui/dev.tsx +48 -0
  154. package/files/templates/expo verse[E]/files/constants/config.ts +30 -0
  155. package/files/templates/expo verse[E]/files/constants/theme.ts +18 -0
  156. package/files/templates/expo verse[E]/files/data/de.csv +219 -0
  157. package/files/templates/expo verse[E]/files/data/en.csv +219 -0
  158. package/files/templates/expo verse[E]/files/data/version.json +4 -0
  159. package/files/templates/expo verse[E]/files/eas.json +47 -0
  160. package/files/templates/expo verse[E]/files/eslint.config.mjs +185 -0
  161. package/files/templates/expo verse[E]/files/global.css +47 -0
  162. package/files/templates/expo verse[E]/files/hooks/useColorScheme.ts +17 -0
  163. package/files/templates/expo verse[E]/files/index.ts +28 -0
  164. package/files/templates/expo verse[E]/files/lib/content.ts +31 -0
  165. package/files/templates/expo verse[E]/files/lib/data.ts +180 -0
  166. package/files/templates/expo verse[E]/files/lib/helper.ts +54 -0
  167. package/files/templates/expo verse[E]/files/lib/index.ts +21 -0
  168. package/files/templates/expo verse[E]/files/lib/state.ts +128 -0
  169. package/files/templates/expo verse[E]/files/lib/storage.ts +17 -0
  170. package/files/templates/expo verse[E]/files/lib/taskManager/index.ts +38 -0
  171. package/files/templates/expo verse[E]/files/lib/taskManager/loadData.ts +14 -0
  172. package/files/templates/expo verse[E]/files/lib/utils/index.ts +11 -0
  173. package/files/templates/expo verse[E]/files/lib/utils/polyfills.ts +29 -0
  174. package/files/templates/expo verse[E]/files/lib/utils/screenshot.ts +77 -0
  175. package/files/templates/expo verse[E]/files/lucy.json +8 -0
  176. package/files/templates/expo verse[E]/files/metro.config.js +81 -0
  177. package/files/templates/expo verse[E]/files/models/index.ts +28 -0
  178. package/files/templates/expo verse[E]/files/nativewind-env.d.ts +1 -0
  179. package/files/templates/expo verse[E]/files/package.json +102 -0
  180. package/files/templates/expo verse[E]/files/pnpm-workspace.yaml +3 -0
  181. package/files/templates/expo verse[E]/files/scripts/convert-verses.ts +309 -0
  182. package/files/templates/expo verse[E]/files/scripts/move-artifacts.ts +83 -0
  183. package/files/templates/expo verse[E]/files/scripts/reset-project.ts +116 -0
  184. package/files/templates/expo verse[E]/files/tailwind.config.js +63 -0
  185. package/files/templates/expo verse[E]/files/tsconfig.json +45 -0
  186. package/files/templates/expo verse[E]/files/types/index.ts +4 -0
  187. package/files/templates/expo verse[E]/files/types/reset.d.ts +1 -0
  188. package/files/templates/expo verse[E]/lucy.json +86 -0
  189. package/files/templates/velo[D]/files/.cursorignore +4 -0
  190. package/files/templates/velo[D]/files/.yarnrc.yml +1 -2
  191. package/files/templates/velo[D]/files/local.tsconfig.json +6 -5
  192. package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +47 -0
  193. package/files/templates/velo[D]/files/typescript/backend/config/env.ts +8 -0
  194. package/files/templates/velo[D]/files/typescript/backend/config/index.ts +26 -0
  195. package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +10 -0
  196. package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +6 -0
  197. package/files/templates/velo[D]/files/typescript/public/config/env.ts +9 -0
  198. package/files/templates/velo[D]/files/typescript/public/config/index.ts +76 -0
  199. package/files/templates/velo[D]/files/typescript/public/config/locales.ts +30 -0
  200. package/files/templates/velo[D]/files/typescript/public/config/theme.ts +110 -0
  201. package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +123 -0
  202. package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +117 -0
  203. package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +21 -0
  204. package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +38 -0
  205. package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +94 -0
  206. package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +14 -0
  207. package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +80 -0
  208. package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +15 -0
  209. package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +16 -0
  210. package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +31 -0
  211. package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +20 -0
  212. package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +18 -0
  213. package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +10 -0
  214. package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +10 -0
  215. package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +10 -0
  216. package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +236 -0
  217. package/files/templates/velo[D]/lucy.json +36 -26
  218. package/lucy +4 -0
  219. package/lucy.jpg +0 -0
  220. package/mitarbeiter-login.html +188 -0
  221. package/old/index.ts +0 -0
  222. package/package.json +15 -14
  223. package/pnpm-workspace.yaml +6 -0
  224. package/src/args.ts +41 -1
  225. package/src/commands/exec.ts +22 -18
  226. package/src/commands/home.ts +36 -2
  227. package/src/commands/install.ts +41 -21
  228. package/src/helpers.ts +1 -9
  229. package/src/index.ts +4 -2
  230. package/src/init/blocks.ts +2 -2
  231. package/src/init/cargo.ts +2 -2
  232. package/src/init/expo.ts +2 -2
  233. package/src/init/index.ts +10 -2
  234. package/src/init/monorepo.ts +2 -2
  235. package/src/init/tauri.ts +2 -2
  236. package/src/init/velo.ts +4 -3
  237. package/src/schemas/index.ts +2 -0
  238. package/src/schemas/lucy.ts +1 -1
  239. package/src/tasks/Gulpfile.ts +3 -3
  240. package/src/tasks/gulp/checks.ts +15 -14
  241. package/src/tasks/gulp/watchers.ts +3 -3
  242. /package/files/templates/{block[D] → Default[B]}/files/.stylelintrc.js +0 -0
  243. /package/files/templates/{block[D] → Default[B]}/lucy.json +0 -0
  244. /package/files/templates/{cargo[D] → Default[C]}/files/.env +0 -0
  245. /package/files/templates/{cargo[D] → Default[C]}/files/Cargo.toml +0 -0
  246. /package/files/templates/{cargo[D] → Default[C]}/files/Makefile.toml +0 -0
  247. /package/files/templates/{cargo[D] → Default[C]}/files/build/main.rs +0 -0
  248. /package/files/templates/{cargo[D] → Default[C]}/files/config/beta.json +0 -0
  249. /package/files/templates/{cargo[D] → Default[C]}/files/config/ci.json +0 -0
  250. /package/files/templates/{cargo[D] → Default[C]}/files/config/default.json +0 -0
  251. /package/files/templates/{cargo[D] → Default[C]}/files/config/development.json +0 -0
  252. /package/files/templates/{cargo[D] → Default[C]}/files/config/produktion.json +0 -0
  253. /package/files/templates/{cargo[D] → Default[C]}/files/config/stage.json +0 -0
  254. /package/files/templates/{cargo[D] → Default[C]}/files/locales/todo.yml +0 -0
  255. /package/files/templates/{cargo[D] → Default[C]}/files/public/index.html +0 -0
  256. /package/files/templates/{cargo[D] → Default[C]}/lucy.json +0 -0
  257. /package/files/templates/{expo[D] → Default[E]}/files/.nvmrc +0 -0
  258. /package/files/templates/{expo[D] → Default[E]}/files/.prettierignore +0 -0
  259. /package/files/templates/{expo[D] → Default[E]}/files/.prettierrc.js +0 -0
  260. /package/files/templates/{expo[D] → Default[E]}/files/.stylelintrc.js +0 -0
  261. /package/files/templates/{expo[D] → Default[E]}/files/.yarnrc +0 -0
  262. /package/files/templates/{expo[D] → Default[E]}/files/.yarnrc.yml +0 -0
  263. /package/files/templates/{expo[D] → Default[E]}/files/README.md +0 -0
  264. /package/files/templates/{expo[D] → Default[E]}/files/assets/images/adaptive-icon.png +0 -0
  265. /package/files/templates/{expo[D] → Default[E]}/files/assets/images/favicon.png +0 -0
  266. /package/files/templates/{expo[D] → Default[E]}/files/assets/images/icon.png +0 -0
  267. /package/files/templates/{expo[D] → Default[E]}/files/assets/images/splash-icon.png +0 -0
  268. /package/files/templates/{expo[D] → Default[E]}/files/babel.config.js +0 -0
  269. /package/files/templates/{expo[D] → Default[E]}/files/components/.gitkeep +0 -0
  270. /package/files/templates/{expo[D] → Default[E]}/files/components/ui/.gitkeep +0 -0
  271. /package/files/templates/{expo[D] → Default[E]}/files/constants/theme.ts +0 -0
  272. /package/files/templates/{expo[D] → Default[E]}/files/eas.json +0 -0
  273. /package/files/templates/{expo[D] → Default[E]}/files/eslint.config.mjs +0 -0
  274. /package/files/templates/{expo[D] → Default[E]}/files/global.css +0 -0
  275. /package/files/templates/{expo[D] → Default[E]}/files/hooks/useColorScheme.ts +0 -0
  276. /package/files/templates/{expo[D] → Default[E]}/files/index.ts +0 -0
  277. /package/files/templates/{expo[D] → Default[E]}/files/lib/data.ts +0 -0
  278. /package/files/templates/{expo[D] → Default[E]}/files/lib/utils/index.ts +0 -0
  279. /package/files/templates/{expo[D] → Default[E]}/files/lib/utils/polyfills.ts +0 -0
  280. /package/files/templates/{expo[D] → Default[E]}/files/lib/wix/client.ts +0 -0
  281. /package/files/templates/{expo[D] → Default[E]}/files/lib/wix/error.ts +0 -0
  282. /package/files/templates/{expo[D] → Default[E]}/files/lib/wix/index.ts +0 -0
  283. /package/files/templates/{expo[D] → Default[E]}/files/metro.config.js +0 -0
  284. /package/files/templates/{expo[D] → Default[E]}/files/nativewind-env.d.ts +0 -0
  285. /package/files/templates/{expo[D] → Default[E]}/files/pnpm-workspace.yaml +0 -0
  286. /package/files/templates/{expo[D] → Default[E]}/files/tailwind.config.js +0 -0
  287. /package/files/templates/{expo[D] → Default[E]}/files/tsconfig.json +0 -0
  288. /package/files/templates/{expo[D] → Default[E]}/files/types/reset.d.ts +0 -0
  289. /package/files/templates/{expo[D] → Default[E]}/lucy.json +0 -0
  290. /package/files/templates/{monorepo[D] → Default[M]}/files/.editorconfig +0 -0
  291. /package/files/templates/{monorepo[D] → Default[M]}/files/.nvmrc +0 -0
  292. /package/files/templates/{monorepo[D] → Default[M]}/files/.prettierignore +0 -0
  293. /package/files/templates/{monorepo[D] → Default[M]}/files/.prettierrc.json +0 -0
  294. /package/files/templates/{monorepo[D] → Default[M]}/files/.stylelintrc.js +0 -0
  295. /package/files/templates/{monorepo[D] → Default[M]}/files/.yarnrc +0 -0
  296. /package/files/templates/{monorepo[D] → Default[M]}/files/.yarnrc.yml +0 -0
  297. /package/files/templates/{monorepo[D] → Default[M]}/files/README.md +0 -0
  298. /package/files/templates/{monorepo[D] → Default[M]}/files/currents.config.ts +0 -0
  299. /package/files/templates/{monorepo[D] → Default[M]}/files/nx.json +0 -0
  300. /package/files/templates/{monorepo[D] → Default[M]}/files/pnpm-workspace.yaml +0 -0
  301. /package/files/templates/{monorepo[D] → Default[M]}/files/tsconfig.json +0 -0
  302. /package/files/templates/{monorepo[D] → Default[M]}/files/typedoc.json +0 -0
  303. /package/files/templates/{monorepo[D] → Default[M]}/files/vitest.config.ts +0 -0
  304. /package/files/templates/{monorepo[D] → Default[M]}/lucy.json +0 -0
  305. /package/files/templates/{tauri[D] → Default[T]}/lucy.json +0 -0
@@ -5,6 +5,7 @@ import { logger } from "../utils/logger.js";
5
5
  import { FileSystem } from "@effect/platform"
6
6
  import Enquirer from "enquirer";
7
7
  import { AppError } from "../error.js";
8
+ import { editors } from "../schemas/index.js";
8
9
 
9
10
  export const execCommand = Effect.gen(function*() {
10
11
  const config = yield* Config;
@@ -38,22 +39,16 @@ export const open = Effect.scoped(Effect.gen(function*() {
38
39
  yield* command.pipe().pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
39
40
  }))
40
41
 
41
- export const openVSCode = Effect.gen(function*() {
42
+ export const openEditor = Effect.gen(function*() {
42
43
  const config = yield* Config;
43
- const open = Command.make(
44
- "code",
45
- config.config.cwd,
46
- ).pipe(
47
- Command.stdout("inherit"), // Stream stdout to process.stdout
48
- Command.stderr("inherit"), // Stream stderr to process.stderr
49
- Command.exitCode // Get the exit code
50
- )
51
- const overwriteQuestion = new Enquirer();
52
- const openVScodeQuestion = yield* Effect.tryPromise({
53
- try: () => overwriteQuestion.prompt({
54
- type: 'confirm',
55
- name: 'openVSCode',
56
- message: `Do you want to open the project in VSCode?`,
44
+
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'],
57
52
  }),
58
53
  catch: (e) => {
59
54
  return new AppError({
@@ -62,8 +57,17 @@ export const openVSCode = Effect.gen(function*() {
62
57
  });
63
58
  }
64
59
  })
65
- const choice = yield* Schema.decodeUnknown(Schema.Struct({ openVSCode: Schema.Boolean }))(openVScodeQuestion);
66
- if (choice.openVSCode) {
60
+ const choice = yield* Schema.decodeUnknown(Schema.Struct({ openEditor: Schema.Literal(...editors, 'No') }))(openEditorQuestion);
61
+
62
+ const open = Command.make(
63
+ choice.openEditor,
64
+ config.config.cwd,
65
+ ).pipe(
66
+ Command.stdout("inherit"), // Stream stdout to process.stdout
67
+ Command.stderr("inherit"), // Stream stderr to process.stderr
68
+ Command.exitCode // Get the exit code
69
+ )
70
+ if (choice.openEditor !== 'No') {
67
71
  yield* open
68
72
  }
69
- })
73
+ })
@@ -1,6 +1,6 @@
1
1
  import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
- import { FileSystem } from "@effect/platform"
3
+ import { FileSystem, Path } from "@effect/platform"
4
4
  import { logger, orange } from "../utils/logger.js";
5
5
  import path, { join } from 'path';
6
6
 
@@ -8,15 +8,49 @@ export const createLucyHome = () => {
8
8
  return Effect.gen(function*() {
9
9
  const config = yield* Config
10
10
  const fs = yield* FileSystem.FileSystem
11
+ const p = yield* Path.Path
11
12
 
12
13
  if(!(yield* fs.exists(config.config.lucyHome))) {
13
14
  logger.action(`Creating Lucy home directory at ${orange(config.config.lucyHome)}`);
14
15
  yield* fs.makeDirectory(config.config.lucyHome, { recursive: true });
15
16
  }
16
17
  const templateFiles = yield* fs.readDirectory(config.config.filesFolder)
18
+
19
+ const shouldExclude = (relativePath: string): boolean => {
20
+ const segments = relativePath.split(/[/\\]/)
21
+ return segments.includes("node_modules") || segments.includes("Pods")
22
+ }
23
+
24
+ const copyDirFiltered = (src: string, dest: string, base?: string): Effect.Effect<void, any> =>
25
+ Effect.gen(function*() {
26
+ const entries = yield* fs.readDirectory(src)
27
+ yield* fs.makeDirectory(dest, { recursive: true })
28
+ yield* Effect.forEach(
29
+ entries,
30
+ (entry) => Effect.gen(function*() {
31
+ const from = p.join(src, entry)
32
+ const to = p.join(dest, entry)
33
+ const rel = base ? p.relative(base, from) : entry
34
+
35
+ if (shouldExclude(rel)) {
36
+ return
37
+ }
38
+
39
+ const stat = yield* fs.stat(from)
40
+ if (stat.type === "Directory") {
41
+ yield* copyDirFiltered(from, to, base ?? src)
42
+ return
43
+ }
44
+ yield* fs.copyFile(from, to)
45
+ }),
46
+ { discard: true }
47
+ )
48
+ })
49
+
17
50
  yield* Effect.forEach(
18
51
  templateFiles,
19
- (file) => fs.copy(path.join(config.config.filesFolder, file), path.join(config.config.lucyHome, file), { overwrite: true })
52
+ (file) => copyDirFiltered(path.join(config.config.filesFolder, file), path.join(config.config.lucyHome, file)),
53
+ { discard: true }
20
54
  )
21
55
  });
22
56
  }
@@ -105,18 +105,19 @@ export const runInstall = Effect.gen(function*() {
105
105
  yield* install;
106
106
  })
107
107
 
108
- // export const yarnSetVersion = Effect.gen(function*() {
109
- // const yarnDev = Command.make(
110
- // "yarn",
111
- // "set",
112
- // "version",
113
- // "berry",
114
- // ).pipe(
115
- // Command.stdout("inherit"), // Stream stdout to process.stdout
116
- // Command.exitCode // Get the exit code
117
- // )
118
- // yield* yarnDev;
119
- // })
108
+ export const yarnSetVersion = Effect.gen(function*() {
109
+ const set = Command.make(
110
+ "yarn",
111
+ "set",
112
+ "version",
113
+ "berry",
114
+ ).pipe(
115
+ Command.stdout("inherit"), // Stream stdout to process.stdout
116
+ Command.exitCode // Get the exit code
117
+ )
118
+ yield* set;
119
+ })
120
+
120
121
  export const installVeloPackages = Effect.gen(function*() {
121
122
  const config = yield* Config;
122
123
  const simpleSchedule = Schedule.tapOutput(
@@ -192,18 +193,37 @@ export const installVeloPackages = Effect.gen(function*() {
192
193
  devPkgs.push(key);
193
194
  }
194
195
 
195
- const yarn = Command.make(
196
- "yarn",
197
- "add",
196
+ const manager = config.config.lucySettings.packageManager;
197
+ function pkgMgrParamsInstall():string[] {
198
+ if (manager === "npm") {
199
+ return ["install"];
200
+ }
201
+ if (manager === "pnpm") {
202
+ return ["install"];
203
+ }
204
+ return ["add"];
205
+ }
206
+ function pkgMgrParamsInstallDev():string[] {
207
+ if (manager === "npm") {
208
+ return ["install", "-D"];
209
+ }
210
+ if (manager === "pnpm") {
211
+ return ["install", "-D"];
212
+ }
213
+ return ["add", "-D"];
214
+ }
215
+
216
+ const install = Command.make(
217
+ manager,
218
+ ...pkgMgrParamsInstall(),
198
219
  ...pkgs,
199
220
  ).pipe(
200
221
  Command.stdout("inherit"), // Stream stdout to process.stdout
201
222
  Command.exitCode // Get the exit code
202
223
  )
203
- const yarnDev = Command.make(
204
- "yarn",
205
- "add",
206
- "-D",
224
+ const installDev = Command.make(
225
+ manager,
226
+ ...pkgMgrParamsInstallDev(),
207
227
  ...devPkgs,
208
228
  ).pipe(
209
229
  Command.stdout("inherit"), // Stream stdout to process.stdout
@@ -217,12 +237,12 @@ export const installVeloPackages = Effect.gen(function*() {
217
237
  }
218
238
 
219
239
  logger.info("Installing dependencies");
220
- if ((yield* yarn) !== 0) {
240
+ if ((yield* install) !== 0) {
221
241
  return logger.error("Failed to install dependencies. Please check the error message above.");
222
242
  }
223
243
 
224
244
  logger.info("Installing dev dependencies");
225
- if ((yield* yarnDev) !== 0) {
245
+ if ((yield* installDev) !== 0) {
226
246
  return logger.error("Failed to install dev dependencies. Please check the error message above.");
227
247
  }
228
248
 
package/src/helpers.ts CHANGED
@@ -89,13 +89,5 @@ export function cleanupWatchers() {
89
89
 
90
90
  logger.info(`Cleaning watchers for directory: ${cwd}`);
91
91
  const result = spawnSync(command, { shell: true, encoding: 'utf-8' });
92
-
93
- // if (result.stderr) {
94
- // logger.error(`spawnSync error: ${result.stderr}`);
95
- // return;
96
- // }
97
- // if (!result.stdout.trim()) {
98
- // logger.info(`No watchers found to clean up.`);
99
- // return;
100
- // }
92
+ return result;
101
93
  }
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import { Effect, pipe} from "effect";
3
2
  import { build_runtime } from "./runtime.js";
4
3
  import { get_args } from "./args.js";
@@ -21,8 +20,9 @@ export function setNeedsCleanup(value: boolean) {
21
20
  process.on('exit', (code) => {
22
21
  if(!needsCleanup) return;
23
22
  if(exitReason === 'none') {
24
- killAllProcesses('@wix/cli/bin/wix.cjs'); // Matches processes running the Wix CLI
23
+ killAllProcesses('@wix/cli/bin/wix.cjs');
25
24
  killAllProcesses('wix:dev');
25
+ killAllProcesses('wix dev');
26
26
  cleanupWatchers();
27
27
  }
28
28
 
@@ -35,6 +35,7 @@ process.on('SIGINT', () => {
35
35
  logger.info(`🐕 Received Ctrl+C (SIGINT), cleaning up...`);
36
36
  killAllProcesses('@wix/cli/bin/wix.cjs'); // Matches processes running the Wix CLI
37
37
  killAllProcesses('wix:dev');
38
+ killAllProcesses('wix dev');
38
39
  cleanupWatchers();
39
40
  process.exit(); // Exit explicitly after handling
40
41
  });
@@ -45,6 +46,7 @@ process.on('SIGTERM', () => {
45
46
  logger.info(`🛑 Received termination signal (SIGTERM), cleaning up...`);
46
47
  killAllProcesses('@wix/cli/bin/wix.cjs'); // Matches processes running the Wix CLI
47
48
  killAllProcesses('wix:dev');
49
+ killAllProcesses('wix dev');
48
50
  cleanupWatchers();
49
51
  process.exit(); // Exit explicitly after handling
50
52
  });
@@ -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";
@@ -80,6 +80,6 @@ export const init_blocks = () => {
80
80
 
81
81
  logger.success("Blocks project initialized successfully!");
82
82
 
83
- yield* openVSCode;
83
+ yield* openEditor;
84
84
  })
85
85
  }
package/src/init/cargo.ts CHANGED
@@ -5,7 +5,7 @@ import { copyTemplateFiles } from "../commands/copy.js";
5
5
  import { gitInit } from "../commands/git.js";
6
6
  import { checkForDirty } from "../commands/checks.js";
7
7
  import { setInitialized } from "../commands/edit.js";
8
- import { openVSCode } from "../commands/exec.js";
8
+ import { openEditor } from "../commands/exec.js";
9
9
 
10
10
  export const init_cargo = () => {
11
11
  return Effect.gen(function*() {
@@ -20,6 +20,6 @@ export const init_cargo = () => {
20
20
 
21
21
  logger.success("Cargo project initialized successfully!");
22
22
 
23
- yield* openVSCode;
23
+ yield* openEditor;
24
24
  })
25
25
  }
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
@@ -14,7 +14,9 @@ import { init_submodules } from "./gitModules.js";
14
14
  import { init_tauri } from "./tauri.js";
15
15
  import { pkgManagers } from "../schemas/lucy.js";
16
16
 
17
-
17
+ //TODO: Get Templates from Reposytory
18
+ //TODO: Update Local tsconfig for libs
19
+ //TODO: Fix PNPM in VELO
18
20
  export const init = Effect.gen(function* (_) {
19
21
  const config = yield* Config;
20
22
  if(config.config.action.initType === undefined) {
@@ -40,13 +42,19 @@ export const init = Effect.gen(function* (_) {
40
42
  yield* selectTemplate();
41
43
  yield* readLucyJsonFromTemplate;
42
44
 
45
+ function supportedPackageManagers() {
46
+ if(config.config.action.initType === 'velo') {
47
+ return pkgManagers.filter(pkgMgr => pkgMgr !== 'pnpm')
48
+ }
49
+ return pkgManagers
50
+ }
43
51
  const pkgMgrQuestion = new Enquirer();
44
52
  const pkgMgr = yield* Effect.tryPromise({
45
53
  try: () => pkgMgrQuestion.prompt({
46
54
  type: 'select',
47
55
  name: 'packageManager',
48
56
  message: 'Select a package manager',
49
- choices: [...pkgManagers],
57
+ choices: [...supportedPackageManagers()],
50
58
  }),
51
59
  catch: (e) => {
52
60
  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,
@@ -55,7 +55,7 @@ export const task_runGulp = Effect.gen(function* (_) {
55
55
  logger.action(`Running task: ${task}`);
56
56
 
57
57
  gulp.task('check-ts', gulp.parallel(
58
- checkTs(taskOptions),
58
+ checkTs(taskOptions, false),
59
59
  ));
60
60
 
61
61
  gulp.task('scss', gulp.parallel(
@@ -102,7 +102,7 @@ export const task_runGulp = Effect.gen(function* (_) {
102
102
  });
103
103
 
104
104
  gulp.task('sync-types', shell.task([
105
- 'yarn postinstall',
105
+ 'wix sync-types',
106
106
  ]));
107
107
 
108
108
  gulp.task('fix-wix-types', gulp.parallel(
@@ -118,7 +118,7 @@ export const task_runGulp = Effect.gen(function* (_) {
118
118
  ));
119
119
 
120
120
  gulp.task('start-wix', shell.task([
121
- 'yarn wix:dev',
121
+ 'wix dev',
122
122
  ]));
123
123
 
124
124
  gulp.task('gen-docs', shell.task([
@@ -52,7 +52,7 @@ import { TaskType } from '../../schemas/types.js';
52
52
  * @param {string} filePath File path
53
53
  * @param {string} pattern Pattern to match
54
54
  */
55
- function extractMatchFromFile(filePath: string, pattern: string) {
55
+ async function extractMatchFromFile(filePath: string, pattern: string) {
56
56
  return new Promise((resolve, reject) => {
57
57
  fs.readFile(filePath, 'utf8', (err, data) => {
58
58
  if (err){
@@ -77,29 +77,30 @@ function extractMatchFromFile(filePath: string, pattern: string) {
77
77
  async function readFilesInFolder(folderPath: string, pattern: string | null, globPattern: string,) {
78
78
  const files = await glob.glob(path.join(folderPath, globPattern));
79
79
  const filenameList: Object[] = [];
80
- function traverseFiles(index: number) {
80
+ async function traverseFiles(index: number) {
81
81
  if (index === files.length){
82
82
  return;
83
83
  }
84
84
  const file = files[index];
85
85
  if(pattern){
86
86
  if(!file) return
87
- extractMatchFromFile(file, pattern)
88
- .then((capturedGroup) => {
89
- if (capturedGroup){
90
- filenameList.push(capturedGroup);
91
- }
92
- traverseFiles(index + 1);
93
- })
94
- .catch(() => { throw new Error(`Error reading file: ${file}`); });
87
+ try {
88
+ const capturedGroup = await extractMatchFromFile(file, pattern);
89
+ if (capturedGroup){
90
+ filenameList.push(capturedGroup);
91
+ }
92
+ } catch (error) {
93
+ throw new Error(`Error reading file: ${file}`);
94
+ }
95
95
  }
96
96
  if(!pattern){
97
97
  if(!file) return
98
98
  filenameList.push(path.basename(file));
99
- traverseFiles(index + 1);
100
99
  }
100
+ await traverseFiles(index + 1);
101
+
101
102
  }
102
- traverseFiles(0);
103
+ await traverseFiles(0);
103
104
 
104
105
  return filenameList;
105
106
  }
@@ -107,7 +108,7 @@ export async function checkPages(fail: boolean, force: boolean) {
107
108
  logger.action('Checking pages...');
108
109
  return new Promise<void>(async (resolve, reject) => {
109
110
  try {
110
- const sourcePages = await readFilesInFolder('./.wix/types/', '\\/pages\\/(?<page>.*\\.ts)', '**/*.json',) as string[];
111
+ const sourcePages = await readFilesInFolder('./.wix/types/', '\\/pages\\/(?<page>.*\\.ts)', '*/*.json',) as string[];
111
112
  const tsPages = await readFilesInFolder('./typescript/pages', null, '**/*.ts',) as string[];
112
113
 
113
114
  const sourcePagesSet = new Set(sourcePages);
@@ -187,7 +188,7 @@ export function checkTs(options: TaskOptions, watching: boolean = false): TaskTy
187
188
  const task = (done: gulp.TaskFunctionCallback) => {
188
189
  let hasError = false;
189
190
  const stream = gulp
190
- .src([`${folder}/**/*.ts`, `!${folder}/types/**/*.ts`])
191
+ .src([`${folder}/**/*.{ts,tsx}`, `!${folder}/types/**/*.ts`])
191
192
  .pipe(tsProject(customReporter))
192
193
  .on("error", (error) => {
193
194
  hasError = true;
@@ -35,7 +35,7 @@ export function watchAll(options: TaskOptions): TaskType {
35
35
  '*/public/**/*.tsx',
36
36
  '!src/**/*',
37
37
  ], gulp.parallel(
38
- checkTs(options),
38
+ checkTs(options, true),
39
39
  buildPublic(options),
40
40
  ));
41
41
  }
@@ -43,7 +43,7 @@ export function watchAll(options: TaskOptions): TaskType {
43
43
  function watchPages() {
44
44
  return gulp.watch(['typescript/pages/**/*.ts', '!src/**/*',],
45
45
  gulp.parallel(
46
- checkTs(options),
46
+ checkTs(options, true),
47
47
  buildPages(options),
48
48
  )
49
49
  );
@@ -68,7 +68,7 @@ export function watchAll(options: TaskOptions): TaskType {
68
68
  '!src/**/*',
69
69
  ], gulp.parallel(
70
70
  previewTemplates(options),
71
- checkTs(options),
71
+ checkTs(options, true),
72
72
  )
73
73
  );
74
74
  }