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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/.wix/debug.log +10 -0
  2. package/dist/args.js +0 -1
  3. package/dist/args.js.map +1 -1
  4. package/dist/commands/checks.d.ts +2 -2
  5. package/dist/commands/edit.d.ts +1 -1
  6. package/dist/commands/exec.d.ts +1 -1
  7. package/dist/commands/exec.js +15 -13
  8. package/dist/commands/exec.js.map +1 -1
  9. package/dist/commands/git.d.ts +2 -2
  10. package/dist/commands/home.d.ts +2 -2
  11. package/dist/commands/home.js +25 -2
  12. package/dist/commands/home.js.map +1 -1
  13. package/dist/commands/install.d.ts +1 -0
  14. package/dist/commands/install.js +29 -16
  15. package/dist/commands/install.js.map +1 -1
  16. package/dist/commands/read.d.ts +3 -3
  17. package/dist/config.d.ts +1 -1
  18. package/dist/index.js +0 -0
  19. package/dist/init/blocks.d.ts +1 -1
  20. package/dist/init/blocks.js +2 -2
  21. package/dist/init/cargo.d.ts +1 -1
  22. package/dist/init/cargo.js +2 -2
  23. package/dist/init/expo.d.ts +1 -1
  24. package/dist/init/expo.js +2 -2
  25. package/dist/init/gitModules.d.ts +1 -1
  26. package/dist/init/index.d.ts +1 -2
  27. package/dist/init/index.js +7 -1
  28. package/dist/init/index.js.map +1 -1
  29. package/dist/init/monorepo.d.ts +1 -1
  30. package/dist/init/monorepo.js +2 -2
  31. package/dist/init/prepareVelo.d.ts +1 -1
  32. package/dist/init/tauri.d.ts +1 -1
  33. package/dist/init/tauri.js +2 -2
  34. package/dist/init/templates.d.ts +1 -1
  35. package/dist/init/velo.d.ts +1 -1
  36. package/dist/init/velo.js +3 -2
  37. package/dist/init/velo.js.map +1 -1
  38. package/dist/runtime.d.ts +1 -1
  39. package/dist/schemas/index.d.ts +1 -0
  40. package/dist/schemas/index.js +1 -0
  41. package/dist/schemas/index.js.map +1 -1
  42. package/dist/schemas/lucy.d.ts +2 -2
  43. package/dist/schemas/lucy.js +1 -1
  44. package/dist/schemas/lucy.js.map +1 -1
  45. package/dist/tasks/index.d.ts +1 -1
  46. package/dist/wix-sdk/index.d.ts +1 -1
  47. package/dist/wix-sdk/init.d.ts +1 -1
  48. package/dist/wix-sdk/run.d.ts +1 -1
  49. package/dist/wix-sync/index.d.ts +1 -1
  50. package/dist/wix-sync/init.d.ts +1 -1
  51. package/files/templates/expo verse[D]/files/.nvmrc +1 -0
  52. package/files/templates/expo verse[D]/files/.prettierignore +23 -0
  53. package/files/templates/expo verse[D]/files/.prettierrc.js +16 -0
  54. package/files/templates/expo verse[D]/files/.stylelintrc.json +8 -0
  55. package/files/templates/expo verse[D]/files/.vscode/extensions.json +10 -0
  56. package/files/templates/expo verse[D]/files/.vscode/launch.json +54 -0
  57. package/files/templates/expo verse[D]/files/.vscode/settings.json +30 -0
  58. package/files/templates/expo verse[D]/files/.vscode/tasks.json +0 -0
  59. package/files/templates/expo verse[D]/files/.yarnrc +1 -0
  60. package/files/templates/expo verse[D]/files/.yarnrc.yml +8 -0
  61. package/files/templates/expo verse[D]/files/App.tsx +63 -0
  62. package/files/templates/expo verse[D]/files/DEBUGGING.md +126 -0
  63. package/files/templates/expo verse[D]/files/README.md +45 -0
  64. package/files/templates/expo verse[D]/files/android/app/build.gradle +177 -0
  65. package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
  66. package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +14 -0
  67. package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +7 -0
  68. package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +33 -0
  69. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
  70. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
  71. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  72. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  73. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  74. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  75. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
  76. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
  77. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
  78. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
  79. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
  80. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  81. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  82. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  83. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
  84. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
  85. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  86. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  87. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
  88. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  89. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  90. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  91. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
  92. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  93. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  94. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  95. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
  96. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  97. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  98. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  99. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
  100. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  101. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  102. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  103. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
  104. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  105. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +6 -0
  106. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +7 -0
  107. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +12 -0
  108. package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +3 -0
  109. package/files/templates/expo verse[D]/files/android/build.gradle +37 -0
  110. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  111. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  112. package/files/templates/expo verse[D]/files/android/gradle.properties +59 -0
  113. package/files/templates/expo verse[D]/files/android/gradlew +251 -0
  114. package/files/templates/expo verse[D]/files/android/gradlew.bat +94 -0
  115. package/files/templates/expo verse[D]/files/android/settings.gradle +39 -0
  116. package/files/templates/expo verse[D]/files/app.config.ts +77 -0
  117. package/files/templates/expo verse[D]/files/assets/data/de.csv +949 -0
  118. package/files/templates/expo verse[D]/files/assets/data/en.csv +949 -0
  119. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
  120. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
  121. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
  122. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
  123. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
  124. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
  125. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
  126. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
  127. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
  128. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
  129. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
  130. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
  131. package/files/templates/expo verse[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  132. package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
  133. package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
  134. package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
  135. package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
  136. package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
  137. package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
  138. package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
  139. package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
  140. package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
  141. package/files/templates/expo verse[D]/files/babel.config.js +10 -0
  142. package/files/templates/expo verse[D]/files/components/.gitkeep +0 -0
  143. package/files/templates/expo verse[D]/files/components/MainScreen.tsx +299 -0
  144. package/files/templates/expo verse[D]/files/components/Share.tsx +132 -0
  145. package/files/templates/expo verse[D]/files/components/ui/.gitkeep +0 -0
  146. package/files/templates/expo verse[D]/files/components/ui/dev.tsx +48 -0
  147. package/files/templates/expo verse[D]/files/constants/config.ts +30 -0
  148. package/files/templates/expo verse[D]/files/constants/theme.ts +18 -0
  149. package/files/templates/expo verse[D]/files/data/de.csv +219 -0
  150. package/files/templates/expo verse[D]/files/data/en.csv +219 -0
  151. package/files/templates/expo verse[D]/files/data/version.json +4 -0
  152. package/files/templates/expo verse[D]/files/eas.json +47 -0
  153. package/files/templates/expo verse[D]/files/eslint.config.mjs +185 -0
  154. package/files/templates/expo verse[D]/files/global.css +47 -0
  155. package/files/templates/expo verse[D]/files/hooks/useColorScheme.ts +17 -0
  156. package/files/templates/expo verse[D]/files/index.ts +28 -0
  157. package/files/templates/expo verse[D]/files/lib/content.ts +31 -0
  158. package/files/templates/expo verse[D]/files/lib/data.ts +180 -0
  159. package/files/templates/expo verse[D]/files/lib/helper.ts +54 -0
  160. package/files/templates/expo verse[D]/files/lib/index.ts +21 -0
  161. package/files/templates/expo verse[D]/files/lib/state.ts +128 -0
  162. package/files/templates/expo verse[D]/files/lib/storage.ts +17 -0
  163. package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +38 -0
  164. package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +14 -0
  165. package/files/templates/expo verse[D]/files/lib/utils/index.ts +11 -0
  166. package/files/templates/expo verse[D]/files/lib/utils/polyfills.ts +29 -0
  167. package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +77 -0
  168. package/files/templates/expo verse[D]/files/lucy.json +8 -0
  169. package/files/templates/expo verse[D]/files/metro.config.js +81 -0
  170. package/files/templates/expo verse[D]/files/models/index.ts +28 -0
  171. package/files/templates/expo verse[D]/files/nativewind-env.d.ts +1 -0
  172. package/files/templates/expo verse[D]/files/package.json +102 -0
  173. package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +3 -0
  174. package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +309 -0
  175. package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +83 -0
  176. package/files/templates/expo verse[D]/files/scripts/reset-project.ts +116 -0
  177. package/files/templates/expo verse[D]/files/tailwind.config.js +63 -0
  178. package/files/templates/expo verse[D]/files/tsconfig.json +45 -0
  179. package/files/templates/expo verse[D]/files/types/index.ts +4 -0
  180. package/files/templates/expo verse[D]/files/types/reset.d.ts +1 -0
  181. package/files/templates/expo verse[D]/lucy.json +86 -0
  182. package/files/templates/expo[D]/files/app.config.ts +69 -0
  183. package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  184. package/files/templates/expo[D]/files/scripts/reset-project.ts +0 -0
  185. package/files/templates/velo[D]/files/.yarnrc.yml +1 -2
  186. package/files/templates/velo[D]/lucy.json +1 -1
  187. package/mitarbeiter-login.html +188 -0
  188. package/old/index.ts +0 -0
  189. package/package.json +11 -11
  190. package/pnpm-workspace.yaml +6 -0
  191. package/src/args.ts +0 -1
  192. package/src/commands/exec.ts +22 -18
  193. package/src/commands/home.ts +36 -2
  194. package/src/commands/install.ts +41 -21
  195. package/src/index.ts +0 -0
  196. package/src/init/blocks.ts +2 -2
  197. package/src/init/cargo.ts +2 -2
  198. package/src/init/expo.ts +2 -2
  199. package/src/init/index.ts +7 -1
  200. package/src/init/monorepo.ts +2 -2
  201. package/src/init/tauri.ts +2 -2
  202. package/src/init/velo.ts +4 -3
  203. package/src/schemas/index.ts +2 -0
  204. package/src/schemas/lucy.ts +1 -1
@@ -0,0 +1,86 @@
1
+ {
2
+ "modules": {},
3
+ "devDependencies": {
4
+ "tailwindcss": "^3.4.17",
5
+ "prettier-plugin-tailwindcss": "^0.5.11",
6
+ "@styled/typescript-styled-plugin": "",
7
+ "typescript-eslint-language-service": "",
8
+ "eslint-config-prettier": "",
9
+ "eslint-plugin-jsdoc": "",
10
+ "eslint-plugin-named-import-spacing": "",
11
+ "eslint-plugin-only-warn": "",
12
+ "eslint-plugin-react": "",
13
+ "eslint-plugin-react-hooks": "",
14
+ "eslint-plugin-simple-import-sort": "",
15
+ "@next/eslint-plugin-next": "",
16
+ "@stylelint/postcss-css-in-js": "",
17
+ "@typescript-eslint/parser": "",
18
+ "typescript-eslint": "",
19
+ "@total-typescript/ts-reset": "",
20
+ "expo-doctor": "",
21
+ "tsx": ""
22
+ },
23
+ "dependencies": {
24
+ "nativewind": "",
25
+ "react-native-reanimated": "~3.17.4",
26
+ "react-native-safe-area-context": "5.4.0",
27
+ "@wix/sdk": "1.15.24",
28
+ "@wix/data": "",
29
+ "expo-standard-web-crypto": "",
30
+ "effect": "",
31
+ "node-libs-react-native": "",
32
+ "util": "",
33
+ "events": "",
34
+ "tailwindcss-animate": "",
35
+ "papaparse": ""
36
+ },
37
+ "additionalCommands": [
38
+ [
39
+ "npx",
40
+ "expo",
41
+ "install",
42
+ "tailwindcss-animate",
43
+ "class-variance-authority",
44
+ "clsx",
45
+ "tailwind-merge",
46
+ "expo-crypto",
47
+ "react-dom",
48
+ "react-native-web",
49
+ "@expo/metro-runtime",
50
+ "expo-system-ui",
51
+ "expo-localization",
52
+ "expo-file-system",
53
+ "expo-asset"
54
+ ]
55
+ ],
56
+ "scripts": {
57
+ "dev": "expo start",
58
+ "start": "expo start",
59
+ "android": "expo start --android",
60
+ "ios": "expo start --ios",
61
+ "web": "expo start --web",
62
+ "reset": "tsx ./scripts/reset-project.ts",
63
+ "format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
64
+ "prebuild": "expo prebuild",
65
+ "pods": "npx pod-install",
66
+ "build:dev": "eas build --local --profile development",
67
+ "build:sim": "eas build --local --profile ios-simulator",
68
+ "build:prev": "eas build --local --profile preview",
69
+ "build:prod": "eas build --local --profile production",
70
+ "build:web": "expo export --platform web",
71
+ "doctor": "expo-doctor",
72
+ "eas-build-pre-install": "corepack enable && yarn set version 4"
73
+ },
74
+ "initialized": false,
75
+ "type": "expo",
76
+ "packageManager": "pnpm",
77
+ "additionalPkgProps": {
78
+ "expo": {
79
+ "doctor": {
80
+ "reactNativeDirectoryCheck": {
81
+ "listUnknownPackages": false
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,69 @@
1
+ import { ExpoConfig, ConfigContext } from 'expo/config';
2
+
3
+ export default ({ config }: ConfigContext): ExpoConfig => ({
4
+ ...config,
5
+ slug: 'daily-verse',
6
+ name: 'Daily Verse',
7
+ owner: 'sunnyside-up',
8
+ version: '1.0.0',
9
+ orientation: 'portrait',
10
+ userInterfaceStyle: 'automatic',
11
+ icon: './assets/images/icon.png',
12
+ newArchEnabled: true,
13
+ ios: {
14
+ supportsTablet: true,
15
+ bundleIdentifier: 'so.sunnysideup.daily-verse',
16
+ config: {
17
+ usesNonExemptEncryption: false,
18
+ },
19
+ icon: {
20
+ dark: './assets/images/ios-dark.png',
21
+ light: './assets/images/ios-light.png',
22
+ tinted: './assets/images/ios-tinted.png',
23
+ },
24
+ },
25
+ android: {
26
+ adaptiveIcon: {
27
+ foregroundImage: './assets/images/adaptive-icon.png',
28
+ monochromeImage: './assets/images/adaptive-icon.png',
29
+ // backgroundImage: "./assets/images/adaptive-icon.png",
30
+ backgroundColor: '#ffffff',
31
+ },
32
+ edgeToEdgeEnabled: true,
33
+ package: 'so.sunnysideup.daily_verse',
34
+ },
35
+ web: {
36
+ favicon: './assets/favicon.png',
37
+ bundler: 'metro',
38
+ },
39
+ extra: {
40
+ eas: {
41
+ projectId: 'ce2e3d56-e924-46a0-a880-f9f9911558eb',
42
+ },
43
+ },
44
+ plugins: [
45
+ 'expo-localization',
46
+ 'expo-asset',
47
+ 'expo-font',
48
+ [
49
+ 'expo-splash-screen',
50
+ {
51
+ image: './assets/images/splash-icon-dark.png',
52
+ imageWith: 200,
53
+ resizeMode: 'contain',
54
+ backgroundColor: '#ffffff',
55
+ dark: {
56
+ image: './assets/images/splash-icon-light.png',
57
+ backgroundColor: '#000000',
58
+ },
59
+ },
60
+ ],
61
+ ],
62
+ sdkVersion: '53.0.0',
63
+ runtimeVersion: {
64
+ policy: 'appVersion',
65
+ },
66
+ updates: {
67
+ url: 'https://u.expo.dev/314ea1f7-8fd3-4748-8c27-c8b04616f6c2',
68
+ },
69
+ });
@@ -1,3 +1,2 @@
1
1
  nodeLinker: node-modules
2
- npmRegistryServer: "https://registry.npmjs.org/"
3
- yarnPath: .yarn/releases/yarn-3.7.0.cjs
2
+ npmRegistryServer: "https://registry.npmjs.org/"
@@ -133,5 +133,5 @@
133
133
  "e2e": "cypress-cloud run --parallel --record"
134
134
  },
135
135
  "type": "velo",
136
- "packageManager": "pnpm"
136
+ "packageManager": "yarn"
137
137
  }
@@ -0,0 +1,188 @@
1
+ <!DOCTYPE html>
2
+ <html lang="de">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Mitarbeiter Login</title>
7
+ <style>
8
+ @import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed&display=swap');
9
+
10
+ * {
11
+ margin: 0;
12
+ padding: 0;
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ body {
17
+ font-family: 'Barlow Semi Condensed', sans-serif;
18
+ height: 100vh;
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ background-color: #f0f0f0;
23
+ }
24
+
25
+ .login-container {
26
+ position: relative;
27
+ width: 1200px;
28
+ height: 1920px;
29
+ border-radius: 20px;
30
+ overflow: hidden;
31
+ background: radial-gradient(ellipse at center,
32
+ rgba(122,206,255,1) 0%,
33
+ rgba(92,187,243,1) 10.677%,
34
+ rgba(61,168,231,1) 21.354%,
35
+ rgba(31,148,218,1) 32.031%,
36
+ rgba(15,139,212,1) 37.37%,
37
+ rgba(0,129,206,1) 42.708%,
38
+ rgba(14,111,169,1) 51.563%,
39
+ rgba(28,93,132,1) 60.417%,
40
+ rgba(41,74,94,1) 69.271%,
41
+ rgba(55,56,57,1) 78.125%);
42
+ }
43
+
44
+ .login-button {
45
+ position: absolute;
46
+ top: 50%;
47
+ left: 50%;
48
+ transform: translate(-50%, -50%);
49
+ width: 440px;
50
+ height: 440px;
51
+ background-color: #ffffff;
52
+ border-radius: 9999px;
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ padding: 10px 24px;
57
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
58
+ }
59
+
60
+ .login-text {
61
+ font-family: 'Barlow Semi Condensed', sans-serif;
62
+ font-size: 56px;
63
+ font-weight: 400;
64
+ color: #363839;
65
+ text-align: center;
66
+ line-height: 1;
67
+ }
68
+
69
+ .instruction-text {
70
+ position: absolute;
71
+ top: 608px;
72
+ left: 50%;
73
+ transform: translateX(-50%);
74
+ width: 1030px;
75
+ height: 102px;
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ font-family: 'Barlow Semi Condensed', sans-serif;
80
+ font-size: 56px;
81
+ font-weight: 400;
82
+ color: #ffffff;
83
+ text-align: center;
84
+ line-height: 1;
85
+ }
86
+
87
+ .icon-button {
88
+ position: absolute;
89
+ bottom: 20px;
90
+ left: 14px;
91
+ width: 80px;
92
+ height: 80px;
93
+ background-color: #363839;
94
+ border-radius: 100px;
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: center;
98
+ border: 4px solid #ffffff;
99
+ }
100
+
101
+ .icon {
102
+ width: 50px;
103
+ height: 50px;
104
+ position: relative;
105
+ }
106
+
107
+ .icon-inner {
108
+ position: absolute;
109
+ top: 16.667%;
110
+ left: 16.667%;
111
+ width: 66.666%;
112
+ height: 66.666%;
113
+ background-color: #ffffff;
114
+ border-radius: 8px;
115
+ }
116
+
117
+ .logo {
118
+ position: absolute;
119
+ bottom: 95px;
120
+ right: 98px;
121
+ width: 600px;
122
+ height: 125px;
123
+ background-color: rgba(255, 255, 255, 0.1);
124
+ border-radius: 10px;
125
+ display: flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ color: #ffffff;
129
+ font-size: 24px;
130
+ }
131
+
132
+ /* Responsive adjustments */
133
+ @media (max-width: 1200px) {
134
+ .login-container {
135
+ width: 100vw;
136
+ height: 100vh;
137
+ border-radius: 0;
138
+ }
139
+
140
+ .login-button {
141
+ width: 300px;
142
+ height: 300px;
143
+ }
144
+
145
+ .login-text {
146
+ font-size: 40px;
147
+ }
148
+
149
+ .instruction-text {
150
+ width: 90%;
151
+ font-size: 40px;
152
+ }
153
+
154
+ .logo {
155
+ width: 400px;
156
+ height: 80px;
157
+ right: 20px;
158
+ bottom: 60px;
159
+ }
160
+ }
161
+ </style>
162
+ </head>
163
+ <body>
164
+ <div class="login-container">
165
+ <!-- Main Login Button -->
166
+ <div class="login-button">
167
+ <div class="login-text">LOGIN</div>
168
+ </div>
169
+
170
+ <!-- Instruction Text -->
171
+ <div class="instruction-text">
172
+ <p>Mitarbeiterausweis an das Gerät halten.</p>
173
+ </div>
174
+
175
+ <!-- Icon Button -->
176
+ <div class="icon-button">
177
+ <div class="icon">
178
+ <div class="icon-inner"></div>
179
+ </div>
180
+ </div>
181
+
182
+ <!-- Logo Placeholder -->
183
+ <div class="logo">
184
+ [Logo Placeholder]
185
+ </div>
186
+ </div>
187
+ </body>
188
+ </html>
package/old/index.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,15 +1,9 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "2.0.0-beta.3",
4
+ "version": "2.0.0-beta.6",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
- "scripts": {
8
- "build": "tsc",
9
- "dev": "tsc -w",
10
- "postinstall": "patch-package",
11
- "start": "NODE_OPTIONS='--no-warnings' node dist/index.js"
12
- },
13
7
  "repository": {
14
8
  "type": "git",
15
9
  "url": "git+https://github.com/Sunnyside-UP-GmbH/lucy-cli.git"
@@ -33,8 +27,8 @@
33
27
  "registry": "https://registry.npmjs.org"
34
28
  },
35
29
  "dependencies": {
36
- "@effect/platform": "^0.90.0",
37
- "@effect/platform-node": "^0.94.0",
30
+ "@effect/platform": "0.92.1",
31
+ "@effect/platform-node": "0.98.3",
38
32
  "@swc/core": "^1.9.3",
39
33
  "@wix/cli": "^1.0.83",
40
34
  "@wix/data": "^1.0.270",
@@ -99,9 +93,15 @@
99
93
  "@typescript-eslint/utils": "8.39.0",
100
94
  "eslint": "9.32.0",
101
95
  "eslint-plugin-import": "^2.27.5",
102
- "eslint-plugin-jsdoc": "52.0.4",
96
+ "eslint-plugin-jsdoc": "60.8.2",
103
97
  "eslint-plugin-named-import-spacing": "^1.0.3",
104
98
  "eslint-plugin-simple-import-sort": "12.1.1",
105
99
  "ts-node": "10.9.2"
100
+ },
101
+ "scripts": {
102
+ "build": "tsc",
103
+ "dev": "tsc -w",
104
+ "postinstall": "patch-package",
105
+ "start": "NODE_OPTIONS='--no-warnings' node dist/index.js"
106
106
  }
107
- }
107
+ }
@@ -0,0 +1,6 @@
1
+ onlyBuiltDependencies:
2
+ - '@parcel/watcher'
3
+ - '@swc/core'
4
+ - msgpackr-extract
5
+ - sqlite3
6
+ - unrs-resolver
package/src/args.ts CHANGED
@@ -109,7 +109,6 @@ export async function get_args(): Promise<LucyArgs> {
109
109
  monorepo Monorepo setup
110
110
  tauri Tauri desktop app
111
111
  cargo Rust project
112
- submodules Git submodules
113
112
  wix-sdk Wix SDK setup
114
113
 
115
114
  For more information, visit https://github.com/Sunnyside-UP-GmbH/lucy-cli
@@ -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/index.ts CHANGED
File without changes
@@ -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
  }