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
@@ -1,198 +0,0 @@
|
|
1
|
-
import gluestackPlugin from '@gluestack-ui/nativewind-utils/tailwind-plugin';
|
2
|
-
|
3
|
-
/** @type {import('tailwindcss').Config} */
|
4
|
-
module.exports = {
|
5
|
-
darkMode: "media",
|
6
|
-
content: ["app/**/*.{tsx,jsx,ts,js}", "components/**/*.{tsx,jsx,ts,js}"],
|
7
|
-
presets: [require('nativewind/preset')],
|
8
|
-
safelist: [
|
9
|
-
{
|
10
|
-
pattern:
|
11
|
-
/(bg|border|text|stroke|fill)-(primary|secondary|tertiary|error|success|warning|info|typography|outline|background|indicator)-(0|50|100|200|300|400|500|600|700|800|900|950|white|gray|black|error|warning|muted|success|info|light|dark|primary)/,
|
12
|
-
},
|
13
|
-
],
|
14
|
-
theme: {
|
15
|
-
extend: {
|
16
|
-
colors: {
|
17
|
-
primary: {
|
18
|
-
0: 'rgb(var(--color-primary-0)/<alpha-value>)',
|
19
|
-
50: 'rgb(var(--color-primary-50)/<alpha-value>)',
|
20
|
-
100: 'rgb(var(--color-primary-100)/<alpha-value>)',
|
21
|
-
200: 'rgb(var(--color-primary-200)/<alpha-value>)',
|
22
|
-
300: 'rgb(var(--color-primary-300)/<alpha-value>)',
|
23
|
-
400: 'rgb(var(--color-primary-400)/<alpha-value>)',
|
24
|
-
500: 'rgb(var(--color-primary-500)/<alpha-value>)',
|
25
|
-
600: 'rgb(var(--color-primary-600)/<alpha-value>)',
|
26
|
-
700: 'rgb(var(--color-primary-700)/<alpha-value>)',
|
27
|
-
800: 'rgb(var(--color-primary-800)/<alpha-value>)',
|
28
|
-
900: 'rgb(var(--color-primary-900)/<alpha-value>)',
|
29
|
-
950: 'rgb(var(--color-primary-950)/<alpha-value>)',
|
30
|
-
},
|
31
|
-
secondary: {
|
32
|
-
0: 'rgb(var(--color-secondary-0)/<alpha-value>)',
|
33
|
-
50: 'rgb(var(--color-secondary-50)/<alpha-value>)',
|
34
|
-
100: 'rgb(var(--color-secondary-100)/<alpha-value>)',
|
35
|
-
200: 'rgb(var(--color-secondary-200)/<alpha-value>)',
|
36
|
-
300: 'rgb(var(--color-secondary-300)/<alpha-value>)',
|
37
|
-
400: 'rgb(var(--color-secondary-400)/<alpha-value>)',
|
38
|
-
500: 'rgb(var(--color-secondary-500)/<alpha-value>)',
|
39
|
-
600: 'rgb(var(--color-secondary-600)/<alpha-value>)',
|
40
|
-
700: 'rgb(var(--color-secondary-700)/<alpha-value>)',
|
41
|
-
800: 'rgb(var(--color-secondary-800)/<alpha-value>)',
|
42
|
-
900: 'rgb(var(--color-secondary-900)/<alpha-value>)',
|
43
|
-
950: 'rgb(var(--color-secondary-950)/<alpha-value>)',
|
44
|
-
},
|
45
|
-
tertiary: {
|
46
|
-
50: 'rgb(var(--color-tertiary-50)/<alpha-value>)',
|
47
|
-
100: 'rgb(var(--color-tertiary-100)/<alpha-value>)',
|
48
|
-
200: 'rgb(var(--color-tertiary-200)/<alpha-value>)',
|
49
|
-
300: 'rgb(var(--color-tertiary-300)/<alpha-value>)',
|
50
|
-
400: 'rgb(var(--color-tertiary-400)/<alpha-value>)',
|
51
|
-
500: 'rgb(var(--color-tertiary-500)/<alpha-value>)',
|
52
|
-
600: 'rgb(var(--color-tertiary-600)/<alpha-value>)',
|
53
|
-
700: 'rgb(var(--color-tertiary-700)/<alpha-value>)',
|
54
|
-
800: 'rgb(var(--color-tertiary-800)/<alpha-value>)',
|
55
|
-
900: 'rgb(var(--color-tertiary-900)/<alpha-value>)',
|
56
|
-
950: 'rgb(var(--color-tertiary-950)/<alpha-value>)',
|
57
|
-
},
|
58
|
-
error: {
|
59
|
-
0: 'rgb(var(--color-error-0)/<alpha-value>)',
|
60
|
-
50: 'rgb(var(--color-error-50)/<alpha-value>)',
|
61
|
-
100: 'rgb(var(--color-error-100)/<alpha-value>)',
|
62
|
-
200: 'rgb(var(--color-error-200)/<alpha-value>)',
|
63
|
-
300: 'rgb(var(--color-error-300)/<alpha-value>)',
|
64
|
-
400: 'rgb(var(--color-error-400)/<alpha-value>)',
|
65
|
-
500: 'rgb(var(--color-error-500)/<alpha-value>)',
|
66
|
-
600: 'rgb(var(--color-error-600)/<alpha-value>)',
|
67
|
-
700: 'rgb(var(--color-error-700)/<alpha-value>)',
|
68
|
-
800: 'rgb(var(--color-error-800)/<alpha-value>)',
|
69
|
-
900: 'rgb(var(--color-error-900)/<alpha-value>)',
|
70
|
-
950: 'rgb(var(--color-error-950)/<alpha-value>)',
|
71
|
-
},
|
72
|
-
success: {
|
73
|
-
0: 'rgb(var(--color-success-0)/<alpha-value>)',
|
74
|
-
50: 'rgb(var(--color-success-50)/<alpha-value>)',
|
75
|
-
100: 'rgb(var(--color-success-100)/<alpha-value>)',
|
76
|
-
200: 'rgb(var(--color-success-200)/<alpha-value>)',
|
77
|
-
300: 'rgb(var(--color-success-300)/<alpha-value>)',
|
78
|
-
400: 'rgb(var(--color-success-400)/<alpha-value>)',
|
79
|
-
500: 'rgb(var(--color-success-500)/<alpha-value>)',
|
80
|
-
600: 'rgb(var(--color-success-600)/<alpha-value>)',
|
81
|
-
700: 'rgb(var(--color-success-700)/<alpha-value>)',
|
82
|
-
800: 'rgb(var(--color-success-800)/<alpha-value>)',
|
83
|
-
900: 'rgb(var(--color-success-900)/<alpha-value>)',
|
84
|
-
950: 'rgb(var(--color-success-950)/<alpha-value>)',
|
85
|
-
},
|
86
|
-
warning: {
|
87
|
-
0: 'rgb(var(--color-warning-0)/<alpha-value>)',
|
88
|
-
50: 'rgb(var(--color-warning-50)/<alpha-value>)',
|
89
|
-
100: 'rgb(var(--color-warning-100)/<alpha-value>)',
|
90
|
-
200: 'rgb(var(--color-warning-200)/<alpha-value>)',
|
91
|
-
300: 'rgb(var(--color-warning-300)/<alpha-value>)',
|
92
|
-
400: 'rgb(var(--color-warning-400)/<alpha-value>)',
|
93
|
-
500: 'rgb(var(--color-warning-500)/<alpha-value>)',
|
94
|
-
600: 'rgb(var(--color-warning-600)/<alpha-value>)',
|
95
|
-
700: 'rgb(var(--color-warning-700)/<alpha-value>)',
|
96
|
-
800: 'rgb(var(--color-warning-800)/<alpha-value>)',
|
97
|
-
900: 'rgb(var(--color-warning-900)/<alpha-value>)',
|
98
|
-
950: 'rgb(var(--color-warning-950)/<alpha-value>)',
|
99
|
-
},
|
100
|
-
info: {
|
101
|
-
0: 'rgb(var(--color-info-0)/<alpha-value>)',
|
102
|
-
50: 'rgb(var(--color-info-50)/<alpha-value>)',
|
103
|
-
100: 'rgb(var(--color-info-100)/<alpha-value>)',
|
104
|
-
200: 'rgb(var(--color-info-200)/<alpha-value>)',
|
105
|
-
300: 'rgb(var(--color-info-300)/<alpha-value>)',
|
106
|
-
400: 'rgb(var(--color-info-400)/<alpha-value>)',
|
107
|
-
500: 'rgb(var(--color-info-500)/<alpha-value>)',
|
108
|
-
600: 'rgb(var(--color-info-600)/<alpha-value>)',
|
109
|
-
700: 'rgb(var(--color-info-700)/<alpha-value>)',
|
110
|
-
800: 'rgb(var(--color-info-800)/<alpha-value>)',
|
111
|
-
900: 'rgb(var(--color-info-900)/<alpha-value>)',
|
112
|
-
950: 'rgb(var(--color-info-950)/<alpha-value>)',
|
113
|
-
},
|
114
|
-
typography: {
|
115
|
-
0: 'rgb(var(--color-typography-0)/<alpha-value>)',
|
116
|
-
50: 'rgb(var(--color-typography-50)/<alpha-value>)',
|
117
|
-
100: 'rgb(var(--color-typography-100)/<alpha-value>)',
|
118
|
-
200: 'rgb(var(--color-typography-200)/<alpha-value>)',
|
119
|
-
300: 'rgb(var(--color-typography-300)/<alpha-value>)',
|
120
|
-
400: 'rgb(var(--color-typography-400)/<alpha-value>)',
|
121
|
-
500: 'rgb(var(--color-typography-500)/<alpha-value>)',
|
122
|
-
600: 'rgb(var(--color-typography-600)/<alpha-value>)',
|
123
|
-
700: 'rgb(var(--color-typography-700)/<alpha-value>)',
|
124
|
-
800: 'rgb(var(--color-typography-800)/<alpha-value>)',
|
125
|
-
900: 'rgb(var(--color-typography-900)/<alpha-value>)',
|
126
|
-
950: 'rgb(var(--color-typography-950)/<alpha-value>)',
|
127
|
-
white: '#FFFFFF',
|
128
|
-
gray: '#D4D4D4',
|
129
|
-
black: '#181718',
|
130
|
-
},
|
131
|
-
outline: {
|
132
|
-
0: 'rgb(var(--color-outline-0)/<alpha-value>)',
|
133
|
-
50: 'rgb(var(--color-outline-50)/<alpha-value>)',
|
134
|
-
100: 'rgb(var(--color-outline-100)/<alpha-value>)',
|
135
|
-
200: 'rgb(var(--color-outline-200)/<alpha-value>)',
|
136
|
-
300: 'rgb(var(--color-outline-300)/<alpha-value>)',
|
137
|
-
400: 'rgb(var(--color-outline-400)/<alpha-value>)',
|
138
|
-
500: 'rgb(var(--color-outline-500)/<alpha-value>)',
|
139
|
-
600: 'rgb(var(--color-outline-600)/<alpha-value>)',
|
140
|
-
700: 'rgb(var(--color-outline-700)/<alpha-value>)',
|
141
|
-
800: 'rgb(var(--color-outline-800)/<alpha-value>)',
|
142
|
-
900: 'rgb(var(--color-outline-900)/<alpha-value>)',
|
143
|
-
950: 'rgb(var(--color-outline-950)/<alpha-value>)',
|
144
|
-
},
|
145
|
-
background: {
|
146
|
-
0: 'rgb(var(--color-background-0)/<alpha-value>)',
|
147
|
-
50: 'rgb(var(--color-background-50)/<alpha-value>)',
|
148
|
-
100: 'rgb(var(--color-background-100)/<alpha-value>)',
|
149
|
-
200: 'rgb(var(--color-background-200)/<alpha-value>)',
|
150
|
-
300: 'rgb(var(--color-background-300)/<alpha-value>)',
|
151
|
-
400: 'rgb(var(--color-background-400)/<alpha-value>)',
|
152
|
-
500: 'rgb(var(--color-background-500)/<alpha-value>)',
|
153
|
-
600: 'rgb(var(--color-background-600)/<alpha-value>)',
|
154
|
-
700: 'rgb(var(--color-background-700)/<alpha-value>)',
|
155
|
-
800: 'rgb(var(--color-background-800)/<alpha-value>)',
|
156
|
-
900: 'rgb(var(--color-background-900)/<alpha-value>)',
|
157
|
-
950: 'rgb(var(--color-background-950)/<alpha-value>)',
|
158
|
-
error: 'rgb(var(--color-background-error)/<alpha-value>)',
|
159
|
-
warning: 'rgb(var(--color-background-warning)/<alpha-value>)',
|
160
|
-
muted: 'rgb(var(--color-background-muted)/<alpha-value>)',
|
161
|
-
success: 'rgb(var(--color-background-success)/<alpha-value>)',
|
162
|
-
info: 'rgb(var(--color-background-info)/<alpha-value>)',
|
163
|
-
light: '#FBFBFB',
|
164
|
-
dark: '#181719',
|
165
|
-
},
|
166
|
-
indicator: {
|
167
|
-
primary: 'rgb(var(--color-indicator-primary)/<alpha-value>)',
|
168
|
-
info: 'rgb(var(--color-indicator-info)/<alpha-value>)',
|
169
|
-
error: 'rgb(var(--color-indicator-error)/<alpha-value>)',
|
170
|
-
},
|
171
|
-
},
|
172
|
-
fontFamily: {
|
173
|
-
heading: undefined,
|
174
|
-
body: undefined,
|
175
|
-
mono: undefined,
|
176
|
-
roboto: ['Roboto', 'sans-serif'],
|
177
|
-
},
|
178
|
-
fontWeight: {
|
179
|
-
extrablack: '950',
|
180
|
-
},
|
181
|
-
fontSize: {
|
182
|
-
'2xs': '10px',
|
183
|
-
},
|
184
|
-
boxShadow: {
|
185
|
-
'hard-1': '-2px 2px 8px 0px rgba(38, 38, 38, 0.20)',
|
186
|
-
'hard-2': '0px 3px 10px 0px rgba(38, 38, 38, 0.20)',
|
187
|
-
'hard-3': '2px 2px 8px 0px rgba(38, 38, 38, 0.20)',
|
188
|
-
'hard-4': '0px -3px 10px 0px rgba(38, 38, 38, 0.20)',
|
189
|
-
'hard-5': '0px 2px 10px 0px rgba(38, 38, 38, 0.10)',
|
190
|
-
'soft-1': '0px 0px 10px rgba(38, 38, 38, 0.1)',
|
191
|
-
'soft-2': '0px 0px 20px rgba(38, 38, 38, 0.2)',
|
192
|
-
'soft-3': '0px 0px 30px rgba(38, 38, 38, 0.1)',
|
193
|
-
'soft-4': '0px 0px 40px rgba(38, 38, 38, 0.1)',
|
194
|
-
},
|
195
|
-
},
|
196
|
-
},
|
197
|
-
plugins: [gluestackPlugin],
|
198
|
-
};
|
package/files/expo/tsconfig.json
DELETED
@@ -1,40 +0,0 @@
|
|
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
|
-
|
18
|
-
// --- Advanced ---
|
19
|
-
"preserveConstEnums": true,
|
20
|
-
"plugins": [
|
21
|
-
{
|
22
|
-
"name": "@styled/typescript-styled-plugin"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"name": "typescript-eslint-language-service"
|
26
|
-
},
|
27
|
-
],
|
28
|
-
"paths": {
|
29
|
-
"@/*": [
|
30
|
-
"./*"
|
31
|
-
]
|
32
|
-
}
|
33
|
-
},
|
34
|
-
"include": [
|
35
|
-
"**/*.ts",
|
36
|
-
"**/*.tsx",
|
37
|
-
".expo/types/**/*.ts",
|
38
|
-
"expo-env.d.ts"
|
39
|
-
]
|
40
|
-
}
|
package/src/init.ts
DELETED
@@ -1,352 +0,0 @@
|
|
1
|
-
// import chalk from 'chalk';
|
2
|
-
// import { existsSync, mkdirSync, promises as fsPromises } from 'fs';
|
3
|
-
// import fse from 'fs-extra';
|
4
|
-
// import { join } from 'path';
|
5
|
-
// import fs from 'fs/promises';
|
6
|
-
// import path from 'path';
|
7
|
-
// import os from 'os';
|
8
|
-
// import enquirer from 'enquirer';
|
9
|
-
// import { ModuleSettings, ProjectSettings, blue, green, orange, red } from './index.js';
|
10
|
-
// import { createTemplateFolder, gitInit, installPackages } from './helpers.js';
|
11
|
-
|
12
|
-
import { Effect, Schema } from "effect/index"
|
13
|
-
import { Config } from "./config.js";
|
14
|
-
import { Command, Terminal, FileSystem, Path } from "@effect/platform"
|
15
|
-
import { config } from "yargs";
|
16
|
-
import { JsonSchema } from "./schemas/index.js";
|
17
|
-
|
18
|
-
// const { Select } = enquirer as any;
|
19
|
-
// /**
|
20
|
-
// * Init Lucy project
|
21
|
-
// * @param {string} cwd Current working directory
|
22
|
-
// * @param {string} packageRoot Package root directory
|
23
|
-
// * @returns {void}
|
24
|
-
// */
|
25
|
-
// export async function init(moduleSettings: ModuleSettings, projectSettings: ProjectSettings) {
|
26
|
-
|
27
|
-
// if(projectSettings.packageJSON && projectSettings.packageJSON.wixLucy?.initialized && !moduleSettings.args.includes('-f')) {
|
28
|
-
// console.log((`💩 ${red.underline.bold("=> This project is already initialized =>")} ${orange(moduleSettings.targetFolder)}`));
|
29
|
-
// return;
|
30
|
-
// }
|
31
|
-
|
32
|
-
// const templatesPath = join(os.homedir(), '.lucy-cli');
|
33
|
-
// if (!existsSync(templatesPath)) {
|
34
|
-
// console.log(chalk.yellow(`Templates folder not found at ${orange(templatesPath)}. Creating it with a default template...`));
|
35
|
-
// await createTemplateFolder(moduleSettings);
|
36
|
-
// }
|
37
|
-
|
38
|
-
// const templateChoices = (await fs.readdir(templatesPath, { withFileTypes: true }))
|
39
|
-
// .filter(dirent => dirent.isDirectory())
|
40
|
-
// .map(dirent => dirent.name);
|
41
|
-
|
42
|
-
// if (templateChoices.length === 0) {
|
43
|
-
// console.log((`💩 ${red.underline.bold("=> No templates found in =>")} ${orange(templatesPath)}`));
|
44
|
-
// return;
|
45
|
-
// }
|
46
|
-
|
47
|
-
// const prompt = new Select({
|
48
|
-
// name: 'template',
|
49
|
-
// message: 'Select a project template',
|
50
|
-
// choices: templateChoices
|
51
|
-
// });
|
52
|
-
|
53
|
-
// const selectedTemplate = await prompt.run();
|
54
|
-
// const templateDir = join(templatesPath, selectedTemplate);
|
55
|
-
// const templateFilesDir = join(templateDir, 'files');
|
56
|
-
// const templateSettingsPath = join(templateDir, 'settings.json');
|
57
|
-
|
58
|
-
// if (!existsSync(templateSettingsPath)) {
|
59
|
-
// console.log((`💩 ${red.underline.bold("=> Template is missing settings.json at =>")} ${orange(templateSettingsPath)}`));
|
60
|
-
// return;
|
61
|
-
// }
|
62
|
-
|
63
|
-
// try {
|
64
|
-
// const templateSettingsRaw = await fs.readFile(templateSettingsPath, 'utf8');
|
65
|
-
// moduleSettings.settings = JSON.parse(templateSettingsRaw);
|
66
|
-
// } catch (e) {
|
67
|
-
// console.log((`💩 ${red.underline.bold("=> Error reading or parsing template settings =>")} ${orange(e)}`));
|
68
|
-
// return;
|
69
|
-
// }
|
70
|
-
|
71
|
-
// await copyFolder(templateFilesDir, moduleSettings.targetFolder);
|
72
|
-
|
73
|
-
// await editJson(moduleSettings.packageJsonPath, ['type', 'scripts'], ['module', moduleSettings.settings.scripts ]);
|
74
|
-
// await stringReplace(join(moduleSettings.targetFolder, 'currents.config.js'), ['__ProjectName__'], [path.basename(moduleSettings.targetFolder)]);
|
75
|
-
|
76
|
-
// await installPackages(moduleSettings.settings.wixPackages, moduleSettings.settings.devPackages, moduleSettings.targetFolder, moduleSettings.lockVersion);
|
77
|
-
|
78
|
-
// await editJson(join(moduleSettings.targetFolder, 'jsconfig.json'), ['compilerOptions', 'exclude'], [moduleSettings.settings.wixSettings.compilerOptions, moduleSettings.settings.wixSettings.exclude]);
|
79
|
-
// await editJson(join(moduleSettings.targetFolder, 'typedoc.json'), ['name'], [path.basename(moduleSettings.targetFolder)]);
|
80
|
-
|
81
|
-
// await gitInit(moduleSettings.targetFolder, moduleSettings.settings.modules, moduleSettings.force);
|
82
|
-
|
83
|
-
// moduleSettings.settings.initialized = true;
|
84
|
-
|
85
|
-
// const eslintrcPath = join(moduleSettings.targetFolder, '.eslintrc.json');
|
86
|
-
// if(existsSync(eslintrcPath)) {
|
87
|
-
// console.log((`🐕 ${blue.underline.bold("=> Deleting .eslintrc.json")}`));
|
88
|
-
// await fs.rm(join(eslintrcPath), { recursive: false }).catch(e => {
|
89
|
-
// console.log((`💩 ${red.underline.bold("=> Could not delete .eslintrc.json ")} ${red.bold("=> ", e)}`));
|
90
|
-
// });
|
91
|
-
// }
|
92
|
-
|
93
|
-
// console.log((`🐕 ${blue.underline.bold("=> Writing settings to lucy.json")}`));
|
94
|
-
// await fs.writeFile(join(moduleSettings.targetFolder, 'lucy.json'), JSON.stringify(moduleSettings.settings, null, 2));
|
95
|
-
|
96
|
-
// console.log(chalk.greenBright.underline('🐶 => Initialization done!'));
|
97
|
-
// }
|
98
|
-
|
99
|
-
// /**
|
100
|
-
// * Copy files from source to target
|
101
|
-
// * @param {string} source Source folder
|
102
|
-
// * @param {string} target Target folder
|
103
|
-
// * @returns {Promise<void>}
|
104
|
-
// */
|
105
|
-
// async function copyFolder(source: string, target: string): Promise<void> {
|
106
|
-
// if (!existsSync(target)){
|
107
|
-
// console.log((`💩 ${red.underline.bold("=> Target folder doesn't exist =>")} ${orange(target)}`));
|
108
|
-
// return;
|
109
|
-
// }
|
110
|
-
|
111
|
-
// try {
|
112
|
-
// const files = await fsPromises.readdir(source);
|
113
|
-
// for (const file of files){
|
114
|
-
// const sourcePath = join(source, file);
|
115
|
-
// const targetPath = join(target, file);
|
116
|
-
|
117
|
-
// if (file === 'lucy.json' && existsSync(targetPath)){
|
118
|
-
// continue;
|
119
|
-
// }
|
120
|
-
// const stats = await fsPromises.stat(sourcePath);
|
121
|
-
// if (stats.isDirectory()){
|
122
|
-
// if (!existsSync(file)){
|
123
|
-
// mkdirSync(file);
|
124
|
-
// }
|
125
|
-
// await fse.copySync(sourcePath, targetPath, { overwrite: true });
|
126
|
-
// } else {
|
127
|
-
// fse.copySync(sourcePath, targetPath, { overwrite: true });
|
128
|
-
// }
|
129
|
-
// }
|
130
|
-
// } catch (err){
|
131
|
-
// console.log((`💩 ${red.underline.bold("=> There was an error while copying files =>")} ${orange(err)}`));
|
132
|
-
// } finally {
|
133
|
-
// console.log("🐕" + blue.underline.bold(' => Copy files completed!'));
|
134
|
-
// }
|
135
|
-
// }
|
136
|
-
|
137
|
-
// /**
|
138
|
-
// * Edit Json files
|
139
|
-
// * @param {string} filePath File path
|
140
|
-
// * @param {string[]} keys Keys to edit
|
141
|
-
// * @param {string[]} values Values to edit
|
142
|
-
// * @returns {void}
|
143
|
-
// */
|
144
|
-
// async function editJson(filePath: string, keys: string[], values: string[] | Object[] ) {
|
145
|
-
// try {
|
146
|
-
// const data = await fs.readFile(filePath, 'utf8');
|
147
|
-
|
148
|
-
// let jsonData;
|
149
|
-
// try {
|
150
|
-
// jsonData = JSON.parse(data);
|
151
|
-
// } catch (parseError) {
|
152
|
-
// console.log((`💩 ${red.underline.bold("=> Error parsing JSON =>")} ${orange(parseError)}`));
|
153
|
-
// return;
|
154
|
-
// }
|
155
|
-
|
156
|
-
// for (const key of keys){
|
157
|
-
// const index = keys.indexOf(key);
|
158
|
-
// const value = values[index];
|
159
|
-
// jsonData[key] = value;
|
160
|
-
// }
|
161
|
-
|
162
|
-
// const updatedJsonData = JSON.stringify(jsonData, null, 2);
|
163
|
-
// await fs.writeFile(filePath, updatedJsonData, 'utf8');
|
164
|
-
// } catch (err) {
|
165
|
-
// console.log((`💩 ${red.underline.bold("=> Error editing JSON Data =>")} ${orange(err)}`));
|
166
|
-
// } finally {
|
167
|
-
// console.log("🐕" + blue.underline(` => Updated file ${orange(filePath)}`));
|
168
|
-
// }
|
169
|
-
// }
|
170
|
-
|
171
|
-
// async function stringReplace(filePath: string, keys: string[], values: string[]) {
|
172
|
-
// try {
|
173
|
-
// let modifiedContent: string = '';
|
174
|
-
// const data = await fs.readFile(filePath, 'utf8');
|
175
|
-
|
176
|
-
// for (const key of keys){
|
177
|
-
// const index = keys.indexOf(key);
|
178
|
-
// const value = values[index];
|
179
|
-
// const regex = new RegExp(`${key}`, 'g');
|
180
|
-
// modifiedContent = data.replace(regex, `${value}`);
|
181
|
-
// }
|
182
|
-
|
183
|
-
// await fs.writeFile(filePath, modifiedContent, 'utf8');
|
184
|
-
// } catch (err) {
|
185
|
-
// console.log((`💩 ${red.underline.bold("=> During string replace =>")} ${orange(err)}`));
|
186
|
-
// } finally {
|
187
|
-
// console.log(blue.underline(`🐕 => Updated file ${orange(filePath)}`));
|
188
|
-
// }
|
189
|
-
// }
|
190
|
-
const yarn = Command.make("yarn").pipe(
|
191
|
-
Command.stdout("inherit"), // Stream stdout to process.stdout
|
192
|
-
Command.exitCode // Get the exit code
|
193
|
-
)
|
194
|
-
|
195
|
-
const init_expo = () => {
|
196
|
-
return Effect.gen(function*() {
|
197
|
-
const config = yield* Config;
|
198
|
-
const terminal = yield* Terminal.Terminal;
|
199
|
-
const fs = yield* FileSystem.FileSystem;
|
200
|
-
const path = yield* Path.Path;
|
201
|
-
|
202
|
-
const yarn = Command.make(
|
203
|
-
"yarn",
|
204
|
-
"add",
|
205
|
-
"nativewind",
|
206
|
-
"react-native-reanimated@~3.17.4",
|
207
|
-
"react-native-safe-area-context@5.4.0",
|
208
|
-
"@wix/sdk",
|
209
|
-
"@wix/data",
|
210
|
-
"expo-standard-web-crypto",
|
211
|
-
"effect"
|
212
|
-
).pipe(
|
213
|
-
Command.stdout("inherit"), // Stream stdout to process.stdout
|
214
|
-
Command.exitCode // Get the exit code
|
215
|
-
)
|
216
|
-
|
217
|
-
const yarnDev = Command.make(
|
218
|
-
"yarn",
|
219
|
-
"add",
|
220
|
-
"--dev",
|
221
|
-
"tailwindcss@^3.4.17",
|
222
|
-
"prettier-plugin-tailwindcss@^0.5.11",
|
223
|
-
"@styled/typescript-styled-plugin",
|
224
|
-
"typescript-eslint-language-service",
|
225
|
-
"eslint-config-prettier",
|
226
|
-
"eslint-plugin-jsdoc",
|
227
|
-
"eslint-plugin-named-import-spacing",
|
228
|
-
"eslint-plugin-only-warn",
|
229
|
-
"eslint-plugin-react",
|
230
|
-
"eslint-plugin-react-hooks",
|
231
|
-
"eslint-plugin-simple-import-sort",
|
232
|
-
"@next/eslint-plugin-next",
|
233
|
-
"@styled/typescript-styled-plugin",
|
234
|
-
"@stylelint/postcss-css-in-js",
|
235
|
-
"@typescript-eslint/parser",
|
236
|
-
"typescript-eslint",
|
237
|
-
"typescript-eslint-language-service",
|
238
|
-
"@total-typescript/ts-reset",
|
239
|
-
).pipe(
|
240
|
-
Command.stdout("inherit"), // Stream stdout to process.stdout
|
241
|
-
Command.exitCode // Get the exit code
|
242
|
-
)
|
243
|
-
|
244
|
-
const npx = Command.make(
|
245
|
-
"npx",
|
246
|
-
"expo",
|
247
|
-
"install",
|
248
|
-
"tailwindcss-animate",
|
249
|
-
"class-variance-authority",
|
250
|
-
"clsx",
|
251
|
-
"tailwind-merge",
|
252
|
-
"expo-crypto",
|
253
|
-
).pipe(
|
254
|
-
Command.stdout("inherit"), // Stream stdout to process.stdout
|
255
|
-
Command.exitCode // Get the exit code
|
256
|
-
)
|
257
|
-
|
258
|
-
const projectName = config.config.cwd.split('/').pop() || 'expo-project';
|
259
|
-
|
260
|
-
const appJsonRaw = yield* fs.readFile("app.json").pipe(Effect.catchAll((error) => {
|
261
|
-
return Effect.succeed('{}');
|
262
|
-
}))
|
263
|
-
const lucyJsonRaw = yield* fs.readFile("lucy.json").pipe(Effect.catchAll((error) => {
|
264
|
-
return Effect.succeed('{}');
|
265
|
-
}))
|
266
|
-
const appJSON = Schema.decodeUnknownSync(JsonSchema)(appJsonRaw.toString()) as any;
|
267
|
-
const lucyJSON = Schema.decodeUnknownSync(JsonSchema)(lucyJsonRaw.toString()) as any;
|
268
|
-
|
269
|
-
const expoAppReady = appJSON.expo ? true : false;
|
270
|
-
const lucyInitialized = lucyJSON.initialized ? true : false;
|
271
|
-
const gitPresent = yield* fs.exists(config.config.cwd + '/.git')
|
272
|
-
|
273
|
-
const files = yield* fs.readDirectory(config.config.cwd);
|
274
|
-
const nonGitFiles = files.filter(file => file !== '.git');
|
275
|
-
|
276
|
-
if(!gitPresent) return yield* Effect.logError("No git repository found. Please initialize a git repository before running this command.");
|
277
|
-
if(nonGitFiles.length > 0) return yield* Effect.logError("The current directory is not empty. Please run this command in an empty directory.");
|
278
|
-
|
279
|
-
if(!expoAppReady) {
|
280
|
-
const initExpo = Command.make("npx", "create-expo-app@latest", projectName).pipe(
|
281
|
-
Command.stdout("inherit"), // Stream stdout to process.stdout
|
282
|
-
Command.exitCode // Get the exit code
|
283
|
-
)
|
284
|
-
yield* initExpo
|
285
|
-
|
286
|
-
const projectPath = path.join(config.config.cwd, projectName)
|
287
|
-
|
288
|
-
const projectFiles = yield* fs.readDirectory(projectPath)
|
289
|
-
yield* Effect.forEach(
|
290
|
-
projectFiles.filter(file => file !== '.git'),
|
291
|
-
(file) => fs.copy(path.join(projectPath, file), path.join(config.config.cwd, file), { overwrite: true }),
|
292
|
-
{ discard: true }
|
293
|
-
)
|
294
|
-
yield* fs.remove(projectPath, { recursive: true })
|
295
|
-
}
|
296
|
-
if(lucyInitialized) return yield* Effect.logError("Lucy is already initialized in this project. Please run this command in an empty directory.");
|
297
|
-
|
298
|
-
console.log("Expo project initialized with app.json:", projectName);
|
299
|
-
|
300
|
-
let res = yield* npx
|
301
|
-
res = yield* yarn
|
302
|
-
res = yield* yarnDev
|
303
|
-
|
304
|
-
if (res !== 0) {
|
305
|
-
return yield* Effect.logError("Failed to install Expo dependencies. Please check the error message above.");
|
306
|
-
}
|
307
|
-
|
308
|
-
const baseFiles = yield* fs.readDirectory(config.config.filesFolder + '/expo')
|
309
|
-
yield* Effect.forEach(
|
310
|
-
baseFiles,
|
311
|
-
(file) => fs.copy(path.join(config.config.filesFolder, 'expo', file), path.join(config.config.cwd, file), { overwrite: true })
|
312
|
-
)
|
313
|
-
|
314
|
-
const newScripts = {
|
315
|
-
"dev": "expo start",
|
316
|
-
"start": "expo start",
|
317
|
-
"android": "expo start --android",
|
318
|
-
"ios": "expo start --ios",
|
319
|
-
"web": "expo start --web",
|
320
|
-
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
321
|
-
"build:ios": "eas build --platform ios --local --profile preview",
|
322
|
-
"build:android": "eas build --platform android --local --profile preview",
|
323
|
-
"build:web": "eas build --platform web --local --profile preview",
|
324
|
-
}
|
325
|
-
|
326
|
-
const packageJsonPath = path.join(config.config.cwd, "package.json")
|
327
|
-
const packageJsonRaw = yield* fs.readFile(packageJsonPath)
|
328
|
-
const packageJson = Schema.decodeUnknownSync(JsonSchema)(packageJsonRaw.toString()) as any;
|
329
|
-
|
330
|
-
packageJson.scripts = {
|
331
|
-
...packageJson.scripts,
|
332
|
-
...newScripts
|
333
|
-
};
|
334
|
-
yield* fs.writeFileString(path.join(config.config.cwd, 'package.json'), JSON.stringify(packageJson, null, 2));
|
335
|
-
yield* fs.remove(path.join(config.config.cwd, "package-lock.json"), { force: true })
|
336
|
-
|
337
|
-
})
|
338
|
-
}
|
339
|
-
|
340
|
-
export const init = () => {
|
341
|
-
return Effect.gen(function* (_) {
|
342
|
-
const config = yield* Config;
|
343
|
-
if(config.config.action.type === undefined) {
|
344
|
-
return yield* Effect.fail("No Params Provided");
|
345
|
-
}
|
346
|
-
|
347
|
-
if(config.config.action.type === 'expo') {
|
348
|
-
return yield* init_expo();
|
349
|
-
}
|
350
|
-
|
351
|
-
})
|
352
|
-
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|