lucy-cli 2.0.0-alpha.7 → 2.0.0-beta.1
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/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.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.d.ts +7 -0
- package/dist/commands/exec.js +67 -0
- package/dist/commands/exec.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 +165 -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/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 +62 -0
- package/dist/init/blocks.js.map +1 -0
- package/dist/init/cargo.d.ts +2 -0
- package/dist/init/cargo.js +21 -0
- package/dist/init/cargo.js.map +1 -0
- package/dist/init/expo.d.ts +5 -0
- package/dist/init/expo.js +52 -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/monorepo.d.ts +4 -0
- package/dist/init/monorepo.js +48 -0
- package/dist/init/monorepo.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/tauri.d.ts +5 -0
- package/dist/init/tauri.js +32 -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 +60 -0
- package/dist/init/velo.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/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/tasks/Gulpfile.d.ts +4 -0
- package/dist/tasks/Gulpfile.js +111 -0
- package/dist/tasks/Gulpfile.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/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/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/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.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/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-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.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.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.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/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.d.ts +4 -0
- package/dist/wix-sync/sync.js +26 -0
- package/dist/wix-sync/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/.stylelintrc.js +8 -0
- package/files/{expo → templates/expo[D]/files}/eas.json +9 -3
- package/files/templates/expo[D]/files/lib/data.ts +197 -0
- package/files/{expo → templates/expo[D]/files}/metro.config.js +6 -1
- package/files/templates/expo[D]/files/pnpm-workspace.yaml +3 -0
- package/files/templates/expo[D]/lucy.json +86 -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/templates/monorepo[D]/files/.prettierrc.json +15 -0
- 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/.yarnrc.yml +3 -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 +11 -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 +69 -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]/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.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 +18 -19
- 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 +69 -0
- package/src/commands/git.ts +113 -0
- package/src/commands/home.ts +22 -0
- package/src/commands/install.ts +249 -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 +85 -0
- package/src/init/cargo.ts +25 -0
- package/src/init/expo.ts +69 -0
- package/src/init/gitModules.ts +15 -0
- package/src/init/index.ts +81 -0
- package/src/init/monorepo.ts +72 -0
- package/src/init/prepareVelo.ts +19 -0
- package/src/init/tauri.ts +42 -0
- package/src/init/templates.ts +98 -0
- package/src/init/velo.ts +65 -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/dist/init.d.ts +0 -4
- package/dist/init.js +0 -275
- package/dist/models.js +0 -1
- package/dist/params.d.ts +0 -7
- package/dist/params.js +0 -23
- package/files/expo/.env +0 -1
- package/files/expo/lib/data.ts +0 -48
- package/files/expo/lucy.json +0 -8
- package/src/init.ts +0 -392
- /package/dist/{models.d.ts → schemas/tsconfig.d.ts} +0 -0
- /package/{files/expo/components/.gitkeep → dist/utils/index.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}/.prettierrc.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc.yml +0 -0
- /package/files/{expo → templates/expo[D]/files}/README.md +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/fonts/SpaceMono-Regular.ttf +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/adaptive-icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/favicon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/splash-icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/babel.config.js +0 -0
- /package/files/{expo/components/ui → templates/expo[D]/files/components}/.gitkeep +0 -0
- /package/files/{velo/typescript/__mocks__ → templates/expo[D]/files/components/ui}/.gitkeep +0 -0
- /package/files/{expo → templates/expo[D]/files}/constants/theme.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{expo → templates/expo[D]/files}/global.css +0 -0
- /package/files/{expo → templates/expo[D]/files}/hooks/useColorScheme.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/utils/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/utils/polyfills.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/client.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/error.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/nativewind-env.d.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/scripts/reset-project.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/tailwind.config.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/tsconfig.json +0 -0
- /package/files/{expo → templates/expo[D]/files}/types/reset.d.ts +0 -0
- /package/files/{velo → 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/pages → templates/velo[D]/files/typescript/__mocks__}/.gitkeep +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/data.ts +0 -0
- /package/files/{velo → 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/files/{velo/typescript/public → templates/velo[D]/files/typescript/pages}/.gitkeep +0 -0
- /package/files/{velo/typescript/styles → templates/velo[D]/files/typescript/public}/.gitkeep +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/public/scss/app.scss +0 -0
- /package/files/{velo/typescript/styles/global.scss → templates/velo[D]/files/typescript/styles/.gitkeep} +0 -0
- /package/{src copy/schemas/index.ts → files/templates/velo[D]/files/typescript/styles/global.scss} +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/schemas/types.ts → old/schemas/index.d.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/.yarnrc.yml
CHANGED
package/dist/args.d.ts
CHANGED
package/dist/args.js
CHANGED
@@ -1,23 +1,78 @@
|
|
1
1
|
import yargs from "yargs";
|
2
2
|
import { hideBin } from "yargs/helpers";
|
3
|
+
import { initTypes, taskNames, syncActions } from "./schemas/types.js";
|
4
|
+
import { createRequire } from "node:module";
|
5
|
+
const require = createRequire(import.meta.url);
|
6
|
+
const pkg = require("../package.json");
|
3
7
|
export async function get_args() {
|
4
8
|
const argv = await yargs(hideBin(process.argv))
|
5
9
|
.usage('Usage: $0 <command> [options]')
|
6
|
-
.command('init <
|
7
|
-
return yargs.positional('
|
10
|
+
.command('init <initType>', 'Initialize a new Lucy project', (yargs) => {
|
11
|
+
return yargs.positional('initType', {
|
8
12
|
describe: 'The type of project to initialize',
|
9
|
-
choices:
|
10
|
-
demandOption: true,
|
13
|
+
choices: initTypes,
|
14
|
+
demandOption: true,
|
15
|
+
});
|
16
|
+
}).option('force', {
|
17
|
+
alias: 'f',
|
18
|
+
type: 'boolean',
|
19
|
+
description: 'Run with force'
|
20
|
+
})
|
21
|
+
.command('open', 'Open the Lucy home directory')
|
22
|
+
.command('task <tasksName>', 'Run a task', (yargs) => {
|
23
|
+
return yargs.positional('tasksName', {
|
24
|
+
describe: 'The task to run',
|
25
|
+
choices: taskNames,
|
26
|
+
demandOption: true,
|
27
|
+
});
|
28
|
+
})
|
29
|
+
.command('wix-sync <syncAction>', 'Run a velo-sync action', (yargs) => {
|
30
|
+
return yargs.positional("syncAction", {
|
31
|
+
describe: "The velo-sync action to run",
|
32
|
+
choices: syncActions,
|
33
|
+
demandOption: true,
|
34
|
+
})
|
35
|
+
.option('input', {
|
36
|
+
alias: 'i',
|
37
|
+
type: 'string',
|
38
|
+
describe: 'The CSV file to import',
|
39
|
+
demandOption: false,
|
40
|
+
})
|
41
|
+
.option('c', {
|
42
|
+
alias: 'collection',
|
43
|
+
type: 'string',
|
44
|
+
describe: 'The name of the collection to import data into',
|
45
|
+
demandOption: false,
|
46
|
+
})
|
47
|
+
.option('s', {
|
48
|
+
alias: 'schema',
|
49
|
+
type: 'string',
|
50
|
+
describe: 'The schema file',
|
51
|
+
demandOption: false,
|
52
|
+
})
|
53
|
+
.option('d', {
|
54
|
+
type: 'boolean',
|
55
|
+
describe: 'Run in dry-run mode',
|
56
|
+
demandOption: false,
|
57
|
+
});
|
58
|
+
})
|
59
|
+
.command('wix-sdk <wixSDKAction>', 'Run a velo-sync action', (yargs) => {
|
60
|
+
return yargs.positional("wixSDKAction", {
|
61
|
+
describe: "The velo-sync action to run",
|
62
|
+
choices: syncActions,
|
63
|
+
demandOption: true,
|
11
64
|
});
|
12
65
|
})
|
13
|
-
// Enforce that a command must be provided (e.g., 'init')
|
14
66
|
.demandCommand(1, 'You need to provide a command. Use --help for a list of commands.')
|
67
|
+
.version('v', 'Show version number', pkg.version)
|
68
|
+
.alias('v', 'version')
|
15
69
|
.help()
|
16
70
|
.alias('h', 'help')
|
17
71
|
.strict()
|
18
|
-
.wrap(yargs().terminalWidth())
|
19
|
-
.epilogue('For more information, visit https://github.com/your-repo/wix-lucy-cli')
|
72
|
+
.wrap(yargs().terminalWidth())
|
73
|
+
.epilogue('For more information, visit https://github.com/your-repo/wix-lucy-cli')
|
20
74
|
.parseAsync();
|
21
75
|
// The cast is now safer with the defined interface.
|
22
76
|
return argv;
|
23
77
|
}
|
78
|
+
//# sourceMappingURL=args.js.map
|
package/dist/args.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAY,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEvC,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC1B,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAA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EAAE,QAAQ;YACd,QAAQ,EAAE,iBAAiB;YAC3B,YAAY,EAAE,KAAK;SACtB,CAAC;aACD,MAAM,CAAC,GAAG,EAAE;YACT,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,qBAAqB;YAC/B,YAAY,EAAE,KAAK;SACtB,CAAC,CAAC;IACP,CAAC,CAAC;SACD,OAAO,CAAC,wBAAwB,EAAE,wBAAwB,EAAE,CAAC,KAAK,EAAE,EAAE;QACnE,OAAO,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE;YACpC,QAAQ,EAAE,6BAA6B;YACvC,OAAO,EAAE,WAAW;YACpB,YAAY,EAAE,IAAI;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;SACD,aAAa,CAAC,CAAC,EAAE,mEAAmE,CAAC;SACrF,OAAO,CAAC,GAAG,EAAE,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC;SAChD,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC;SACrB,IAAI,EAAE;SACN,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC;SAClB,MAAM,EAAE;SACR,IAAI,CAAC,KAAK,EAAE,CAAC,aAAa,EAAE,CAAC;SAC7B,QAAQ,CAAC,uEAAuE,CAAC;SACjF,UAAU,EAAE,CAAC;IAElB,oDAAoD;IAEpD,OAAO,IAAgB,CAAC;AAC5B,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { FileSystem, Path } from "@effect/platform";
|
3
|
+
import { Config } from "../config.js";
|
4
|
+
import { AppError } from "../error.js";
|
5
|
+
export declare const isDirectoryClean: (excludes?: string[]) => Effect.Effect<boolean, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem>;
|
6
|
+
export declare const checkForDirty: (excludes?: string[]) => Effect.Effect<void, AppError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem>;
|
7
|
+
export declare const checkForVelo: () => Effect.Effect<undefined, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { Effect, Schema } from "effect/index";
|
2
|
+
import { FileSystem, Path } from "@effect/platform";
|
3
|
+
import { Config, lucyJsonName } from "../config.js";
|
4
|
+
import { logger } from "../utils/logger.js";
|
5
|
+
import { AppError } from "../error.js";
|
6
|
+
import { JsonSchema } from "../schemas/index.js";
|
7
|
+
export const isDirectoryClean = (excludes = []) => {
|
8
|
+
return Effect.gen(function* () {
|
9
|
+
const fs = yield* FileSystem.FileSystem;
|
10
|
+
const config = yield* Config;
|
11
|
+
const files = yield* fs.readDirectory(config.config.cwd);
|
12
|
+
const allExcludes = [...excludes, '.git', lucyJsonName];
|
13
|
+
const filteredFiles = files.filter(file => !allExcludes.includes(file));
|
14
|
+
return filteredFiles.length > 0 ? false : true;
|
15
|
+
});
|
16
|
+
};
|
17
|
+
export const checkForDirty = (excludes = []) => {
|
18
|
+
return Effect.gen(function* () {
|
19
|
+
const config = yield* Config;
|
20
|
+
const clean = yield* isDirectoryClean(excludes);
|
21
|
+
if (!clean && !config.config.force) {
|
22
|
+
logger.alert("The current directory is not empty. Please run this command in an empty directory.");
|
23
|
+
yield* Effect.fail(new AppError({ message: "Directory is not clean", cause: new Error("Directory is not clean") }));
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
if (config.config.lucySettings.initialized && !config.config.force) {
|
27
|
+
logger.alert("Lucy is already initialized in this directory. Use --force to reinitialize.");
|
28
|
+
yield* Effect.fail(new AppError({ message: "Lucy is already initialized in this directory", cause: new Error("Lucy is already initialized in this directory") }));
|
29
|
+
return;
|
30
|
+
}
|
31
|
+
if ((!clean && config.config.force) || (config.config.lucySettings.initialized && config.config.force))
|
32
|
+
logger.alert("Forced initialization!");
|
33
|
+
});
|
34
|
+
};
|
35
|
+
export const checkForVelo = () => {
|
36
|
+
return Effect.gen(function* () {
|
37
|
+
const config = yield* Config;
|
38
|
+
const fs = yield* FileSystem.FileSystem;
|
39
|
+
const path = yield* Path.Path;
|
40
|
+
const wixConfigPath = path.join(config.config.cwd, 'wix.config.json');
|
41
|
+
const wixConfigRaw = yield* fs.readFileString(wixConfigPath);
|
42
|
+
const wixConfigJSON = (yield* Schema.decodeUnknown(JsonSchema)(wixConfigRaw));
|
43
|
+
if (!(wixConfigJSON.siteId))
|
44
|
+
return yield* Effect.fail(new AppError({ message: "This directory is not a Velo project. Please run this command in a Velo project directory.", cause: new Error("Not a Velo project") }));
|
45
|
+
});
|
46
|
+
};
|
47
|
+
//# sourceMappingURL=checks.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../src/commands/checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAE,CAAC,WAAqB,EAAE,EAAE,EAAE;IACvD,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;QACxC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;QAE7B,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,WAAW,GAAG,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;QACxD,M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,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YAAE,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;IAClJ,CAAC,CAAC,CAAC;AACP,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC7B,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;QAC7B,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;QACxC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAE9B,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;QACtE,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAC7D,MAAM,aAAa,GAAE,CAAE,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,YAAY,CAAC,CAAQ,CAAC;QAErF,IAAG,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC;YAAE,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,EAAE,OAAO,EAAE,4FAA4F,EAAE,KAAK,EAAE,IAAI,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3N,CAAC,CAAC,CAAC;AACP,CAAC,CAAA"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { FileSystem, Path } from "@effect/platform";
|
4
|
+
export declare const cleanup: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { FileSystem, Path } from "@effect/platform";
|
4
|
+
export const cleanup = Effect.gen(function* () {
|
5
|
+
const config = yield* Config;
|
6
|
+
const fs = yield* FileSystem.FileSystem;
|
7
|
+
const path = yield* Path.Path;
|
8
|
+
yield* fs.remove(path.join(config.config.cwd, "package-lock.json"), { force: true });
|
9
|
+
});
|
10
|
+
//# sourceMappingURL=cleanup.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../src/commands/cleanup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACvC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IAE9B,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,mBAAmB,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;AACxF,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Path } from "@effect/platform";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
import { Config } from "../config.js";
|
5
|
+
export declare const copyTemplateFiles: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
|
6
|
+
export declare const copySyncFiles: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Path } from "@effect/platform";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
import { Config, syncDataName, syncFilesSource } from "../config.js";
|
5
|
+
export const copyTemplateFiles = Effect.gen(function* () {
|
6
|
+
const fs = yield* FileSystem.FileSystem;
|
7
|
+
const config = yield* Config;
|
8
|
+
const path = yield* Path.Path;
|
9
|
+
const templateFiles = yield* fs.readDirectory(config.config.templateFiles);
|
10
|
+
yield* Effect.forEach(templateFiles, (file) => fs.copy(path.join(config.config.templateFiles, file), path.join(config.config.cwd, file), { overwrite: true }));
|
11
|
+
});
|
12
|
+
export const copySyncFiles = Effect.gen(function* () {
|
13
|
+
const fs = yield* FileSystem.FileSystem;
|
14
|
+
const config = yield* Config;
|
15
|
+
const path = yield* Path.Path;
|
16
|
+
const synDataFiles = yield* fs.readDirectory(syncFilesSource);
|
17
|
+
yield* fs.makeDirectory(path.join(config.config.cwd, syncDataName));
|
18
|
+
yield* Effect.forEach(synDataFiles, (file) => fs.copy(path.join(syncFilesSource, file), path.join(config.config.cwd, syncDataName, file), { overwrite: true }));
|
19
|
+
});
|
20
|
+
//# sourceMappingURL=copy.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../src/commands/copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAErE,M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ACjB,YAAY,EACZ,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAC7H,CAAA;AACL,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
export declare const editJson: (json: any, keys: string[], values: string[] | Object[]) => Effect.Effect<void, never, Config>;
|
5
|
+
export declare const mergeLucySettings2PackageJson: Effect.Effect<void, never, Config>;
|
6
|
+
export declare const setModule: Effect.Effect<void, never, Config>;
|
7
|
+
export declare const mergeAdditions: Effect.Effect<void, never, Config>;
|
8
|
+
export declare const setProjectName: Effect.Effect<void, never, Config>;
|
9
|
+
export declare const setInitialized: Effect.Effect<void, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, FileSystem.FileSystem>;
|
10
|
+
export declare const stringReplace: (filePath: string, keys: string[], values: string[]) => Effect.Effect<void, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem>;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { Effect, Schema } from "effect/index";
|
2
|
+
import { Config, lucyJsonPath } from "../config.js";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
import { logger } from "../utils/logger.js";
|
5
|
+
import { JsonSchema } from "../schemas/index.js";
|
6
|
+
export const editJson = (json, keys, values) => {
|
7
|
+
return Effect.gen(function* () {
|
8
|
+
const config = yield* Config;
|
9
|
+
for (const key of keys) {
|
10
|
+
const index = keys.indexOf(key);
|
11
|
+
const value = values[index];
|
12
|
+
json[key] = value;
|
13
|
+
}
|
14
|
+
});
|
15
|
+
};
|
16
|
+
export const mergeLucySettings2PackageJson = Effect.gen(function* () {
|
17
|
+
const config = yield* Config;
|
18
|
+
const lucySettings = config.config.lucySettings;
|
19
|
+
const packageJson = config.config.packageJson;
|
20
|
+
if (Object.keys(lucySettings.scripts).length > 0) {
|
21
|
+
yield* editJson(packageJson, ['scripts'], [{ ...packageJson.scripts, ...lucySettings.scripts }]);
|
22
|
+
}
|
23
|
+
});
|
24
|
+
export const setModule = Effect.gen(function* () {
|
25
|
+
const config = yield* Config;
|
26
|
+
const lucySettings = config.config.lucySettings;
|
27
|
+
const packageJson = config.config.packageJson;
|
28
|
+
yield* editJson(packageJson, ['type'], ['module']);
|
29
|
+
});
|
30
|
+
export const mergeAdditions = Effect.gen(function* () {
|
31
|
+
const config = yield* Config;
|
32
|
+
const lucySettings = config.config.lucySettings;
|
33
|
+
const packageJson = config.config.packageJson;
|
34
|
+
config.config.packageJson = {
|
35
|
+
...packageJson,
|
36
|
+
...lucySettings.additionalPkgProps,
|
37
|
+
};
|
38
|
+
});
|
39
|
+
export const setProjectName = Effect.gen(function* () {
|
40
|
+
const config = yield* Config;
|
41
|
+
const packageJson = config.config.packageJson;
|
42
|
+
yield* editJson(packageJson, ["name"], [config.config.projectName]);
|
43
|
+
});
|
44
|
+
export const setInitialized = Effect.gen(function* () {
|
45
|
+
const fs = yield* FileSystem.FileSystem;
|
46
|
+
const lucyRaw = yield* fs.readFileString(lucyJsonPath);
|
47
|
+
const lucyJSON = (yield* Schema.decodeUnknown(JsonSchema)(lucyRaw));
|
48
|
+
lucyJSON.initialized = true;
|
49
|
+
yield* fs.writeFileString(lucyJsonPath, JSON.stringify(lucyJSON, null, 2));
|
50
|
+
});
|
51
|
+
export const stringReplace = (filePath, keys, values) => {
|
52
|
+
return Effect.gen(function* () {
|
53
|
+
const fs = yield* FileSystem.FileSystem;
|
54
|
+
let modifiedContent = '';
|
55
|
+
logger.action(`Replacing ${keys} with ${values} in ${filePath}`);
|
56
|
+
const data = yield* fs.readFileString(filePath, 'utf8');
|
57
|
+
for (const key of keys) {
|
58
|
+
const index = keys.indexOf(key);
|
59
|
+
const value = values[index];
|
60
|
+
const regex = new RegExp(`${key}`, 'g');
|
61
|
+
modifiedContent = data.replace(regex, `${value}`);
|
62
|
+
}
|
63
|
+
yield* fs.writeFileString(filePath, modifiedContent);
|
64
|
+
logger.info(`Updated file ${filePath}`);
|
65
|
+
});
|
66
|
+
};
|
67
|
+
//# sourceMappingURL=edit.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../src/commands/edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAQ,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAS,EAAE,IAAc,EAAE,MAA2B,EAAE,EAAE;IAC/E,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;QAE7B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAC,CAAC;YAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAChC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACnB,CAAC;IACC,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC7D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM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AAQ,EAAE,MAAM,CAAC,CAAC;QACxD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAC,CAAC;YAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAChC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;YACxC,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACnD,CAAC;QACK,KAAK,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;QACrD,MAAM,CAAC,IAAI,CAAC,gBAAgB,QAAQ,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAA;AACN,CAAC,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
import { AppError } from "../error.js";
|
5
|
+
export declare const execCommand: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/CommandExecutor").CommandExecutor>;
|
6
|
+
export declare const open: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/CommandExecutor").CommandExecutor | FileSystem.FileSystem>;
|
7
|
+
export declare const openVSCode: Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError | import("effect/ParseResult").ParseError, Config | import("@effect/platform/CommandExecutor").CommandExecutor>;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { Effect, Schema } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { Command } from "@effect/platform/index";
|
4
|
+
import { logger } from "../utils/logger.js";
|
5
|
+
import { FileSystem } from "@effect/platform";
|
6
|
+
import Enquirer from "enquirer";
|
7
|
+
import { AppError } from "../error.js";
|
8
|
+
export const execCommand = Effect.gen(function* () {
|
9
|
+
const config = yield* Config;
|
10
|
+
const cmds = config.config.lucySettings.additionalCommands ?? [];
|
11
|
+
logger.info("Executing additional commands...", cmds);
|
12
|
+
if (cmds.length > 0) {
|
13
|
+
logger.info("Executing additional commands");
|
14
|
+
yield* Effect.all([
|
15
|
+
...cmds.map((cmd) => {
|
16
|
+
return Command.make(cmd[0], ...cmd.slice(1))
|
17
|
+
.pipe()
|
18
|
+
.pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
|
19
|
+
}),
|
20
|
+
]);
|
21
|
+
}
|
22
|
+
});
|
23
|
+
export const open = Effect.scoped(Effect.gen(function* () {
|
24
|
+
const config = yield* Config;
|
25
|
+
const fs = yield* FileSystem.FileSystem;
|
26
|
+
console.log("Opening Lucy home directory:", config.config.lucyHome);
|
27
|
+
let command;
|
28
|
+
switch (process.platform) {
|
29
|
+
case 'darwin':
|
30
|
+
command = Command.make('open', config.config.lucyHome);
|
31
|
+
break;
|
32
|
+
case 'win32':
|
33
|
+
command = Command.make('start', config.config.lucyHome);
|
34
|
+
break;
|
35
|
+
default:
|
36
|
+
command = Command.make('xdg-open', config.config.lucyHome);
|
37
|
+
break;
|
38
|
+
}
|
39
|
+
command.pipe().pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
|
40
|
+
yield* command.pipe().pipe(Command.stdout("inherit"), Command.stderr("inherit"), Command.exitCode);
|
41
|
+
}));
|
42
|
+
export const openVSCode = Effect.gen(function* () {
|
43
|
+
const config = yield* Config;
|
44
|
+
const open = Command.make("code", config.config.cwd).pipe(Command.stdout("inherit"), // Stream stdout to process.stdout
|
45
|
+
Command.stderr("inherit"), // Stream stderr to process.stderr
|
46
|
+
Command.exitCode // Get the exit code
|
47
|
+
);
|
48
|
+
const overwriteQuestion = new Enquirer();
|
49
|
+
const openVScodeQuestion = yield* Effect.tryPromise({
|
50
|
+
try: () => overwriteQuestion.prompt({
|
51
|
+
type: 'confirm',
|
52
|
+
name: 'openVSCode',
|
53
|
+
message: `Do you want to open the project in VSCode?`,
|
54
|
+
}),
|
55
|
+
catch: (e) => {
|
56
|
+
return new AppError({
|
57
|
+
cause: e,
|
58
|
+
message: "Error opening VSCode",
|
59
|
+
});
|
60
|
+
}
|
61
|
+
});
|
62
|
+
const choice = yield* Schema.decodeUnknown(Schema.Struct({ openVSCode: Schema.Boolean }))(openVScodeQuestion);
|
63
|
+
if (choice.openVSCode) {
|
64
|
+
yield* open;
|
65
|
+
}
|
66
|
+
});
|
67
|
+
//# sourceMappingURL=exec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../src/commands/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,kBAAkB,IAAI,EAAE,CAAC;IACjE,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,IAAI,CAAC,CAAC;IACtD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;QAC/C,KAAM,CAAC,CACL,MAAM,CAAC,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,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC9G,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACpB,KAAK,CAAC,CAAC,IAAI,CAAA;IACf,CAAC;AACL,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Effect } from 'effect/index';
|
2
|
+
import { SimpleGit } from 'simple-git';
|
3
|
+
import { Config } from '../config.js';
|
4
|
+
import { AppError } from '../error.js';
|
5
|
+
import { FileSystem, Path } from "@effect/platform";
|
6
|
+
export declare const isSubmoduleRegistered: (git: SimpleGit, submoduleName: string) => Effect.Effect<boolean, AppError, never>;
|
7
|
+
export declare const gitInit: (update?: boolean) => Effect.Effect<void, AppError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
|
8
|
+
export declare const initSubmodules: (update?: boolean) => Effect.Effect<void, AppError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path>;
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { Effect } from 'effect/index';
|
2
|
+
import { simpleGit } from 'simple-git';
|
3
|
+
import { Config } from '../config.js';
|
4
|
+
import { AppError } from '../error.js';
|
5
|
+
import { logger } from '../utils/logger.js';
|
6
|
+
import { FileSystem, Path } from "@effect/platform";
|
7
|
+
export const isSubmoduleRegistered = (git, submoduleName) => Effect.gen(function* () {
|
8
|
+
const value = yield* Effect.tryPromise({
|
9
|
+
try: () => git.getConfig(`submodule.${submoduleName}.url`),
|
10
|
+
catch: (error) => {
|
11
|
+
return new AppError({
|
12
|
+
cause: error,
|
13
|
+
message: "Failed to get submodule url",
|
14
|
+
});
|
15
|
+
}
|
16
|
+
});
|
17
|
+
return !!value.value;
|
18
|
+
});
|
19
|
+
export const gitInit = (update = false) => Effect.gen(function* () {
|
20
|
+
const config = yield* Config;
|
21
|
+
const git = simpleGit({ baseDir: config.config.cwd });
|
22
|
+
const path = yield* Path.Path;
|
23
|
+
const isGit = yield* Effect.tryPromise({
|
24
|
+
try: () => git.checkIsRepo(),
|
25
|
+
catch: (error) => {
|
26
|
+
return new AppError({
|
27
|
+
cause: error,
|
28
|
+
message: "Failed to check if the directory is a git repository",
|
29
|
+
});
|
30
|
+
}
|
31
|
+
});
|
32
|
+
if (!isGit) {
|
33
|
+
yield* Effect.tryPromise({
|
34
|
+
try: () => git.init(),
|
35
|
+
catch: (error) => {
|
36
|
+
return new AppError({
|
37
|
+
cause: error,
|
38
|
+
message: "Failed to initialize git repository",
|
39
|
+
});
|
40
|
+
}
|
41
|
+
});
|
42
|
+
}
|
43
|
+
if (!config.config.lucySettings.modules) {
|
44
|
+
logger.alert('No submodules defined in settings, skipping.');
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
yield* initSubmodules(update);
|
48
|
+
});
|
49
|
+
export const initSubmodules = (update = false) => Effect.gen(function* () {
|
50
|
+
const config = yield* Config;
|
51
|
+
const git = simpleGit({ baseDir: config.config.cwd });
|
52
|
+
const path = yield* Path.Path;
|
53
|
+
const fs = yield* FileSystem.FileSystem;
|
54
|
+
const gitmodulesPath = path.join(config.config.cwd, ".gitmodules");
|
55
|
+
for (const [name, repo] of Object.entries(config.config.lucySettings.modules)) {
|
56
|
+
logger.action(`Processing submodule ${name}`);
|
57
|
+
const clonePath = repo.path || path.join(config.config.lucySettings.defaultModulePath ?? '', name);
|
58
|
+
const isRegistered = yield* isSubmoduleRegistered(git, clonePath);
|
59
|
+
const isConfiguredInFile = (yield* fs.exists(gitmodulesPath)) && (yield* fs.readFileString(gitmodulesPath, 'utf-8')).includes(`[submodule "${clonePath}"]`);
|
60
|
+
if (!isConfiguredInFile || config.config.force) {
|
61
|
+
logger.action(`Adding/updating submodule ${name} at ${clonePath}...`);
|
62
|
+
// If git already has a config entry, we must use --force to repair it.
|
63
|
+
const submoduleArgs = () => {
|
64
|
+
if (update) {
|
65
|
+
return ['add', '--force', repo.source, clonePath];
|
66
|
+
}
|
67
|
+
return ['add', ...(config.config.force || isRegistered ? ['--force'] : []), repo.source, clonePath];
|
68
|
+
};
|
69
|
+
// await git.subModule(submoduleArgs);
|
70
|
+
yield* Effect.tryPromise({
|
71
|
+
try: () => git.subModule(submoduleArgs()),
|
72
|
+
catch: (error) => {
|
73
|
+
return new AppError({
|
74
|
+
cause: error,
|
75
|
+
message: "Failed to add submodule",
|
76
|
+
});
|
77
|
+
}
|
78
|
+
});
|
79
|
+
}
|
80
|
+
else {
|
81
|
+
logger.alert(`Submodule ${name} at ${clonePath} already registered. Skipping add.`);
|
82
|
+
}
|
83
|
+
yield* Effect.tryPromise({
|
84
|
+
try: () => git.submoduleUpdate(['--init', '--recursive', clonePath]),
|
85
|
+
catch: (error) => {
|
86
|
+
return new AppError({
|
87
|
+
cause: error,
|
88
|
+
message: "Failed to update submodule",
|
89
|
+
});
|
90
|
+
}
|
91
|
+
});
|
92
|
+
yield* Effect.tryPromise({
|
93
|
+
try: () => simpleGit({ baseDir: path.join(config.config.cwd, clonePath) }).checkout(repo.branch),
|
94
|
+
catch: (error) => {
|
95
|
+
return new AppError({
|
96
|
+
cause: error,
|
97
|
+
message: `Failed to checkout submodule ${repo} branch ${repo.branch}`,
|
98
|
+
});
|
99
|
+
}
|
100
|
+
});
|
101
|
+
}
|
102
|
+
logger.success("All modules processed!");
|
103
|
+
});
|
104
|
+
//# sourceMappingURL=git.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/commands/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,U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AAE,KAAK;wBACZ,OAAO,EAAE,yBAAyB;qBACrC,CAAC,CAAC;gBACP,CAAC;aACJ,CAAC,CAAA;QACN,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,KAAK,CAAC,aAAa,IAAI,OAAO,SAAS,oCAAoC,CAAC,CAAC;QACxF,CAAC;QAED,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;YACrB,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;YACpE,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;gBACb,OAAO,IAAI,QAAQ,CAAC;oBAChB,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,4BAA4B;iBACxC,CAAC,CAAC;YACP,CAAC;SACJ,CAAC,CAAA;QACF,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;YACrB,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;YAChG,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;gBACb,OAAO,IAAI,QAAQ,CAAC;oBAChB,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,gCAAgC,IAAI,WAAW,IAAI,CAAC,MAAM,EAAE;iBACxE,CAAC,CAAC;YACP,CAAC;SACJ,CAAC,CAAA;IACN,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAE7C,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
export declare const createLucyHome: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { FileSystem } from "@effect/platform";
|
4
|
+
import { logger, orange } from "../utils/logger.js";
|
5
|
+
import path from 'path';
|
6
|
+
export const createLucyHome = () => {
|
7
|
+
return Effect.gen(function* () {
|
8
|
+
const config = yield* Config;
|
9
|
+
const fs = yield* FileSystem.FileSystem;
|
10
|
+
if (!(yield* fs.exists(config.config.lucyHome))) {
|
11
|
+
logger.action(`Creating Lucy home directory at ${orange(config.config.lucyHome)}`);
|
12
|
+
yield* fs.makeDirectory(config.config.lucyHome, { recursive: true });
|
13
|
+
}
|
14
|
+
const templateFiles = yield* fs.readDirectory(config.config.filesFolder);
|
15
|
+
yield* Effect.forEach(templateFiles, (file) => fs.copy(path.join(config.config.filesFolder, file), path.join(config.config.lucyHome, file), { overwrite: true }));
|
16
|
+
});
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=home.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../src/commands/home.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,IAAc,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAC/B,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAA;QAC5B,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAA;QAEvC,IAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,mCAAmC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACnF,KAAK,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACzE,CAAC;QACD,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;QACxE,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CACjB,aAAa,EACb,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAC9H,CAAA;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Effect } from "effect/index";
|
2
|
+
import { Config } from "../config.js";
|
3
|
+
import { CommandExecutor } from "@effect/platform/CommandExecutor";
|
4
|
+
import { PlatformError } from "@effect/platform/Error";
|
5
|
+
export declare const installPackages: (workspace?: boolean) => Effect.Effect<void, PlatformError, Config | CommandExecutor>;
|
6
|
+
export declare const runInstall: Effect.Effect<void, PlatformError, Config | CommandExecutor>;
|
7
|
+
export declare const installVeloPackages: Effect.Effect<void, PlatformError, Config | CommandExecutor>;
|
8
|
+
export declare const approveBuilds: Effect.Effect<void, PlatformError, Config | CommandExecutor>;
|