lucy-cli 2.0.0-alpha.2 → 2.0.0-alpha.21
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 +67 -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 +7 -0
- package/dist/commands/exec.js +66 -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 +161 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/read.d.ts +6 -0
- package/dist/commands/read.js +40 -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 +29 -7
- package/dist/config.js +90 -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 +77 -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 +77 -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 +46 -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 +29 -0
- package/dist/schemas/lucy.js +42 -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 +9 -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 +15 -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 +82 -0
- package/files/templates/monorepo[D]/files/.editorconfig +10 -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 +109 -0
- package/files/templates/monorepo[D]/files/currents.config.ts +5 -0
- package/files/templates/monorepo[D]/files/nx.json +25 -0
- package/files/templates/monorepo[D]/files/pnpm-workspace.yaml +10 -0
- package/files/templates/monorepo[D]/files/tsconfig.json +6 -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 +68 -0
- package/files/templates/tauri[D]/lucy.json +9 -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 +137 -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 +62 -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 +81 -0
- package/src/commands/exec.ts +68 -0
- package/src/commands/git.ts +113 -0
- package/src/commands/home.ts +22 -0
- package/src/commands/install.ts +242 -0
- package/src/commands/read.ts +45 -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 +88 -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 +81 -0
- package/src/init/monorepo.ts +69 -0
- package/src/init/prepareVelo.ts +19 -0
- package/src/init/tauri.ts +38 -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 +43 -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
package/dist/init.js
CHANGED
@@ -157,22 +157,22 @@ import { JsonSchema } from "./schemas/index.js";
|
|
157
157
|
// console.log(blue.underline(`🐕 => Updated file ${orange(filePath)}`));
|
158
158
|
// }
|
159
159
|
// }
|
160
|
-
const yarn = Command.make("yarn").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
161
|
-
Command.exitCode // Get the exit code
|
162
|
-
);
|
163
160
|
const init_expo = () => {
|
164
161
|
return Effect.gen(function* () {
|
165
162
|
const config = yield* Config;
|
166
163
|
const terminal = yield* Terminal.Terminal;
|
167
164
|
const fs = yield* FileSystem.FileSystem;
|
168
165
|
const path = yield* Path.Path;
|
169
|
-
const yarn = Command.make("yarn", "add", "nativewind", "react-native-reanimated@~3.17.4", "react-native-safe-area-context@5.4.0", "@wix/sdk", "@wix/data", "expo-standard-web-crypto", "effect").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
166
|
+
const yarn = Command.make("yarn", "add", "nativewind", "react-native-reanimated@~3.17.4", "react-native-safe-area-context@5.4.0", "@wix/sdk@1.15.24", "@wix/data", "expo-standard-web-crypto", "effect", "node-libs-react-native", "util", "events", "tailwindcss-animate").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
170
167
|
Command.exitCode // Get the exit code
|
171
168
|
);
|
172
|
-
const
|
169
|
+
const yarnVersion = Command.make("yarn", "set", "version", "berry").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
173
170
|
Command.exitCode // Get the exit code
|
174
171
|
);
|
175
|
-
const
|
172
|
+
const yarnDev = Command.make("yarn", "add", "--dev", "tailwindcss@^3.4.17", "prettier-plugin-tailwindcss@^0.5.11", "@styled/typescript-styled-plugin", "typescript-eslint-language-service", "eslint-config-prettier", "eslint-plugin-jsdoc", "eslint-plugin-named-import-spacing", "eslint-plugin-only-warn", "eslint-plugin-react", "eslint-plugin-react-hooks", "eslint-plugin-simple-import-sort", "@next/eslint-plugin-next", "@styled/typescript-styled-plugin", "@stylelint/postcss-css-in-js", "@typescript-eslint/parser", "typescript-eslint", "typescript-eslint-language-service", "@total-typescript/ts-reset", "expo-doctor", "tsx").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
173
|
+
Command.exitCode // Get the exit code
|
174
|
+
);
|
175
|
+
const npx = Command.make("npx", "expo", "install", "tailwindcss-animate", "class-variance-authority", "clsx", "tailwind-merge", "expo-crypto", "react-dom", "react-native-web", "@expo/metro-runtime", "expo-system-ui").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
176
176
|
Command.exitCode // Get the exit code
|
177
177
|
);
|
178
178
|
const projectName = config.config.cwd.split('/').pop() || 'expo-project';
|
@@ -194,7 +194,7 @@ const init_expo = () => {
|
|
194
194
|
if (nonGitFiles.length > 0)
|
195
195
|
return yield* Effect.logError("The current directory is not empty. Please run this command in an empty directory.");
|
196
196
|
if (!expoAppReady) {
|
197
|
-
const initExpo = Command.make("npx", "create-expo-app@latest", projectName).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
197
|
+
const initExpo = Command.make("npx", "create-expo-app@latest", projectName, "--template", "blank-typescript", "--no-install").pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
198
198
|
Command.exitCode // Get the exit code
|
199
199
|
);
|
200
200
|
yield* initExpo;
|
@@ -205,13 +205,6 @@ const init_expo = () => {
|
|
205
205
|
}
|
206
206
|
if (lucyInitialized)
|
207
207
|
return yield* Effect.logError("Lucy is already initialized in this project. Please run this command in an empty directory.");
|
208
|
-
console.log("Expo project initialized with app.json:", projectName);
|
209
|
-
let res = yield* npx;
|
210
|
-
res = yield* yarn;
|
211
|
-
res = yield* yarnDev;
|
212
|
-
if (res !== 0) {
|
213
|
-
return yield* Effect.logError("Failed to install Expo dependencies. Please check the error message above.");
|
214
|
-
}
|
215
208
|
const baseFiles = yield* fs.readDirectory(config.config.filesFolder + '/expo');
|
216
209
|
yield* Effect.forEach(baseFiles, (file) => fs.copy(path.join(config.config.filesFolder, 'expo', file), path.join(config.config.cwd, file), { overwrite: true }));
|
217
210
|
const newScripts = {
|
@@ -220,20 +213,53 @@ const init_expo = () => {
|
|
220
213
|
"android": "expo start --android",
|
221
214
|
"ios": "expo start --ios",
|
222
215
|
"web": "expo start --web",
|
216
|
+
"reset": "tsx ./scripts/reset-project.ts",
|
223
217
|
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
224
|
-
"
|
225
|
-
"
|
226
|
-
"build:
|
218
|
+
"prebuild": "expo prebuild",
|
219
|
+
"pods": "npxpod-install",
|
220
|
+
"build:dev": "eas build --local --profile development",
|
221
|
+
"build:sim": "eas build --local --profile ios-simulator",
|
222
|
+
"build:prev": "eas build --local --profile preview",
|
223
|
+
"build:prod": "eas build --local --profile production",
|
224
|
+
"build:web": "expo export --platform web",
|
225
|
+
"doctor": "expo-doctor",
|
226
|
+
"eas-build-pre-install": "corepack enable && yarn set version 4"
|
227
227
|
};
|
228
228
|
const packageJsonPath = path.join(config.config.cwd, "package.json");
|
229
229
|
const packageJsonRaw = yield* fs.readFile(packageJsonPath);
|
230
230
|
const packageJson = Schema.decodeUnknownSync(JsonSchema)(packageJsonRaw.toString());
|
231
231
|
packageJson.scripts = {
|
232
232
|
...packageJson.scripts,
|
233
|
-
...newScripts
|
233
|
+
...newScripts,
|
234
|
+
};
|
235
|
+
packageJson.resolutions = {
|
236
|
+
...packageJson.resolutions,
|
237
|
+
};
|
238
|
+
packageJson.expo = {
|
239
|
+
doctor: {
|
240
|
+
reactNativeDirectoryCheck: {
|
241
|
+
listUnknownPackages: false,
|
242
|
+
},
|
243
|
+
}
|
234
244
|
};
|
235
245
|
yield* fs.writeFileString(path.join(config.config.cwd, 'package.json'), JSON.stringify(packageJson, null, 2));
|
236
246
|
yield* fs.remove(path.join(config.config.cwd, "package-lock.json"), { force: true });
|
247
|
+
let res = yield* yarnVersion;
|
248
|
+
if (res !== 0) {
|
249
|
+
return yield* Effect.logError("Failed to set Yarn version. Please check the error message above.");
|
250
|
+
}
|
251
|
+
res = yield* yarn;
|
252
|
+
if (res !== 0) {
|
253
|
+
return yield* Effect.logError("Failed to install dependencies. Please check the error message above.");
|
254
|
+
}
|
255
|
+
res = yield* yarnDev;
|
256
|
+
if (res !== 0) {
|
257
|
+
return yield* Effect.logError("Failed to install dev dependencies. Please check the error message above.");
|
258
|
+
}
|
259
|
+
res = yield* npx;
|
260
|
+
if (res !== 0) {
|
261
|
+
return yield* Effect.logError("Failed to install Expo dependencies. Please check the error message above.");
|
262
|
+
}
|
237
263
|
});
|
238
264
|
};
|
239
265
|
export const init = () => {
|
package/dist/models.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":""}
|
package/dist/policy.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../src/policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAChF,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC5C,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,SAAS,CAAC,CAAA;AAC/C,CAAC"}
|
package/dist/prepare.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../src/prepare.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,mGAAmG;AACnG,2DAA2D;AAE3D,MAAM;AACN,uBAAuB;AACvB,mDAAmD;AACnD,wDAAwD;AACxD,qBAAqB;AACrB,MAAM;AACN,oGAAoG;AAEpG,oDAAoD;AACpD,+HAA+H;AAC/H,yEAAyE;AACzE,YAAY;AACZ,KAAK;AAEL,uKAAuK;AAEvK,6GAA6G;AAE7G,oEAAoE;AACpE,IAAI"}
|
package/dist/runtime.d.ts
CHANGED
@@ -2,4 +2,4 @@ import { ManagedRuntime } from "effect";
|
|
2
2
|
import { get_args } from "./args.js";
|
3
3
|
import { NodeInspectState, ServiceInspectState } from "./states.js";
|
4
4
|
import { NodeContext } from "@effect/platform-node";
|
5
|
-
export declare const build_runtime: (args: Awaited<ReturnType<typeof get_args>>) => ManagedRuntime.ManagedRuntime<import("./config.js").Config | ServiceInspectState | NodeInspectState |
|
5
|
+
export declare const build_runtime: (args: Awaited<ReturnType<typeof get_args>>) => ManagedRuntime.ManagedRuntime<import("./config.js").Config | NodeContext.NodeContext | ServiceInspectState | NodeInspectState, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError>;
|
package/dist/runtime.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAC,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC7G,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAA0C,EAAE,EAAE;IACxE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IAChF,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CACrC,WAAW,CAAC,IAAI,CAAC,EACjB,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,EACvD,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EACjD,WAAW,CAAC,KAAK,EACjB,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,EACjC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC;QACrD,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,KAAK;KACd,CAAC,CAAC,CACN,CAAC,CAAA;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import gulpSass from 'gulp-sass';
|
2
|
+
import backendSettings from '../../settings/backend-settings.json';
|
3
|
+
import masterSettings from '../../settings/master-settings.json';
|
4
|
+
import pageSettings from '../../settings/page-settings.json';
|
5
|
+
import publicSettings from '../../settings/public-settings.json';
|
6
|
+
export type TaskOptions = {
|
7
|
+
enableIncrementalBuild: boolean;
|
8
|
+
outputDir: string;
|
9
|
+
sass: ReturnType<typeof gulpSass>;
|
10
|
+
replaceOptions: {
|
11
|
+
logs: {
|
12
|
+
enabled: boolean;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
backendSettings: typeof backendSettings;
|
16
|
+
masterSettings: typeof masterSettings;
|
17
|
+
pageSettings: typeof pageSettings;
|
18
|
+
publicSettings: typeof publicSettings;
|
19
|
+
modulesSourcePaths: string[];
|
20
|
+
cwd: string;
|
21
|
+
};
|
22
|
+
export interface File {
|
23
|
+
path: string;
|
24
|
+
dirname: string;
|
25
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"gulp.js","sourceRoot":"","sources":["../../src/schemas/gulp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,MAAM,CAAC;AACjC,OAAO,QAAQ,MAAM,WAAW,CAAC;AACwD,CAAC;AACH,CAAC;AACL,CAAC;AACG,CAAC;AAExF,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
@@ -1,2 +1,12 @@
|
|
1
1
|
import { Schema } from "effect/index";
|
2
2
|
export declare const JsonSchema: Schema.SchemaClass<unknown, string, never>;
|
3
|
+
export declare const veloSyncSettings: Schema.Struct<{
|
4
|
+
siteUrl: typeof Schema.String;
|
5
|
+
secret: typeof Schema.String;
|
6
|
+
}>;
|
7
|
+
export type VeloSyncSettings = typeof veloSyncSettings.Type;
|
8
|
+
export declare const wixSDKSettings: Schema.Struct<{
|
9
|
+
apiKey: typeof Schema.String;
|
10
|
+
siteId: typeof Schema.String;
|
11
|
+
}>;
|
12
|
+
export type WixSDKSettings = typeof wixSDKSettings.Type;
|
package/dist/schemas/index.js
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
import { Schema } from "effect/index";
|
2
2
|
export const JsonSchema = Schema.parseJson();
|
3
|
+
export const veloSyncSettings = Schema.Struct({
|
4
|
+
siteUrl: Schema.String,
|
5
|
+
secret: Schema.String,
|
6
|
+
});
|
7
|
+
export const wixSDKSettings = Schema.Struct({
|
8
|
+
apiKey: Schema.String,
|
9
|
+
siteId: Schema.String,
|
10
|
+
});
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,CAAA;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,MAAM,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Schema } from "effect/index";
|
2
|
+
export declare const pkgManagers: readonly ["npm", "yarn", "pnpm"];
|
3
|
+
export declare const lucySettings: Schema.mutable<Schema.Struct<{
|
4
|
+
modules: Schema.Record$<typeof Schema.String, Schema.Struct<{
|
5
|
+
source: typeof Schema.String;
|
6
|
+
branch: typeof Schema.String;
|
7
|
+
path: Schema.optional<typeof Schema.String>;
|
8
|
+
noCompile: Schema.optional<typeof Schema.Boolean>;
|
9
|
+
}>>;
|
10
|
+
veloSettings: Schema.optional<Schema.NullOr<Schema.Struct<{
|
11
|
+
compilerOptions: Schema.optional<Schema.Struct<{
|
12
|
+
composite: typeof Schema.Boolean;
|
13
|
+
noEmit: typeof Schema.Boolean;
|
14
|
+
lib: Schema.Array$<typeof Schema.String>;
|
15
|
+
jsx: typeof Schema.String;
|
16
|
+
}>>;
|
17
|
+
exclude: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
18
|
+
}>>>;
|
19
|
+
initialized: typeof Schema.Boolean;
|
20
|
+
type: Schema.Literal<["velo", "expo", "blocks", "monorepo", "tauri", "cargo", "submodules", "wix-sdk"]>;
|
21
|
+
dependencies: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
22
|
+
devDependencies: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
23
|
+
scripts: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
24
|
+
additionalCommands: Schema.optional<Schema.Array$<Schema.Array$<typeof Schema.String>>>;
|
25
|
+
additionalPkgProps: Schema.optional<typeof Schema.Object>;
|
26
|
+
packageManager: Schema.mutable<Schema.Literal<["npm", "yarn", "pnpm"]>>;
|
27
|
+
defaultModulePath: Schema.optional<typeof Schema.String>;
|
28
|
+
}>>;
|
29
|
+
export type LucySettings = typeof lucySettings.Type;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Schema } from "effect/index";
|
2
|
+
import { initTypes } from "./types.js";
|
3
|
+
export const pkgManagers = ['npm', 'yarn', 'pnpm'];
|
4
|
+
export const lucySettings = Schema.mutable(Schema.Struct({
|
5
|
+
modules: Schema.Record({
|
6
|
+
key: Schema.String,
|
7
|
+
value: Schema.Struct({
|
8
|
+
source: Schema.String,
|
9
|
+
branch: Schema.String,
|
10
|
+
path: Schema.optional(Schema.String),
|
11
|
+
noCompile: Schema.optional(Schema.Boolean),
|
12
|
+
})
|
13
|
+
}),
|
14
|
+
veloSettings: Schema.optional(Schema.NullOr(Schema.Struct({
|
15
|
+
compilerOptions: Schema.optional(Schema.Struct({
|
16
|
+
composite: Schema.Boolean,
|
17
|
+
noEmit: Schema.Boolean,
|
18
|
+
lib: Schema.Array(Schema.String),
|
19
|
+
jsx: Schema.String,
|
20
|
+
})),
|
21
|
+
exclude: Schema.optional(Schema.Array(Schema.String)),
|
22
|
+
}))),
|
23
|
+
initialized: Schema.Boolean,
|
24
|
+
type: Schema.Literal(...initTypes),
|
25
|
+
dependencies: Schema.mutable(Schema.Record({
|
26
|
+
key: Schema.String,
|
27
|
+
value: Schema.String,
|
28
|
+
})),
|
29
|
+
devDependencies: Schema.mutable(Schema.Record({
|
30
|
+
key: Schema.String,
|
31
|
+
value: Schema.String,
|
32
|
+
})),
|
33
|
+
scripts: Schema.Record({
|
34
|
+
key: Schema.String,
|
35
|
+
value: Schema.String,
|
36
|
+
}),
|
37
|
+
additionalCommands: Schema.optional(Schema.Array(Schema.Array(Schema.String))),
|
38
|
+
additionalPkgProps: Schema.optional(Schema.Object),
|
39
|
+
packageManager: Schema.mutable(Schema.Literal(...pkgManagers)),
|
40
|
+
defaultModulePath: Schema.optional(Schema.String),
|
41
|
+
}));
|
42
|
+
//# sourceMappingURL=lucy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O;IACxB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,KAAK,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC,CAAC;IACN,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,KAAK,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC,CAAC;IACN,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QAChB,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,KAAK,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC;IACL,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9E,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,CAAC;IAC9D,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACjD,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export type TSConfig = {
|
2
|
+
compilerOptions?: {
|
3
|
+
target?: string;
|
4
|
+
module?: string;
|
5
|
+
lib?: string[];
|
6
|
+
outDir?: string;
|
7
|
+
rootDir?: string;
|
8
|
+
strict?: boolean;
|
9
|
+
esModuleInterop?: boolean;
|
10
|
+
allowJs?: boolean;
|
11
|
+
checkJs?: boolean;
|
12
|
+
declaration?: boolean;
|
13
|
+
declarationMap?: boolean;
|
14
|
+
sourceMap?: boolean;
|
15
|
+
removeComments?: boolean;
|
16
|
+
noImplicitAny?: boolean;
|
17
|
+
moduleResolution?: "node" | "classic";
|
18
|
+
resolveJsonModule?: boolean;
|
19
|
+
skipLibCheck?: boolean;
|
20
|
+
types?: string[];
|
21
|
+
typeRoots?: string[];
|
22
|
+
jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
23
|
+
incremental?: boolean;
|
24
|
+
noEmit?: boolean;
|
25
|
+
paths?: Record<string, string[]>;
|
26
|
+
[key: string]: any;
|
27
|
+
};
|
28
|
+
include?: string[];
|
29
|
+
exclude?: string[];
|
30
|
+
files?: string[];
|
31
|
+
extends?: string;
|
32
|
+
references?: {
|
33
|
+
path: string;
|
34
|
+
}[];
|
35
|
+
compileOnSave?: boolean;
|
36
|
+
[key: string]: any;
|
37
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/schemas/models.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export type TSConfig = {
|
2
|
+
compilerOptions?: {
|
3
|
+
target?: string;
|
4
|
+
module?: string;
|
5
|
+
lib?: string[];
|
6
|
+
outDir?: string;
|
7
|
+
rootDir?: string;
|
8
|
+
strict?: boolean;
|
9
|
+
esModuleInterop?: boolean;
|
10
|
+
allowJs?: boolean;
|
11
|
+
checkJs?: boolean;
|
12
|
+
declaration?: boolean;
|
13
|
+
declarationMap?: boolean;
|
14
|
+
sourceMap?: boolean;
|
15
|
+
removeComments?: boolean;
|
16
|
+
noImplicitAny?: boolean;
|
17
|
+
moduleResolution?: "node" | "classic";
|
18
|
+
resolveJsonModule?: boolean;
|
19
|
+
skipLibCheck?: boolean;
|
20
|
+
types?: string[];
|
21
|
+
typeRoots?: string[];
|
22
|
+
jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
23
|
+
incremental?: boolean;
|
24
|
+
noEmit?: boolean;
|
25
|
+
paths?: Record<string, string[]>;
|
26
|
+
[key: string]: any;
|
27
|
+
};
|
28
|
+
include?: string[];
|
29
|
+
exclude?: string[];
|
30
|
+
files?: string[];
|
31
|
+
extends?: string;
|
32
|
+
references?: {
|
33
|
+
path: string;
|
34
|
+
}[];
|
35
|
+
compileOnSave?: boolean;
|
36
|
+
[key: string]: any;
|
37
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tsconfig.js","sourceRoot":"","sources":["../../src/schemas/tsconfig.ts"],"names":[],"mappings":""}
|
package/dist/schemas/types.d.ts
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
export declare const initTypes: readonly ["velo", "expo", "blocks", "monorepo", "tauri", "cargo", "submodules", "wix-sdk"];
|
2
|
+
export declare const taskNames: readonly ["dev", "build", "build-prod", "build-pipeline", "sync-settings"];
|
3
|
+
export declare const syncActions: readonly ["sync", "import", "init", "is-alive", "migrate", "export"];
|
4
|
+
export declare const WixSDKActions: readonly ["init", ""];
|
5
|
+
export type Action = 'init' | 'open' | 'task' | 'wix-sync';
|
6
|
+
import gulp from 'gulp';
|
7
|
+
export type SyncTaskType = (filename: string, collection: string, schemaFilename: string, importOnly: boolean, dryrun: boolean) => Promise<void>;
|
8
|
+
export type MigrateFileCache = () => Promise<void>;
|
9
|
+
export type TaskType = ReturnType<typeof gulp.parallel>;
|
10
|
+
export type Actions = {
|
11
|
+
action: Action;
|
12
|
+
initType?: typeof initTypes[number];
|
13
|
+
tasksName?: typeof taskNames[number];
|
14
|
+
syncAction?: typeof syncActions[number];
|
15
|
+
wixSDKAction?: typeof WixSDKActions[number];
|
16
|
+
};
|
17
|
+
export interface LucyArgs {
|
18
|
+
[x: string]: unknown;
|
19
|
+
_: Action[];
|
20
|
+
$0: string;
|
21
|
+
initType?: Actions['initType'];
|
22
|
+
tasksName?: Actions['tasksName'];
|
23
|
+
syncAction?: Actions['syncAction'];
|
24
|
+
wixSDKAction?: Actions['wixSDKAction'];
|
25
|
+
input?: string;
|
26
|
+
collection?: string;
|
27
|
+
schema?: string;
|
28
|
+
d?: boolean;
|
29
|
+
}
|
30
|
+
export interface VeloSyncConfig {
|
31
|
+
siteUrl: string;
|
32
|
+
secret: string;
|
33
|
+
}
|
package/dist/schemas/types.js
CHANGED
@@ -1 +1,5 @@
|
|
1
|
-
"
|
1
|
+
export const initTypes = ["velo", "expo", "blocks", "monorepo", "tauri", "cargo", 'submodules', 'wix-sdk'];
|
2
|
+
export const taskNames = ["dev", "build", "build-prod", "build-pipeline", "sync-settings"];
|
3
|
+
export const syncActions = ["sync", "import", "init", "is-alive", "migrate", "export"];
|
4
|
+
export const WixSDKActions = ["init", ""];
|
5
|
+
//# sourceMappingURL=types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/schemas/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,CAAU,CAAC;AACpH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,CAAU,CAAC;AACpG,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAChG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,EAAE,CAAU,CAAC"}
|
package/dist/states.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"states.js","sourceRoot":"","sources":["../src/states.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAGrC,MAAM,OAAO,mBAAoB,SAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAGxE;CAAG;AACN,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC,IAAI,CAAC,EAAS,CAAC,CAAA;AAEvD,MAAM,OAAO,gBAAiB,SAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAGlE;CAAG;AACN,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC,IAAI,CAAC,EAAS,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import chalk from "chalk";
|
2
|
+
import readline from 'node:readline';
|
3
|
+
import veloAPI from 'velo-sync/dist/velo/velo-api.js';
|
4
|
+
import syncTask from 'velo-sync/dist/tasks/sync-task.js';
|
5
|
+
import { readConfig, saveConfig } from "./helpers.js";
|
6
|
+
import optimist from 'optimist';
|
7
|
+
import migrateFileCache from 'velo-sync/dist/tasks/migrate-files-cache-task.js';
|
8
|
+
import { Effect } from "effect/index";
|
9
|
+
import { Config } from "../config.js";
|
10
|
+
function printUsage() {
|
11
|
+
console.log('Usage: ');
|
12
|
+
console.log('');
|
13
|
+
console.log('Commands:');
|
14
|
+
console.log(' init generates a config file for the import / export / sync process');
|
15
|
+
console.log(' is-alive tests the config and the connection to the site');
|
16
|
+
console.log(' sync runs the sync process');
|
17
|
+
console.log(' import runs an import process');
|
18
|
+
console.log(' migrate migrate existing nedb cache to sqlite cache (.upload-cache.db => .upload-cache.sqlite.db)');
|
19
|
+
}
|
20
|
+
function syncOrImportTask(importOnly) {
|
21
|
+
let argv = optimist
|
22
|
+
.usage(`Usage: $0 ${importOnly ? 'import' : 'sync'} -f <scv filename> -c <collection>`)
|
23
|
+
.demand('f')
|
24
|
+
.alias('f', 'filename')
|
25
|
+
.describe('f', 'csv filename to import')
|
26
|
+
.demand('c')
|
27
|
+
.describe('c', 'the name of the collection to import into')
|
28
|
+
.alias('c', 'collection')
|
29
|
+
.demand('s')
|
30
|
+
.describe('s', 'schema file describing the fields of the collection')
|
31
|
+
.alias('s', 'schema')
|
32
|
+
.describe('dry', 'dry-run that does not upload any data or files, and does not remove or update anything on the site')
|
33
|
+
.alias('dry', 'dryrun')
|
34
|
+
.parse(process.argv.slice(3));
|
35
|
+
let filename = argv.filename;
|
36
|
+
let collection = argv.collection;
|
37
|
+
let schema = argv.schema;
|
38
|
+
let dryrun = argv.dryrun;
|
39
|
+
//@ts-ignore
|
40
|
+
syncTask.default(filename, collection, schema, importOnly, dryrun);
|
41
|
+
}
|
42
|
+
export async function sync() {
|
43
|
+
return Effect.gen(function* (_) {
|
44
|
+
const config = yield* Config;
|
45
|
+
});
|
46
|
+
if (moduleSettings.args.includes('-h') || moduleSettings.args.includes('help'))
|
47
|
+
return printUsage();
|
48
|
+
if (moduleSettings.args.includes('init')) {
|
49
|
+
const rl = readline.createInterface({
|
50
|
+
input: process.stdin,
|
51
|
+
output: process.stdout,
|
52
|
+
terminal: true
|
53
|
+
});
|
54
|
+
async function askQuestion(query) {
|
55
|
+
return new Promise((resolve) => rl.question(query, (answer) => resolve(answer)));
|
56
|
+
}
|
57
|
+
console.log(chalk.yellow('hello to velo-sync init'));
|
58
|
+
let siteUrl = await askQuestion(orange('what is the url of the site homepage? '));
|
59
|
+
let secret = await askQuestion(orange('what is the velo-sync secret? '));
|
60
|
+
rl.close();
|
61
|
+
let config = { siteUrl, secret };
|
62
|
+
await saveConfig(config, moduleSettings.veloConfigName);
|
63
|
+
return console.log(chalk.green("🐕" + ' => config saved!'));
|
64
|
+
}
|
65
|
+
if (moduleSettings.args.includes('is-alive')) {
|
66
|
+
try {
|
67
|
+
let config = await readConfig(moduleSettings.veloConfigName);
|
68
|
+
console.log("🐕" + green(` => checking if the API for site ${chalk.greenBright(config.siteUrl)} is alive...`));
|
69
|
+
await veloAPI.isAlive(config);
|
70
|
+
return console.log(chalk.green("🐕" + ` => API of site ${chalk.greenBright(config.siteUrl)} is working and alive!!!`));
|
71
|
+
}
|
72
|
+
catch (e) {
|
73
|
+
if (e instanceof Error) {
|
74
|
+
return console.log((`💩 ${red.underline.bold("=> Failed to check endpoint")} ${orange(e.message)}`));
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
if (moduleSettings.args.includes('sync')) {
|
79
|
+
return syncOrImportTask(false);
|
80
|
+
}
|
81
|
+
if (moduleSettings.args.includes('import')) {
|
82
|
+
return syncOrImportTask(true);
|
83
|
+
}
|
84
|
+
if (moduleSettings.args.includes('export')) {
|
85
|
+
return console.log((`💩 ${red.underline.bold("=> Not implemented")}`));
|
86
|
+
}
|
87
|
+
if (moduleSettings.args.includes('migrate')) {
|
88
|
+
//@ts-ignore
|
89
|
+
migrateFileCache.default();
|
90
|
+
}
|
91
|
+
}
|
92
|
+
//# sourceMappingURL=sync.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../src/sync/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,OAAO,OAAO,MAAM,iCAAiC,CAAC;AACtD,OAAO,QAAQ,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAC;AACtE,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,gBAAgB,MAAM,kDAAkD,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,SAAS,UAAU;IACf,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACxB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACzB,OAAO,CAAC,GAAG,CAAC,gFAAgF,CAAC,CAAC;IAC9F,OAAO,CAAC,GAAG,CAAC,iEAAiE,CAA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