lucy-cli 2.0.0-beta.2 → 2.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.cursorignore +4 -0
  2. package/.wix/debug.log +10 -0
  3. package/dist/args.js +1 -2
  4. package/dist/args.js.map +1 -1
  5. package/dist/commands/checks.d.ts +1 -1
  6. package/dist/commands/edit.d.ts +1 -1
  7. package/dist/commands/exec.d.ts +1 -1
  8. package/dist/commands/exec.js +15 -13
  9. package/dist/commands/exec.js.map +1 -1
  10. package/dist/commands/install.d.ts +1 -0
  11. package/dist/commands/install.js +29 -16
  12. package/dist/commands/install.js.map +1 -1
  13. package/dist/commands/read.d.ts +3 -3
  14. package/dist/config.d.ts +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.js +0 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/init/blocks.d.ts +1 -1
  19. package/dist/init/blocks.js +2 -2
  20. package/dist/init/cargo.d.ts +1 -1
  21. package/dist/init/cargo.js +2 -2
  22. package/dist/init/expo.d.ts +1 -1
  23. package/dist/init/expo.js +2 -2
  24. package/dist/init/gitModules.d.ts +1 -1
  25. package/dist/init/index.d.ts +1 -1
  26. package/dist/init/index.js +7 -1
  27. package/dist/init/index.js.map +1 -1
  28. package/dist/init/monorepo.d.ts +1 -1
  29. package/dist/init/monorepo.js +2 -2
  30. package/dist/init/prepareVelo.d.ts +1 -1
  31. package/dist/init/tauri.d.ts +1 -1
  32. package/dist/init/tauri.js +2 -2
  33. package/dist/init/templates.d.ts +1 -1
  34. package/dist/init/velo.d.ts +1 -1
  35. package/dist/init/velo.js +3 -2
  36. package/dist/init/velo.js.map +1 -1
  37. package/dist/runtime.d.ts +1 -1
  38. package/dist/schemas/index.d.ts +1 -0
  39. package/dist/schemas/index.js +1 -0
  40. package/dist/schemas/index.js.map +1 -1
  41. package/dist/schemas/lucy.d.ts +2 -2
  42. package/dist/schemas/lucy.js +1 -1
  43. package/dist/schemas/lucy.js.map +1 -1
  44. package/dist/wix-sdk/index.d.ts +1 -1
  45. package/dist/wix-sdk/init.d.ts +1 -1
  46. package/dist/wix-sdk/run.d.ts +1 -1
  47. package/dist/wix-sync/index.d.ts +1 -1
  48. package/dist/wix-sync/init.d.ts +1 -1
  49. package/files/templates/block[D]/files/.cursorignore +4 -0
  50. package/files/templates/cargo[D]/files/.cursorignore +4 -0
  51. package/files/templates/expo[D]/files/.cursorignore +4 -0
  52. package/files/templates/monorepo[D]/files/.cursorignore +4 -0
  53. package/files/templates/tauri[D]/files/.cursorignore +4 -0
  54. package/files/templates/velo[D]/files/.cursorignore +4 -0
  55. package/files/templates/velo[D]/files/.yarnrc.yml +1 -2
  56. package/files/templates/velo[D]/lucy.json +1 -1
  57. package/lucy +4 -0
  58. package/mitarbeiter-login.html +188 -0
  59. package/package.json +9 -7
  60. package/src/args.ts +1 -2
  61. package/src/commands/exec.ts +22 -18
  62. package/src/commands/install.ts +41 -21
  63. package/src/index.ts +0 -1
  64. package/src/init/blocks.ts +2 -2
  65. package/src/init/cargo.ts +2 -2
  66. package/src/init/expo.ts +2 -2
  67. package/src/init/index.ts +7 -1
  68. package/src/init/monorepo.ts +2 -2
  69. package/src/init/tauri.ts +2 -2
  70. package/src/init/velo.ts +4 -3
  71. package/src/schemas/index.ts +2 -0
  72. package/src/schemas/lucy.ts +1 -1
package/src/init/velo.ts CHANGED
@@ -6,14 +6,14 @@ import { mergeAdditions, mergeLucySettings2PackageJson, setInitialized, setProje
6
6
  import { writeLucySettings, writePackageJson } from "../commands/write.js";
7
7
  import { copyTemplateFiles } from "../commands/copy.js";
8
8
  import { readPackageJson } from "../commands/read.js";
9
- import { installVeloPackages, runInstall } from "../commands/install.js";
9
+ import { installVeloPackages, runInstall, yarnSetVersion } from "../commands/install.js";
10
10
  import { cleanup } from "../commands/cleanup.js";
11
11
  import { gitInit } from "../commands/git.js";
12
12
  import { checkForVelo } from "../commands/checks.js";
13
13
  import { AppError } from "../error.js";
14
14
  import Enquirer from "enquirer";
15
15
  import { prepareVelo } from "./prepareVelo.js";
16
- import { openVSCode } from "../commands/exec.js";
16
+ import { openEditor } from "../commands/exec.js";
17
17
 
18
18
  export const init_velo = () => {
19
19
  return Effect.gen(function*() {
@@ -53,6 +53,7 @@ export const init_velo = () => {
53
53
  yield* writeLucySettings;
54
54
  yield* writePackageJson;
55
55
  yield* gitInit();
56
+ yield* runInstall;
56
57
  yield* installVeloPackages;
57
58
  yield* runInstall;
58
59
  yield* cleanup;
@@ -60,6 +61,6 @@ export const init_velo = () => {
60
61
 
61
62
  logger.success("Velo initialized successfully!");
62
63
 
63
- yield* openVSCode;
64
+ yield* openEditor;
64
65
  })
65
66
  }
@@ -13,3 +13,5 @@ export const wixSDKSettings = Schema.Struct({
13
13
  siteId: Schema.String,
14
14
  });
15
15
  export type WixSDKSettings = typeof wixSDKSettings.Type;
16
+
17
+ export const editors = ['vscode', 'cursor'] as const;
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect/index";
2
2
  import { initTypes } from "./types.js";
3
3
 
4
- export const pkgManagers = ['pnpm', 'npm', 'yarn'] as const;
4
+ export const pkgManagers = ['pnpm', 'yarn', 'npm'] as const;
5
5
  export const lucySettings = Schema.mutable(Schema.Struct({
6
6
  modules: Schema.Record({
7
7
  key: Schema.String,