lucy-cli 2.0.0-alpha.2 → 2.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarnrc.yml +0 -1
- package/dist/Gulpfile.d.ts +35 -0
- package/dist/Gulpfile.js +132 -0
- package/dist/Gulpfile.js.map +1 -0
- package/dist/args.d.ts +1 -6
- package/dist/args.js +62 -7
- package/dist/args.js.map +1 -0
- package/dist/commands/checks.d.ts +7 -0
- package/dist/commands/checks.js +47 -0
- package/dist/commands/checks.js.map +1 -0
- package/dist/commands/cleanup copy.d.ts +4 -0
- package/dist/commands/cleanup copy.js +10 -0
- package/dist/commands/cleanup copy.js.map +1 -0
- package/dist/commands/cleanup.d.ts +4 -0
- package/dist/commands/cleanup.js +10 -0
- package/dist/commands/cleanup.js.map +1 -0
- package/dist/commands/copy.d.ts +6 -0
- package/dist/commands/copy.js +20 -0
- package/dist/commands/copy.js.map +1 -0
- package/dist/commands/edit.d.ts +10 -0
- package/dist/commands/edit.js +69 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/exec copy.d.ts +3 -0
- package/dist/commands/exec copy.js +20 -0
- package/dist/commands/exec copy.js.map +1 -0
- package/dist/commands/exec.d.ts +5 -0
- package/dist/commands/exec.js +40 -0
- package/dist/commands/exec.js.map +1 -0
- package/dist/commands/files.d.ts +7 -0
- package/dist/commands/files.js +28 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/git.d.ts +8 -0
- package/dist/commands/git.js +104 -0
- package/dist/commands/git.js.map +1 -0
- package/dist/commands/home.d.ts +4 -0
- package/dist/commands/home.js +18 -0
- package/dist/commands/home.js.map +1 -0
- package/dist/commands/install.d.ts +8 -0
- package/dist/commands/install.js +110 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/read.d.ts +6 -0
- package/dist/commands/read.js +41 -0
- package/dist/commands/read.js.map +1 -0
- package/dist/commands/write.d.ts +7 -0
- package/dist/commands/write.js +28 -0
- package/dist/commands/write.js.map +1 -0
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -0
- package/dist/config.d.ts +30 -7
- package/dist/config.js +89 -26
- package/dist/config.js.map +1 -0
- package/dist/error.d.ts +1 -9
- package/dist/error.js +1 -2
- package/dist/error.js.map +1 -0
- package/dist/gulp/backend.d.ts +3 -0
- package/dist/gulp/backend.js +92 -0
- package/dist/gulp/backend.js.map +1 -0
- package/dist/gulp/checks.d.ts +3 -0
- package/dist/gulp/checks.js +194 -0
- package/dist/gulp/checks.js.map +1 -0
- package/dist/gulp/clean.d.ts +3 -0
- package/dist/gulp/clean.js +33 -0
- package/dist/gulp/clean.js.map +1 -0
- package/dist/gulp/copy.d.ts +2 -0
- package/dist/gulp/copy.js +34 -0
- package/dist/gulp/copy.js.map +1 -0
- package/dist/gulp/helpers.d.ts +2 -0
- package/dist/gulp/helpers.js +21 -0
- package/dist/gulp/helpers.js.map +1 -0
- package/dist/gulp/pages.d.ts +2 -0
- package/dist/gulp/pages.js +39 -0
- package/dist/gulp/pages.js.map +1 -0
- package/dist/gulp/pipeline.d.ts +1 -0
- package/dist/gulp/pipeline.js +29 -0
- package/dist/gulp/pipeline.js.map +1 -0
- package/dist/gulp/public.d.ts +2 -0
- package/dist/gulp/public.js +50 -0
- package/dist/gulp/public.js.map +1 -0
- package/dist/gulp/styles.d.ts +2 -0
- package/dist/gulp/styles.js +40 -0
- package/dist/gulp/styles.js.map +1 -0
- package/dist/gulp/templates.d.ts +2 -0
- package/dist/gulp/templates.js +33 -0
- package/dist/gulp/templates.js.map +1 -0
- package/dist/gulp/types.d.ts +4 -0
- package/dist/gulp/types.js +289 -0
- package/dist/gulp/types.js.map +1 -0
- package/dist/gulp/watchers.d.ts +9 -0
- package/dist/gulp/watchers.js +57 -0
- package/dist/gulp/watchers.js.map +1 -0
- package/dist/helpers.d.ts +9 -0
- package/dist/helpers.js +83 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +78 -9
- package/dist/index.js.map +1 -0
- package/dist/init/blocks.d.ts +5 -0
- package/dist/init/blocks.js +60 -0
- package/dist/init/blocks.js.map +1 -0
- package/dist/init/cargo copy.d.ts +2 -0
- package/dist/init/cargo copy.js +16 -0
- package/dist/init/cargo copy.js.map +1 -0
- package/dist/init/cargo.d.ts +2 -0
- package/dist/init/cargo.js +19 -0
- package/dist/init/cargo.js.map +1 -0
- package/dist/init/expo copy.d.ts +5 -0
- package/dist/init/expo copy.js +48 -0
- package/dist/init/expo copy.js.map +1 -0
- package/dist/init/expo.d.ts +5 -0
- package/dist/init/expo.js +50 -0
- package/dist/init/expo.js.map +1 -0
- package/dist/init/gitModules.d.ts +2 -0
- package/dist/init/gitModules.js +13 -0
- package/dist/init/gitModules.js.map +1 -0
- package/dist/init/index.d.ts +4 -0
- package/dist/init/index.js +62 -0
- package/dist/init/index.js.map +1 -0
- package/dist/init/lucy.d.ts +1 -0
- package/dist/init/lucy.js +2 -0
- package/dist/init/monorepo copy.d.ts +4 -0
- package/dist/init/monorepo copy.js +28 -0
- package/dist/init/monorepo copy.js.map +1 -0
- package/dist/init/monorepo.d.ts +4 -0
- package/dist/init/monorepo.js +35 -0
- package/dist/init/monorepo.js.map +1 -0
- package/dist/init/prepare.d.ts +8 -0
- package/dist/init/prepare.js +20 -0
- package/dist/init/prepare.js.map +1 -0
- package/dist/init/prepareVelo.d.ts +2 -0
- package/dist/init/prepareVelo.js +16 -0
- package/dist/init/prepareVelo.js.map +1 -0
- package/dist/init/sync.d.ts +2 -0
- package/dist/init/sync.js +88 -0
- package/dist/init/sync.js.map +1 -0
- package/dist/init/tauri.d.ts +5 -0
- package/dist/init/tauri.js +29 -0
- package/dist/init/tauri.js.map +1 -0
- package/dist/init/templates.d.ts +5 -0
- package/dist/init/templates.js +93 -0
- package/dist/init/templates.js.map +1 -0
- package/dist/init/velo.d.ts +5 -0
- package/dist/init/velo.js +58 -0
- package/dist/init/velo.js.map +1 -0
- package/dist/init/write.d.ts +5 -0
- package/dist/init/write.js +15 -0
- package/dist/init.js +44 -18
- package/dist/models.js +1 -0
- package/dist/models.js.map +1 -0
- package/dist/policy.js +1 -0
- package/dist/policy.js.map +1 -0
- package/dist/prepare.js +1 -0
- package/dist/prepare.js.map +1 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schemas/gulp.d.ts +25 -0
- package/dist/schemas/gulp.js +8 -0
- package/dist/schemas/gulp.js.map +1 -0
- package/dist/schemas/index.d.ts +10 -0
- package/dist/schemas/index.js +9 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lucy.d.ts +26 -0
- package/dist/schemas/lucy.js +39 -0
- package/dist/schemas/lucy.js.map +1 -0
- package/dist/schemas/models.d.ts +37 -0
- package/dist/schemas/models.js +2 -0
- package/dist/schemas/models.js.map +1 -0
- package/dist/schemas/tsconfig.d.ts +37 -0
- package/dist/schemas/tsconfig.js +2 -0
- package/dist/schemas/tsconfig.js.map +1 -0
- package/dist/schemas/types.d.ts +33 -0
- package/dist/schemas/types.js +5 -1
- package/dist/schemas/types.js.map +1 -0
- package/dist/states.js +1 -0
- package/dist/states.js.map +1 -0
- package/dist/sync/index.js +2 -0
- package/dist/sync/index.js.map +1 -0
- package/dist/sync/sync.d.ts +3 -0
- package/dist/sync/sync.js +92 -0
- package/dist/sync/sync.js.map +1 -0
- package/dist/tasks/Gulpfile.d.ts +4 -0
- package/dist/tasks/Gulpfile.js +111 -0
- package/dist/tasks/Gulpfile.js.map +1 -0
- package/dist/tasks/gitModules.d.ts +2 -0
- package/dist/tasks/gitModules.js +13 -0
- package/dist/tasks/gitModules.js.map +1 -0
- package/dist/tasks/gulp/backend.d.ts +4 -0
- package/dist/tasks/gulp/backend.js +92 -0
- package/dist/tasks/gulp/backend.js.map +1 -0
- package/dist/tasks/gulp/checks.d.ts +4 -0
- package/dist/tasks/gulp/checks.js +202 -0
- package/dist/tasks/gulp/checks.js.map +1 -0
- package/dist/tasks/gulp/clean.d.ts +3 -0
- package/dist/tasks/gulp/clean.js +33 -0
- package/dist/tasks/gulp/clean.js.map +1 -0
- package/dist/tasks/gulp/copy.d.ts +3 -0
- package/dist/tasks/gulp/copy.js +34 -0
- package/dist/tasks/gulp/copy.js.map +1 -0
- package/dist/tasks/gulp/helpers.d.ts +3 -0
- package/dist/tasks/gulp/helpers.js +19 -0
- package/dist/tasks/gulp/helpers.js.map +1 -0
- package/dist/tasks/gulp/pages.d.ts +2 -0
- package/dist/tasks/gulp/pages.js +39 -0
- package/dist/tasks/gulp/pages.js.map +1 -0
- package/dist/tasks/gulp/pipeline.d.ts +1 -0
- package/dist/tasks/gulp/pipeline.js +29 -0
- package/dist/tasks/gulp/pipeline.js.map +1 -0
- package/dist/tasks/gulp/public.d.ts +3 -0
- package/dist/tasks/gulp/public.js +50 -0
- package/dist/tasks/gulp/public.js.map +1 -0
- package/dist/tasks/gulp/styles.d.ts +3 -0
- package/dist/tasks/gulp/styles.js +40 -0
- package/dist/tasks/gulp/styles.js.map +1 -0
- package/dist/tasks/gulp/templates.d.ts +2 -0
- package/dist/tasks/gulp/templates.js +45 -0
- package/dist/tasks/gulp/templates.js.map +1 -0
- package/dist/tasks/gulp/types.d.ts +4 -0
- package/dist/tasks/gulp/types.js +293 -0
- package/dist/tasks/gulp/types.js.map +1 -0
- package/dist/tasks/gulp/watchers.d.ts +3 -0
- package/dist/tasks/gulp/watchers.js +59 -0
- package/dist/tasks/gulp/watchers.js.map +1 -0
- package/dist/tasks/index.d.ts +4 -0
- package/dist/tasks/index.js +23 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/sync.d.ts +2 -0
- package/dist/tasks/sync.js +88 -0
- package/dist/tasks/sync.js.map +1 -0
- package/dist/tasks/syncPkg.d.ts +3 -0
- package/dist/tasks/syncPkg.js +13 -0
- package/dist/tasks/syncPkg.js.map +1 -0
- package/dist/tasks/syncSettings.d.ts +3 -0
- package/dist/tasks/syncSettings.js +18 -0
- package/dist/tasks/syncSettings.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/install.js +1 -0
- package/dist/utils/logger.d.ts +17 -0
- package/dist/utils/logger.js +37 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/wix-sdk/check.d.ts +4 -0
- package/dist/wix-sdk/check.js +23 -0
- package/dist/wix-sdk/check.js.map +1 -0
- package/dist/wix-sdk/client.d.ts +10 -0
- package/dist/wix-sdk/client.js +18 -0
- package/dist/wix-sdk/client.js.map +1 -0
- package/dist/wix-sdk/import.d.ts +1 -0
- package/dist/wix-sdk/import.js +88 -0
- package/dist/wix-sdk/import.js.map +1 -0
- package/dist/wix-sdk/index.d.ts +4 -0
- package/dist/wix-sdk/index.js +15 -0
- package/dist/wix-sdk/index.js.map +1 -0
- package/dist/wix-sdk/init copy.d.ts +4 -0
- package/dist/wix-sdk/init copy.js +51 -0
- package/dist/wix-sdk/init copy.js.map +1 -0
- package/dist/wix-sdk/init.d.ts +4 -0
- package/dist/wix-sdk/init.js +51 -0
- package/dist/wix-sdk/init.js.map +1 -0
- package/dist/wix-sdk/is-allive.d.ts +4 -0
- package/dist/wix-sdk/is-allive.js +37 -0
- package/dist/wix-sdk/is-allive.js.map +1 -0
- package/dist/wix-sdk/run.d.ts +4 -0
- package/dist/wix-sdk/run.js +53 -0
- package/dist/wix-sdk/run.js.map +1 -0
- package/dist/wix-sdk/sync copy.d.ts +1 -0
- package/dist/wix-sdk/sync copy.js +88 -0
- package/dist/wix-sdk/sync copy.js.map +1 -0
- package/dist/wix-sdk/sync.d.ts +1 -0
- package/dist/wix-sdk/sync.js +88 -0
- package/dist/wix-sdk/sync.js.map +1 -0
- package/dist/wix-sdk/wix_sdk_check.d.ts +4 -0
- package/dist/wix-sdk/wix_sdk_check.js +37 -0
- package/dist/wix-sdk/wix_sdk_check.js.map +1 -0
- package/dist/wix-sync/client.d.ts +3 -0
- package/dist/wix-sync/client.js +5 -0
- package/dist/wix-sync/client.js.map +1 -0
- package/dist/wix-sync/export copy.d.ts +4 -0
- package/dist/wix-sync/export copy.js +21 -0
- package/dist/wix-sync/export copy.js.map +1 -0
- package/dist/wix-sync/export.d.ts +4 -0
- package/dist/wix-sync/export.js +15 -0
- package/dist/wix-sync/export.js.map +1 -0
- package/dist/wix-sync/import copy.d.ts +4 -0
- package/dist/wix-sync/import copy.js +21 -0
- package/dist/wix-sync/import copy.js.map +1 -0
- package/dist/wix-sync/import.d.ts +4 -0
- package/dist/wix-sync/import.js +26 -0
- package/dist/wix-sync/import.js.map +1 -0
- package/dist/wix-sync/index.d.ts +4 -0
- package/dist/wix-sync/index.js +35 -0
- package/dist/wix-sync/index.js.map +1 -0
- package/dist/wix-sync/init copy.d.ts +4 -0
- package/dist/wix-sync/init copy.js +54 -0
- package/dist/wix-sync/init copy.js.map +1 -0
- package/dist/wix-sync/init.d.ts +4 -0
- package/dist/wix-sync/init.js +74 -0
- package/dist/wix-sync/init.js.map +1 -0
- package/dist/wix-sync/is-alive.d.ts +4 -0
- package/dist/wix-sync/is-alive.js +23 -0
- package/dist/wix-sync/is-alive.js.map +1 -0
- package/dist/wix-sync/is-allive copy.d.ts +4 -0
- package/dist/wix-sync/is-allive copy.js +23 -0
- package/dist/wix-sync/is-allive copy.js.map +1 -0
- package/dist/wix-sync/is-allive.d.ts +4 -0
- package/dist/wix-sync/is-allive.js +23 -0
- package/dist/wix-sync/is-allive.js.map +1 -0
- package/dist/wix-sync/migrate.d.ts +4 -0
- package/dist/wix-sync/migrate.js +21 -0
- package/dist/wix-sync/migrate.js.map +1 -0
- package/dist/wix-sync/sync-od.js +100 -0
- package/dist/wix-sync/sync-od.js.map +1 -0
- package/dist/wix-sync/sync.d.ts +4 -0
- package/dist/wix-sync/sync.js +26 -0
- package/dist/wix-sync/sync.js.map +1 -0
- package/dist/wix-sync/sync2.d.ts +4 -0
- package/dist/wix-sync/sync2.js +25 -0
- package/dist/wix-sync/sync2.js.map +1 -0
- package/dist/wix-sync copy/index.d.ts +4 -0
- package/dist/wix-sync copy/index.js +17 -0
- package/dist/wix-sync copy/index.js.map +1 -0
- package/dist/wix-sync copy/init.d.ts +4 -0
- package/dist/wix-sync copy/init.js +58 -0
- package/dist/wix-sync copy/init.js.map +1 -0
- package/dist/wix-sync copy/is-allive.d.ts +4 -0
- package/dist/wix-sync copy/is-allive.js +36 -0
- package/dist/wix-sync copy/is-allive.js.map +1 -0
- package/dist/wix-sync copy/sync.d.ts +1 -0
- package/dist/wix-sync copy/sync.js +88 -0
- package/dist/wix-sync copy/sync.js.map +1 -0
- package/files/sync-data/data/test.csv +17 -0
- package/files/sync-data/files/lucy.jpg +0 -0
- package/files/sync-data/schema/test.json +11 -0
- package/files/templates/block[D]/files/.stylelintrc.js +8 -0
- package/files/templates/block[D]/lucy.json +8 -0
- package/files/templates/cargo[D]/files/.env +1 -0
- package/files/templates/cargo[D]/files/Cargo.toml +238 -0
- package/files/templates/cargo[D]/files/Makefile.toml +4 -0
- package/files/templates/cargo[D]/files/build/main.rs +35 -0
- package/files/templates/cargo[D]/files/config/beta.json +19 -0
- package/files/templates/cargo[D]/files/config/ci.json +15 -0
- package/files/templates/cargo[D]/files/config/default.json +71 -0
- package/files/templates/cargo[D]/files/config/development.json +10 -0
- package/files/templates/cargo[D]/files/config/produktion.json +5 -0
- package/files/templates/cargo[D]/files/config/stage.json +4 -0
- package/files/templates/cargo[D]/files/locales/todo.yml +3 -0
- package/files/templates/cargo[D]/files/public/index.html +1 -0
- package/files/templates/cargo[D]/lucy.json +14 -0
- package/files/templates/expo[D]/files/.prettierrc.js +16 -0
- package/files/templates/expo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/expo[D]/files/.yarnrc.yml +3 -0
- package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo[D]/files/assets/images/adaptive-icon.png +0 -0
- package/files/templates/expo[D]/files/assets/images/favicon.png +0 -0
- package/files/templates/expo[D]/files/assets/images/icon.png +0 -0
- package/files/templates/expo[D]/files/assets/images/splash-icon.png +0 -0
- package/files/templates/expo[D]/files/babel.config.js +10 -0
- package/files/templates/expo[D]/files/constants/theme.ts +18 -0
- package/files/{expo → templates/expo[D]/files}/eas.json +9 -3
- package/files/{expo/eslint.config.js → templates/expo[D]/files/eslint.config.mjs} +15 -19
- package/files/templates/expo[D]/files/hooks/useColorScheme.ts +17 -0
- package/files/templates/expo[D]/files/index.ts +11 -0
- package/files/templates/expo[D]/files/lib/data.ts +48 -0
- package/files/templates/expo[D]/files/lib/utils/index.ts +11 -0
- package/files/{expo → templates/expo[D]/files}/lib/utils/polyfills.ts +1 -1
- package/files/{expo → templates/expo[D]/files}/lib/wix/client.ts +3 -5
- package/files/templates/expo[D]/files/lib/wix/error.ts +3 -0
- package/files/templates/expo[D]/files/lib/wix/index.ts +2 -0
- package/files/templates/expo[D]/files/metro.config.js +57 -0
- package/files/templates/expo[D]/files/scripts/reset-project.ts +116 -0
- package/files/templates/expo[D]/files/tailwind.config.js +63 -0
- package/files/templates/expo[D]/files/tsconfig.json +46 -0
- package/files/templates/expo[D]/lucy.json +81 -0
- package/files/templates/monorepo[D]/files/.nvmrc +1 -0
- package/files/templates/monorepo[D]/files/.prettierignore +23 -0
- package/files/{expo → templates/monorepo[D]/files}/.prettierrc.json +0 -1
- package/files/templates/monorepo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/monorepo[D]/files/.yarnrc +1 -0
- package/files/templates/monorepo[D]/files/README.md +137 -0
- package/files/templates/monorepo[D]/files/currents.config.ts +5 -0
- package/files/templates/monorepo[D]/files/package.json +39 -0
- package/files/templates/monorepo[D]/files/turbo.json +34 -0
- package/files/templates/monorepo[D]/files/typedoc.json +25 -0
- package/files/templates/monorepo[D]/files/vitest.config.ts +27 -0
- package/files/templates/monorepo[D]/lucy.json +45 -0
- package/files/templates/tauri[D]/lucy.json +8 -0
- package/files/templates/velo[D]/files/.prettierignore +23 -0
- package/files/templates/velo[D]/files/.prettierrc.js +16 -0
- package/files/templates/velo[D]/files/typescript/public/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/scss/app.scss +0 -0
- package/files/templates/velo[D]/files/typescript/styles/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/styles/global.scss +0 -0
- package/files/templates/velo[D]/lucy.json +136 -0
- package/old/Gulpfile.d.ts +34 -0
- package/old/Gulpfile.js +116 -0
- package/old/Gulpfile.js.map +1 -0
- package/old/gulp/backend.d.ts +3 -0
- package/old/gulp/backend.js +92 -0
- package/old/gulp/backend.js.map +1 -0
- package/old/gulp/checks.d.ts +3 -0
- package/old/gulp/checks.js +205 -0
- package/old/gulp/checks.js.map +1 -0
- package/old/gulp/clean.d.ts +3 -0
- package/old/gulp/clean.js +29 -0
- package/old/gulp/clean.js.map +1 -0
- package/old/gulp/copy.d.ts +2 -0
- package/old/gulp/copy.js +34 -0
- package/old/gulp/copy.js.map +1 -0
- package/old/gulp/helpers.d.ts +2 -0
- package/old/gulp/helpers.js +25 -0
- package/old/gulp/helpers.js.map +1 -0
- package/old/gulp/pages.d.ts +2 -0
- package/old/gulp/pages.js +37 -0
- package/old/gulp/pages.js.map +1 -0
- package/old/gulp/pipeline.d.ts +1 -0
- package/old/gulp/pipeline.js +29 -0
- package/old/gulp/pipeline.js.map +1 -0
- package/old/gulp/public.d.ts +2 -0
- package/old/gulp/public.js +50 -0
- package/old/gulp/public.js.map +1 -0
- package/old/gulp/styles.d.ts +2 -0
- package/old/gulp/styles.js +40 -0
- package/old/gulp/styles.js.map +1 -0
- package/old/gulp/templates.d.ts +2 -0
- package/old/gulp/templates.js +33 -0
- package/old/gulp/templates.js.map +1 -0
- package/old/gulp/types.d.ts +4 -0
- package/old/gulp/types.js +289 -0
- package/old/gulp/types.js.map +1 -0
- package/old/gulp/watchers.d.ts +9 -0
- package/old/gulp/watchers.js +59 -0
- package/old/gulp/watchers.js.map +1 -0
- package/old/helpers.d.ts +32 -0
- package/old/helpers.js +267 -0
- package/old/helpers.js.map +1 -0
- package/{src copy/helpers.ts → old/helpers.ts} +1 -1
- package/old/index.d.ts +59 -0
- package/old/index.js +288 -0
- package/old/index.js.map +1 -0
- package/old/init.d.ts +8 -0
- package/old/init.js +165 -0
- package/old/init.js.map +1 -0
- package/old/models.d.ts +37 -0
- package/old/models.js +2 -0
- package/old/models.js.map +1 -0
- package/old/prepare.d.ts +8 -0
- package/old/prepare.js +20 -0
- package/old/prepare.js.map +1 -0
- package/old/schemas/index.d.ts +0 -0
- package/old/schemas/index.js +2 -0
- package/old/schemas/index.js.map +1 -0
- package/old/schemas/index.ts +0 -0
- package/old/schemas/types.d.ts +0 -0
- package/old/schemas/types.js +2 -0
- package/old/schemas/types.js.map +1 -0
- package/old/schemas/types.ts +0 -0
- package/old/sync.d.ts +2 -0
- package/old/sync.js +88 -0
- package/old/sync.js.map +1 -0
- package/package.json +17 -17
- package/patches/velo-sync+0.0.9.patch +13 -0
- package/src/args.ts +61 -17
- package/src/commands/checks.ts +51 -0
- package/src/commands/cleanup.ts +11 -0
- package/src/commands/copy.ts +28 -0
- package/src/commands/edit.ts +83 -0
- package/src/commands/exec.ts +37 -0
- package/src/commands/git.ts +113 -0
- package/src/commands/home.ts +22 -0
- package/src/commands/install.ts +186 -0
- package/src/commands/read.ts +46 -0
- package/src/commands/write.ts +45 -0
- package/src/config.ts +116 -35
- package/src/error.ts +1 -2
- package/src/helpers.ts +92 -0
- package/src/index.ts +89 -13
- package/src/init/blocks.ts +82 -0
- package/src/init/cargo.ts +22 -0
- package/src/init/expo.ts +66 -0
- package/src/init/gitModules.ts +15 -0
- package/src/init/index.ts +63 -0
- package/src/init/monorepo.ts +39 -0
- package/src/init/prepareVelo.ts +19 -0
- package/src/init/tauri.ts +40 -0
- package/src/init/templates.ts +98 -0
- package/src/init/velo.ts +62 -0
- package/src/runtime.ts +1 -0
- package/src/schemas/gulp.ts +31 -0
- package/src/schemas/index.ts +13 -1
- package/src/schemas/lucy.ts +40 -0
- package/src/schemas/types.ts +40 -0
- package/src/tasks/Gulpfile.ts +207 -0
- package/src/tasks/gulp/backend.ts +113 -0
- package/src/tasks/gulp/checks.ts +218 -0
- package/src/tasks/gulp/clean.ts +38 -0
- package/src/tasks/gulp/copy.ts +38 -0
- package/src/tasks/gulp/helpers.ts +18 -0
- package/src/tasks/gulp/pages.ts +43 -0
- package/src/tasks/gulp/pipeline.ts +31 -0
- package/src/tasks/gulp/public.ts +61 -0
- package/src/tasks/gulp/styles.ts +47 -0
- package/src/tasks/gulp/templates.ts +53 -0
- package/src/tasks/gulp/types.ts +310 -0
- package/src/tasks/gulp/watchers.ts +97 -0
- package/src/tasks/index.ts +24 -0
- package/src/tasks/syncSettings.ts +21 -0
- package/src/types.d.ts +1 -1
- package/src/utils/index.ts +0 -0
- package/src/utils/logger.ts +40 -0
- package/src/wix-sdk/check.ts +24 -0
- package/src/wix-sdk/client.ts +18 -0
- package/src/wix-sdk/index.ts +17 -0
- package/src/wix-sdk/init.ts +54 -0
- package/src/wix-sdk/run.ts +56 -0
- package/src/wix-sync/client.ts +6 -0
- package/src/wix-sync/export.ts +19 -0
- package/src/wix-sync/import.ts +27 -0
- package/src/wix-sync/index.ts +36 -0
- package/src/wix-sync/init.ts +77 -0
- package/src/wix-sync/is-alive.ts +25 -0
- package/src/wix-sync/migrate.ts +23 -0
- package/src/wix-sync/sync.ts +27 -0
- package/tsconfig.json +6 -5
- package/files/expo/.env +0 -1
- package/files/expo/app/(tabs)/_layout.tsx +0 -45
- package/files/expo/app/_layout.tsx +0 -45
- package/files/expo/babel.config.js +0 -9
- package/files/expo/constants/Colors.ts +0 -27
- package/files/expo/constants/theme.ts +0 -18
- package/files/expo/hooks/useColorScheme.ts +0 -11
- package/files/expo/hooks/useColorScheme.web.ts +0 -21
- package/files/expo/hooks/useColorSchemeRN.ts +0 -1
- package/files/expo/hooks/useThemeColor.ts +0 -21
- package/files/expo/lib/data.ts +0 -45
- package/files/expo/lib/utils/index.ts +0 -6
- package/files/expo/lib/wix/index.ts +0 -1
- package/files/expo/lucy.json +0 -8
- package/files/expo/tailwind.config.js +0 -198
- package/files/expo/tsconfig.json +0 -40
- package/src/init.ts +0 -352
- /package/{files/velo/.gitmodules → dist/sync/index.d.ts} +0 -0
- /package/{files/velo/typescript/__mocks__/.gitkeep → dist/utils/index.d.ts} +0 -0
- /package/{files/velo/typescript/backend/data.ts → dist/utils/install.d.ts} +0 -0
- /package/{files/velo/typescript/backend/events.ts → dist/wix-sync/sync-od.d.ts} +0 -0
- /package/files/{expo → templates/expo[D]/files}/.nvmrc +0 -0
- /package/files/{expo → templates/expo[D]/files}/.prettierignore +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc +0 -0
- /package/files/{expo/readme.md → templates/expo[D]/files/README.md} +0 -0
- /package/files/{velo/typescript/pages → templates/expo[D]/files/components}/.gitkeep +0 -0
- /package/files/{velo/typescript/public → templates/expo[D]/files/components/ui}/.gitkeep +0 -0
- /package/files/{expo → templates/expo[D]/files}/global.css +0 -0
- /package/files/{expo/types → templates/expo[D]/files}/nativewind-env.d.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/types/reset.d.ts +0 -0
- /package/files/{expo → templates/monorepo[D]/files}/.yarnrc.yml +0 -0
- /package/files/{velo/typescript/public/scss/app.scss → templates/velo[D]/files/.gitmodules} +0 -0
- /package/files/{velo → templates/velo[D]/files}/.madgerc +0 -0
- /package/files/{velo → templates/velo[D]/files}/.nvmrc +0 -0
- /package/files/{velo → templates/velo[D]/files}/.stylelintrc.js +0 -0
- /package/files/{velo → templates/velo[D]/files}/.yarnrc.yml +0 -0
- /package/files/{velo → templates/velo[D]/files}/currents.config.js +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/e2e/base/base.cy.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/fixtures/example.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/support/commands.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/support/e2e.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress.config.mjs +0 -0
- /package/files/{velo → templates/velo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{velo → templates/velo[D]/files}/local.tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/typedoc.json +0 -0
- /package/files/{velo/typescript/styles → templates/velo[D]/files/typescript/__mocks__}/.gitkeep +0 -0
- /package/files/{velo/typescript/styles/global.scss → templates/velo[D]/files/typescript/backend/data.ts} +0 -0
- /package/{src copy/schemas/index.ts → files/templates/velo[D]/files/typescript/backend/events.ts} +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/http-functions.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/lib/http-functions/sync.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/permissions.json +0 -0
- /package/{src copy/schemas/types.ts → files/templates/velo[D]/files/typescript/pages/.gitkeep} +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/vitest.config.ts +0 -0
- /package/{src copy → old}/Gulpfile.ts +0 -0
- /package/{src copy → old}/gulp/backend.ts +0 -0
- /package/{src copy → old}/gulp/checks.ts +0 -0
- /package/{src copy → old}/gulp/clean.ts +0 -0
- /package/{src copy → old}/gulp/copy.ts +0 -0
- /package/{src copy → old}/gulp/helpers.ts +0 -0
- /package/{src copy → old}/gulp/pages.ts +0 -0
- /package/{src copy → old}/gulp/pipeline.ts +0 -0
- /package/{src copy → old}/gulp/public.ts +0 -0
- /package/{src copy → old}/gulp/styles.ts +0 -0
- /package/{src copy → old}/gulp/templates.ts +0 -0
- /package/{src copy → old}/gulp/types.ts +0 -0
- /package/{src copy → old}/gulp/watchers.ts +0 -0
- /package/{src copy → old}/index.ts +0 -0
- /package/{src copy → old}/init.ts +0 -0
- /package/{src copy → old}/models.ts +0 -0
- /package/{src copy → old}/prepare.ts +0 -0
- /package/{src copy → old}/settings.json +0 -0
- /package/{src copy → old}/sync.ts +0 -0
- /package/{src copy → old}/types.d.ts +0 -0
- /package/src/{models.ts → schemas/tsconfig.ts} +0 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
import { Effect, Schedule, Schema } from 'effect';
|
2
|
+
|
3
|
+
import { client, ClientError } from './wix';
|
4
|
+
|
5
|
+
const dataSchema = Schema.Struct({
|
6
|
+
source: Schema.String,
|
7
|
+
content: Schema.String,
|
8
|
+
_id: Schema.String,
|
9
|
+
_owner: Schema.String,
|
10
|
+
_createdDate: Schema.Any,
|
11
|
+
_updatedDate: Schema.Any,
|
12
|
+
});
|
13
|
+
|
14
|
+
const COLLECTION_NAME = 'dailySpiritQuotes';
|
15
|
+
|
16
|
+
export const getQuote = () => Effect.gen(function* () {
|
17
|
+
const count = yield* Effect.retry(Effect.tryPromise({
|
18
|
+
try: () => client.items.query(COLLECTION_NAME).count(),
|
19
|
+
catch: (error) => {
|
20
|
+
console.error('Error fetching quotes:', error);
|
21
|
+
Effect.fail(new ClientError());
|
22
|
+
}
|
23
|
+
}), Schedule.fromDelays(50, 100, 200, 400, 800));
|
24
|
+
|
25
|
+
if (count === 0) {
|
26
|
+
return yield* Effect.fail(new Error('No quotes found in the collection.'));
|
27
|
+
}
|
28
|
+
|
29
|
+
const randomIndex = Math.floor(Math.random() * count);
|
30
|
+
|
31
|
+
const data = yield* Effect.retry(Effect.tryPromise({
|
32
|
+
try: () => client.items.query(COLLECTION_NAME).skip(randomIndex).limit(1).find(),
|
33
|
+
catch: (error) => {
|
34
|
+
console.error('Error fetching quotes:', error);
|
35
|
+
Effect.fail(new ClientError());
|
36
|
+
}
|
37
|
+
}), Schedule.fromDelays(50, 100, 200, 400, 800));
|
38
|
+
|
39
|
+
yield* Effect.logDebug(`Fetched ${JSON.stringify(data, null, 2)}`);
|
40
|
+
|
41
|
+
const quote = yield* Schema.decodeUnknown(dataSchema)(data.items[0]);
|
42
|
+
|
43
|
+
return { source: quote.source, content: quote.content };
|
44
|
+
}).pipe(Effect.catchAll((error) => {
|
45
|
+
console.error('Failed to fetch quote:', error);
|
46
|
+
|
47
|
+
return Effect.succeed({ source: 'The Lord', content: 'The ways of the Lord are inscrutable.' });
|
48
|
+
}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type ClassValue, clsx } from 'clsx';
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Combines class names and merges Tailwind CSS classes.
|
6
|
+
* @param inputs - The class names to combine.
|
7
|
+
* @returns A string of combined class names.
|
8
|
+
*/
|
9
|
+
export function cn(...inputs: ClassValue[]) {
|
10
|
+
return twMerge(clsx(inputs));
|
11
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
import { polyfillWebCrypto } from
|
2
|
+
import { polyfillWebCrypto } from 'expo-standard-web-crypto';
|
3
3
|
// import { Platform } from 'react-native';
|
4
4
|
// // import polyfill from 'react-native-polyfill-globals';
|
5
5
|
// import { TextDecoder, TextEncoder } from "text-encoding";
|
@@ -1,14 +1,12 @@
|
|
1
1
|
import { items } from '@wix/data';
|
2
2
|
import { createClient, OAuthStrategy } from '@wix/sdk';
|
3
|
-
import { Data } from 'effect';
|
4
3
|
|
5
|
-
const clientId = process.env.EXPO_PUBLIC_WIX_CLIENT_ID ||
|
4
|
+
const clientId = process.env.EXPO_PUBLIC_WIX_CLIENT_ID || '';
|
6
5
|
|
7
6
|
//To access the Wix APIs, create a client with the createClient() function imported from the @wix/sdk package.
|
8
7
|
export const client = createClient({
|
9
|
-
|
10
|
-
|
8
|
+
modules: { items },
|
9
|
+
auth: OAuthStrategy({ clientId: clientId }),
|
11
10
|
});
|
12
|
-
export class ClientError extends Data.TaggedError('ErrorParserError') {}
|
13
11
|
|
14
12
|
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
3
|
+
// @ts-nocheck
|
4
|
+
const { getDefaultConfig } = require('expo/metro-config');
|
5
|
+
const { withNativeWind } = require('nativewind/metro');
|
6
|
+
const path = require('path');
|
7
|
+
|
8
|
+
const ALIASES_WEB = {
|
9
|
+
'@wix/sdk': path.resolve(__dirname, './node_modules/@wix/sdk/cjs/build/index.js'),
|
10
|
+
// Example: redirect imports of 'some-native-library' to a web-compatible mock
|
11
|
+
// 'some-native-library': path.resolve(__dirname, 'src/mocks/some-native-library.web.js'),
|
12
|
+
|
13
|
+
// You can add your @wix/sdk aliases here if needed
|
14
|
+
// '@wix/sdk-something': path.resolve(__dirname, 'src/wix/sdk-something-web.js'),
|
15
|
+
};
|
16
|
+
const config = (() => {
|
17
|
+
let config = getDefaultConfig(__dirname);
|
18
|
+
const { transformer, resolver } = config;
|
19
|
+
config.transformer = {
|
20
|
+
...transformer,
|
21
|
+
};
|
22
|
+
config.resolver = {
|
23
|
+
...resolver,
|
24
|
+
};
|
25
|
+
|
26
|
+
config.resolver.unstable_enablePackageExports = false;
|
27
|
+
// config.resolver.unstable_conditionsByPlatform = ['ios', 'android']
|
28
|
+
config.resolver.resolveRequest = (context, moduleName, platform) => {
|
29
|
+
if (platform === 'web') {
|
30
|
+
// Check if the module name is in our alias map
|
31
|
+
const alias = ALIASES_WEB[moduleName];
|
32
|
+
if (alias) {
|
33
|
+
console.log(`Aliasing '${moduleName}' to '${alias}'`);
|
34
|
+
// If it is, resolve to the new path
|
35
|
+
return context.resolveRequest(context, alias, platform);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
// Ensure you call the default resolver for everything else.
|
39
|
+
return context.resolveRequest(context, moduleName, platform);
|
40
|
+
};
|
41
|
+
|
42
|
+
config.resolver.extraNodeModules = {
|
43
|
+
...config.resolver.extraNodeModules,
|
44
|
+
...require('node-libs-react-native'),
|
45
|
+
// 'node:buffer': require.resolve('buffer/'),
|
46
|
+
// 'node:crypto': require.resolve('react-native-crypto/'),
|
47
|
+
// 'node:util': require.resolve('util/'),
|
48
|
+
// 'node:http': require.resolve('stream-http/'),
|
49
|
+
// 'node:https': require.resolve('https-browserify/'),
|
50
|
+
// 'node:events': require.resolve('events/'),
|
51
|
+
};
|
52
|
+
|
53
|
+
return config;
|
54
|
+
})();
|
55
|
+
// console.log('Using Metro config:', JSON.stringify(config, null, 2));
|
56
|
+
module.exports = withNativeWind(config, { input: './global.css' });
|
57
|
+
|
@@ -0,0 +1,116 @@
|
|
1
|
+
#!/usr/bin/env ts-node
|
2
|
+
/* eslint-disable no-console */
|
3
|
+
|
4
|
+
/**
|
5
|
+
* This script is used to reset the project to a blank state.
|
6
|
+
* It deletes or moves the /app, /components, /hooks, /scripts, and /constants directories to /app-example based on user input and creates a new /app directory with an index.tsx and _layout.tsx file.
|
7
|
+
* You can remove the `reset-project` script from package.json and safely delete this file after running it.
|
8
|
+
*/
|
9
|
+
|
10
|
+
import fs from 'fs';
|
11
|
+
import path from 'path';
|
12
|
+
import { createInterface } from 'readline/promises';
|
13
|
+
|
14
|
+
const root = process.cwd();
|
15
|
+
const oldDirs = ['app', 'components', 'hooks', 'constants', 'scripts'];
|
16
|
+
const exampleDir = 'app-example';
|
17
|
+
const newAppDir = 'app';
|
18
|
+
const exampleDirPath = path.join(root, exampleDir);
|
19
|
+
|
20
|
+
const indexContent = `import { Text, View } from "react-native";
|
21
|
+
|
22
|
+
export default function Index() {
|
23
|
+
return (
|
24
|
+
<View
|
25
|
+
style={{
|
26
|
+
flex: 1,
|
27
|
+
justifyContent: "center",
|
28
|
+
alignItems: "center",
|
29
|
+
}}
|
30
|
+
>
|
31
|
+
<Text>Edit app/index.tsx to edit this screen.</Text>
|
32
|
+
</View>
|
33
|
+
);
|
34
|
+
}
|
35
|
+
`;
|
36
|
+
|
37
|
+
const layoutContent = `import { Stack } from "expo-router";
|
38
|
+
|
39
|
+
export default function RootLayout() {
|
40
|
+
return <Stack />;
|
41
|
+
}
|
42
|
+
`;
|
43
|
+
|
44
|
+
const moveDirectories = async (userInput: string) => {
|
45
|
+
if (userInput === 'y') {
|
46
|
+
// Create the app-example directory
|
47
|
+
await fs.promises.mkdir(exampleDirPath, { recursive: true });
|
48
|
+
console.log(`📁 /${exampleDir} directory created.`);
|
49
|
+
}
|
50
|
+
|
51
|
+
// Move old directories to new app-example directory or delete them
|
52
|
+
for (const dir of oldDirs) {
|
53
|
+
const oldDirPath = path.join(root, dir);
|
54
|
+
if (fs.existsSync(oldDirPath)) {
|
55
|
+
if (userInput === 'y') {
|
56
|
+
const newDirPath = path.join(root, exampleDir, dir);
|
57
|
+
await fs.promises.rename(oldDirPath, newDirPath);
|
58
|
+
console.log(`➡️ /${dir} moved to /${exampleDir}/${dir}.`);
|
59
|
+
} else {
|
60
|
+
await fs.promises.rm(oldDirPath, { recursive: true, force: true });
|
61
|
+
console.log(`❌ /${dir} deleted.`);
|
62
|
+
}
|
63
|
+
} else {
|
64
|
+
console.log(`➡️ /${dir} does not exist, skipping.`);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Create new /app directory
|
69
|
+
const newAppDirPath = path.join(root, newAppDir);
|
70
|
+
await fs.promises.mkdir(newAppDirPath, { recursive: true });
|
71
|
+
console.log('\n📁 New /app directory created.');
|
72
|
+
|
73
|
+
// Create index.tsx
|
74
|
+
const indexPath = path.join(newAppDirPath, 'index.tsx');
|
75
|
+
await fs.promises.writeFile(indexPath, indexContent);
|
76
|
+
console.log('📄 app/index.tsx created.');
|
77
|
+
|
78
|
+
// Create _layout.tsx
|
79
|
+
const layoutPath = path.join(newAppDirPath, '_layout.tsx');
|
80
|
+
await fs.promises.writeFile(layoutPath, layoutContent);
|
81
|
+
console.log('📄 app/_layout.tsx created.');
|
82
|
+
|
83
|
+
console.log('\n✅ Project reset complete. Next steps:');
|
84
|
+
console.log(
|
85
|
+
`1. Run \`npx expo start\` to start a development server.\n2. Edit app/index.tsx to edit the main screen.${
|
86
|
+
userInput === 'y'
|
87
|
+
? `\n3. Delete the /${exampleDir} directory when you're done referencing it.`
|
88
|
+
: ''
|
89
|
+
}`
|
90
|
+
);
|
91
|
+
};
|
92
|
+
|
93
|
+
const main = async () => {
|
94
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
95
|
+
try {
|
96
|
+
const answer = await rl.question('Do you want to move existing files to /app-example instead of deleting them? (Y/n): ');
|
97
|
+
const userInput = answer.trim().toLowerCase() || 'y';
|
98
|
+
if (userInput === 'y' || userInput === 'n') {
|
99
|
+
await moveDirectories(userInput);
|
100
|
+
} else {
|
101
|
+
console.log("❌ Invalid input. Please enter 'Y' or 'N'.");
|
102
|
+
process.exit(1);
|
103
|
+
}
|
104
|
+
} catch (error) {
|
105
|
+
if (error instanceof Error) {
|
106
|
+
console.error(`❌ Error during script execution: ${error.message}`);
|
107
|
+
} else {
|
108
|
+
console.error('❌ An unexpected error occurred:', error);
|
109
|
+
}
|
110
|
+
process.exit(1);
|
111
|
+
} finally {
|
112
|
+
rl.close();
|
113
|
+
}
|
114
|
+
};
|
115
|
+
|
116
|
+
void main();
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { hairlineWidth } from 'nativewind/theme';
|
2
|
+
|
3
|
+
export const darkMode = 'class';
|
4
|
+
export const content = ['./app/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'];
|
5
|
+
export const presets = [require('nativewind/preset')];
|
6
|
+
|
7
|
+
export const theme = {
|
8
|
+
extend: {
|
9
|
+
colors: {
|
10
|
+
border: 'hsl(var(--border))',
|
11
|
+
input: 'hsl(var(--input))',
|
12
|
+
ring: 'hsl(var(--ring))',
|
13
|
+
background: 'hsl(var(--background))',
|
14
|
+
foreground: 'hsl(var(--foreground))',
|
15
|
+
primary: {
|
16
|
+
DEFAULT: 'hsl(var(--primary))',
|
17
|
+
foreground: 'hsl(var(--primary-foreground))',
|
18
|
+
},
|
19
|
+
secondary: {
|
20
|
+
DEFAULT: 'hsl(var(--secondary))',
|
21
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
22
|
+
},
|
23
|
+
destructive: {
|
24
|
+
DEFAULT: 'hsl(var(--destructive))',
|
25
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
26
|
+
},
|
27
|
+
muted: {
|
28
|
+
DEFAULT: 'hsl(var(--muted))',
|
29
|
+
foreground: 'hsl(var(--muted-foreground))',
|
30
|
+
},
|
31
|
+
accent: {
|
32
|
+
DEFAULT: 'hsl(var(--accent))',
|
33
|
+
foreground: 'hsl(var(--accent-foreground))',
|
34
|
+
},
|
35
|
+
popover: {
|
36
|
+
DEFAULT: 'hsl(var(--popover))',
|
37
|
+
foreground: 'hsl(var(--popover-foreground))',
|
38
|
+
},
|
39
|
+
card: {
|
40
|
+
DEFAULT: 'hsl(var(--card))',
|
41
|
+
foreground: 'hsl(var(--card-foreground))',
|
42
|
+
},
|
43
|
+
},
|
44
|
+
borderWidth: {
|
45
|
+
hairline: hairlineWidth(),
|
46
|
+
},
|
47
|
+
keyframes: {
|
48
|
+
'accordion-down': {
|
49
|
+
from: { height: '0' },
|
50
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
51
|
+
},
|
52
|
+
'accordion-up': {
|
53
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
54
|
+
to: { height: '0' },
|
55
|
+
},
|
56
|
+
},
|
57
|
+
animation: {
|
58
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
59
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
60
|
+
},
|
61
|
+
},
|
62
|
+
};
|
63
|
+
export const plugins = [require('tailwindcss-animate')];
|
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"extends": "expo/tsconfig.base",
|
3
|
+
"compilerOptions": {
|
4
|
+
"strict": true,
|
5
|
+
"allowSyntheticDefaultImports": true,
|
6
|
+
"skipLibCheck": true,
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
8
|
+
"alwaysStrict": false,
|
9
|
+
"noImplicitAny": true,
|
10
|
+
"noImplicitReturns": true,
|
11
|
+
"noImplicitThis": true,
|
12
|
+
"strictNullChecks": true,
|
13
|
+
"exactOptionalPropertyTypes": true,
|
14
|
+
"strictBindCallApply": true,
|
15
|
+
"strictFunctionTypes": true,
|
16
|
+
"strictPropertyInitialization": true,
|
17
|
+
// --- Advanced ---
|
18
|
+
"preserveConstEnums": true,
|
19
|
+
"plugins": [
|
20
|
+
{
|
21
|
+
"name": "@styled/typescript-styled-plugin"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"name": "typescript-eslint-language-service"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"paths": {
|
28
|
+
"@/*": [
|
29
|
+
"./*"
|
30
|
+
]
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"include": [
|
34
|
+
"**/*.ts",
|
35
|
+
"**/*.tsx",
|
36
|
+
".expo/types/**/*.ts",
|
37
|
+
"expo-env.d.ts",
|
38
|
+
"nativewind-env.d.ts",
|
39
|
+
"metro.config.js",
|
40
|
+
"eslint.config.mjs",
|
41
|
+
"tailwind.config.js",
|
42
|
+
"babel.config.js",
|
43
|
+
".prettierrc.js",
|
44
|
+
"expo-env.d.ts",
|
45
|
+
]
|
46
|
+
}
|
@@ -0,0 +1,81 @@
|
|
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
|
+
},
|
36
|
+
"additionalCommands": [
|
37
|
+
[
|
38
|
+
"npx",
|
39
|
+
"expo",
|
40
|
+
"install",
|
41
|
+
"tailwindcss-animate",
|
42
|
+
"class-variance-authority",
|
43
|
+
"clsx",
|
44
|
+
"tailwind-merge",
|
45
|
+
"expo-crypto",
|
46
|
+
"react-dom",
|
47
|
+
"react-native-web",
|
48
|
+
"@expo/metro-runtime",
|
49
|
+
"expo-system-ui"
|
50
|
+
]
|
51
|
+
],
|
52
|
+
"scripts": {
|
53
|
+
"dev": "expo start",
|
54
|
+
"start": "expo start",
|
55
|
+
"android": "expo start --android",
|
56
|
+
"ios": "expo start --ios",
|
57
|
+
"web": "expo start --web",
|
58
|
+
"reset": "tsx ./scripts/reset-project.ts",
|
59
|
+
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
60
|
+
"prebuild": "expo prebuild",
|
61
|
+
"pods": "npx pod-install",
|
62
|
+
"build:dev": "eas build --local --profile development",
|
63
|
+
"build:sim": "eas build --local --profile ios-simulator",
|
64
|
+
"build:prev": "eas build --local --profile preview",
|
65
|
+
"build:prod": "eas build --local --profile production",
|
66
|
+
"build:web": "expo export --platform web",
|
67
|
+
"doctor": "expo-doctor",
|
68
|
+
"eas-build-pre-install": "corepack enable && yarn set version 4"
|
69
|
+
},
|
70
|
+
"initialized": false,
|
71
|
+
"type": "expo",
|
72
|
+
"additionalPkgProps": {
|
73
|
+
"expo": {
|
74
|
+
"doctor": {
|
75
|
+
"reactNativeDirectoryCheck": {
|
76
|
+
"listUnknownPackages": false
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
22
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Dependencies
|
2
|
+
node_modules/
|
3
|
+
|
4
|
+
# Build output
|
5
|
+
dist
|
6
|
+
.next/
|
7
|
+
.wix/
|
8
|
+
build
|
9
|
+
out
|
10
|
+
|
11
|
+
# Turbo cache
|
12
|
+
.turbo
|
13
|
+
|
14
|
+
# Logs
|
15
|
+
*.log
|
16
|
+
npm-debug.log*
|
17
|
+
yarn-debug.log*
|
18
|
+
yarn-error.log*
|
19
|
+
pnpm-debug.log*
|
20
|
+
|
21
|
+
# As per your ESLint config, JS files are not formatted.
|
22
|
+
**/*.js
|
23
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
node-options=--max-old-space-size=16384
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# Turborepo starter
|
2
|
+
|
3
|
+
This Turborepo starter is maintained by the Turborepo core team.
|
4
|
+
|
5
|
+
## Using this example
|
6
|
+
|
7
|
+
Run the following command:
|
8
|
+
|
9
|
+
```sh
|
10
|
+
npx create-turbo@latest
|
11
|
+
```
|
12
|
+
|
13
|
+
## What's inside?
|
14
|
+
|
15
|
+
This Turborepo includes the following packages/apps:
|
16
|
+
|
17
|
+
### Apps and Packages
|
18
|
+
|
19
|
+
- `docs`: a [Next.js](https://nextjs.org/) app
|
20
|
+
- `web`: another [Next.js](https://nextjs.org/) app
|
21
|
+
- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications
|
22
|
+
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
|
23
|
+
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
|
24
|
+
|
25
|
+
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
|
26
|
+
|
27
|
+
### Utilities
|
28
|
+
|
29
|
+
This Turborepo has some additional tools already setup for you:
|
30
|
+
|
31
|
+
- [TypeScript](https://www.typescriptlang.org/) for static type checking
|
32
|
+
- [ESLint](https://eslint.org/) for code linting
|
33
|
+
- [Prettier](https://prettier.io) for code formatting
|
34
|
+
|
35
|
+
### Build
|
36
|
+
|
37
|
+
To build all apps and packages, run the following command:
|
38
|
+
|
39
|
+
```
|
40
|
+
cd my-turborepo
|
41
|
+
|
42
|
+
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)
|
43
|
+
turbo build
|
44
|
+
|
45
|
+
# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package manager
|
46
|
+
npx turbo build
|
47
|
+
yarn dlx turbo build
|
48
|
+
pnpm exec turbo build
|
49
|
+
```
|
50
|
+
|
51
|
+
You can build a specific package by using a [filter](https://turborepo.com/docs/crafting-your-repository/running-tasks#using-filters):
|
52
|
+
|
53
|
+
```
|
54
|
+
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)
|
55
|
+
turbo build --filter=docs
|
56
|
+
|
57
|
+
# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package manager
|
58
|
+
npx turbo build --filter=docs
|
59
|
+
yarn exec turbo build --filter=docs
|
60
|
+
pnpm exec turbo build --filter=docs
|
61
|
+
```
|
62
|
+
|
63
|
+
### Develop
|
64
|
+
|
65
|
+
To develop all apps and packages, run the following command:
|
66
|
+
|
67
|
+
```
|
68
|
+
cd my-turborepo
|
69
|
+
|
70
|
+
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)
|
71
|
+
turbo dev
|
72
|
+
|
73
|
+
# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package manager
|
74
|
+
npx turbo dev
|
75
|
+
yarn exec turbo dev
|
76
|
+
pnpm exec turbo dev
|
77
|
+
```
|
78
|
+
|
79
|
+
You can develop a specific package by using a [filter](https://turborepo.com/docs/crafting-your-repository/running-tasks#using-filters):
|
80
|
+
|
81
|
+
```
|
82
|
+
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)
|
83
|
+
turbo dev --filter=web
|
84
|
+
|
85
|
+
# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package manager
|
86
|
+
npx turbo dev --filter=web
|
87
|
+
yarn exec turbo dev --filter=web
|
88
|
+
pnpm exec turbo dev --filter=web
|
89
|
+
```
|
90
|
+
|
91
|
+
### Remote Caching
|
92
|
+
|
93
|
+
> [!TIP]
|
94
|
+
> Vercel Remote Cache is free for all plans. Get started today at [vercel.com](https://vercel.com/signup?/signup?utm_source=remote-cache-sdk&utm_campaign=free_remote_cache).
|
95
|
+
|
96
|
+
Turborepo can use a technique known as [Remote Caching](https://turborepo.com/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
|
97
|
+
|
98
|
+
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup?utm_source=turborepo-examples), then enter the following commands:
|
99
|
+
|
100
|
+
```
|
101
|
+
cd my-turborepo
|
102
|
+
|
103
|
+
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)
|
104
|
+
turbo login
|
105
|
+
|
106
|
+
# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package manager
|
107
|
+
npx turbo login
|
108
|
+
yarn exec turbo login
|
109
|
+
pnpm exec turbo login
|
110
|
+
```
|
111
|
+
|
112
|
+
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
|
113
|
+
|
114
|
+
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
|
115
|
+
|
116
|
+
```
|
117
|
+
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)
|
118
|
+
turbo link
|
119
|
+
|
120
|
+
# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package manager
|
121
|
+
npx turbo link
|
122
|
+
yarn exec turbo link
|
123
|
+
pnpm exec turbo link
|
124
|
+
```
|
125
|
+
|
126
|
+
## Useful Links
|
127
|
+
|
128
|
+
Learn more about the power of Turborepo:
|
129
|
+
|
130
|
+
- [Tasks](https://turborepo.com/docs/crafting-your-repository/running-tasks)
|
131
|
+
- [Caching](https://turborepo.com/docs/crafting-your-repository/caching)
|
132
|
+
- [Remote Caching](https://turborepo.com/docs/core-concepts/remote-caching)
|
133
|
+
- [Filtering](https://turborepo.com/docs/crafting-your-repository/running-tasks#using-filters)
|
134
|
+
- [Configuration Options](https://turborepo.com/docs/reference/configuration)
|
135
|
+
- [CLI Usage](https://turborepo.com/docs/reference/command-line-reference)
|
136
|
+
|
137
|
+
rm -rf .yarn/cache .yarn/install-state.gz node_modules apps/*/node_modules packages/*/node_modules wix_apps/*/node_modules
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export const currentsConfig: { projectId: string; recordKey: string; cloudServiceUrl: string } = {
|
2
|
+
projectId: '__ProjectName__', // the projectId, can be any values for sorry-cypress users
|
3
|
+
recordKey: '__ProjectName__', // the record key, can be any value for sorry-cypress users
|
4
|
+
cloudServiceUrl: 'https://e2e.int.integral-systems.ch:1234', // Sorry Cypress users - set the director service URL
|
5
|
+
};
|