lucy-cli 2.0.0-beta.1 → 2.0.0-beta.3

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/.cursorignore ADDED
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
package/README.md CHANGED
@@ -1,46 +1,59 @@
1
1
  # Lucy-CLI
2
2
 
3
- ![Lucy-CLI](lucy.jpg)
3
+ <div style="float: right; margin: 0 0 30px 30px;">
4
+ <img src="lucy.jpg" alt="Lucy-CLI" width="200" height="200" style="border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);">
5
+ </div>
4
6
 
5
7
  ## Motivation
6
8
 
7
- Lucy-CLI was developed out of a personal need to gain full TypeScript support for Wix Velo projects. Typically, using Wixs GitHub integration provides JSON docs and basic type support, but I aimed for a more integrated TypeScript experience, especially for larger projects that benefit from enhanced type safety.
9
+ Lucy-CLI was developed out of a personal need to gain full TypeScript support for Wix Velo projects. Typically, using Wix's GitHub integration provides JSON docs and basic type support, but I aimed for a more integrated TypeScript experience, especially for larger projects that benefit from enhanced type safety.
8
10
 
9
11
  Lucy, my loyal dog, accompanied me during long nights working on a major project where I developed this CLI. Her companionship and resilience inspired the name "Lucy-CLI."
10
12
 
11
- ## CAUTION: Thing to keep in mind before using Lucy-CLI
13
+ ## Important Notes Before Using Lucy-CLI
12
14
 
13
15
  This CLI is still in development and may have bugs. Please use it with caution.
14
- Libraries are expected to have the same folder structure as the main typescript folder except for the pages folder.
15
- (backend, public, styles)
16
- The lucy CLI is opinionated and may not work with all projects.
17
16
 
18
- Yarn: Lucy-CLI is designed to work with yarn. It may not work with npm.
19
- Make sure you have yarn installed on your machine and it is set to version 3.
17
+ ### Project Types Overview
20
18
 
21
- ```bash
22
- yarn set <version>
23
- ```
24
-
25
- The composite and declaration tsconfig setting int need to be set to false in order to reexport types from the lib folder.
26
- This is not ideal but it is a limitation of the current version of the CLI.
19
+ Lucy-CLI supports multiple project types, each with different requirements and configurations:
27
20
 
28
- Importing backend endpoint into the frontend
29
- Please be aware that the backend endpoint should be imported with the following code:
21
+ #### Wix Velo Projects (`init velo`)
22
+ - **Purpose**: Full TypeScript support for Wix Velo development
23
+ - **Requirements**:
24
+ - Libraries must have the same folder structure as the main TypeScript folder (backend, public, styles)
25
+ - Composite and declaration tsconfig settings must be set to false for type reexport
26
+ - **Limitations**: Opinionated structure - may not work with all projects
30
27
 
31
- ``` javascript
28
+ **Backend Endpoint Import Pattern:**
29
+ ```javascript
32
30
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33
31
  //@ts-ignore
34
32
  import { initialize, InitResponse } from 'backend/lib/initialize.web';
35
33
  ```
36
34
 
35
+ #### Other Project Types
36
+ - **Expo** (`init expo`): React Native with Expo framework
37
+ - **Blocks** (`init blocks`): Wix Blocks development
38
+ - **Monorepo** (`init monorepo`): Nx-based monorepo setup
39
+ - **Tauri** (`init tauri`): Desktop applications with Tauri
40
+ - **Cargo** (`init cargo`): Rust projects
41
+ - **Wix SDK** (`init wix-sdk`): Wix SDK integration
42
+
43
+ ### Template System
44
+
45
+ Lucy-CLI uses a centralized template system located at `~/.lucy-cli` (your home directory). This folder contains:
46
+ - Default project configurations
47
+ - File structure templates for each project type
48
+ - Customizable settings and configurations
49
+
37
50
  ## Contributing
38
51
 
39
- Contribution are welcome, issue and pull request and I will merge it if i see it fit.
52
+ Contributions are welcome! Please submit issues and pull requests, and I will merge them if they fit the project's goals.
40
53
 
41
54
  ## What It Does
42
55
 
43
- Lucy-CLI is designed to streamline the setup and management of TypeScript within Wix Velo projects, providing tools to enhance code quality and reduce development time. Heres what it offers:
56
+ Lucy-CLI is designed to streamline the setup and management of TypeScript within Wix Velo projects, providing tools to enhance code quality and reduce development time. Here's what it offers:
44
57
 
45
58
  1. **ESLint Configuration**
46
59
  - Adds ESLint with a default configuration (customizable post-init) to maintain consistent code style and prevent common errors.
@@ -55,7 +68,7 @@ Lucy-CLI is designed to streamline the setup and management of TypeScript within
55
68
  - Includes support for git submodules, providing full type support within submodules and enabling the use of libraries and types across projects.
56
69
  - To add a submodule, include the following in the `lucy.json` file:
57
70
 
58
- ``` json
71
+ ```json
59
72
  "modules": {
60
73
  "<repoName>": {
61
74
  "url": "String",
@@ -69,124 +82,126 @@ Lucy-CLI is designed to streamline the setup and management of TypeScript within
69
82
  5. **Configurable Setup**
70
83
  - After initialization, Lucy-CLI creates a `lucy-config.json` configuration file where you can modify settings, add dev packages, specify Wix packages, and configure git submodules.
71
84
 
72
- 6. **Execute render functions**
85
+ 6. **Execute Render Functions**
73
86
  - Lucy-CLI can execute render functions located in the backend template folder, allowing you to test render functions locally.
74
87
 
75
- -7. **Compile SCSS files**
88
+ 7. **Compile SCSS Files**
76
89
  - Lucy-CLI can compile SCSS files to CSS files.
77
- - It compiles styles/global.scss file to global.css.
90
+ - It compiles the `styles/global.scss` file to `global.css`.
78
91
 
79
92
  8. **Wix NPM Package Installation**
80
93
  - Lucy-CLI can install Wix npm packages from the `lucy.json` file.
81
94
 
82
- -9. **Testing with Vitest**
95
+ 9. **Testing with Vitest**
83
96
  - Lucy-CLI can run tests with Vitest.
84
- - It runs tests located backend folder with the file name ending with `.spec.ts`.
85
- - it creates a code coverage report in the coverage folder in the lib folders and typescript folders.
86
- - Vitest is looking for mokes in typescript folder and lib folder.
87
- - You can add additional mock folders in vitest.config.ts file.
97
+ - It runs tests located in the backend folder with file names ending with `.spec.ts`.
98
+ - It creates a code coverage report in the coverage folder in the lib folders and TypeScript folders.
99
+ - Vitest looks for mocks in the TypeScript folder and lib folder.
100
+ - You can add additional mock folders in the `vitest.config.ts` file.
88
101
 
89
102
  10. **Linting with ESLint**
90
103
  - Lucy-CLI can lint the code with ESLint.
91
104
  - It uses the ESLint configuration in the `.eslintrc.cjs` file in the project directory.
92
105
 
93
- 11. **Add git version during production build**
106
+ 11. **Add Git Version During Production Build**
94
107
  - Lucy-CLI can add the git version to the production build.
95
- - It adds the git version to the `public/constant/env.ts` file in the public folder under the key gitTag.
96
- 12. **Use velo-sync to synchronize local collection with wix**
97
- - Lucy-CLI can synchronize the local collection with the wix collection.
108
+ - It adds the git version to the `public/constant/env.ts` file in the public folder under the key `gitTag`.
109
+
110
+ 12. **Use Velo-Sync to Synchronize Local Collections with Wix**
111
+ - Lucy-CLI can synchronize local collections with Wix collections.
98
112
  - More information can be found in the [velo-sync](https://www.npmjs.com/package/velo-sync) documentation.
99
113
 
100
114
  13. **Synchronize `package.json` with `lucy.json`**
101
- - Lucy-CLI can synchronize dependencies from your project's `package.json` directly into the `lucy.json` configuration. The `dependencies` are mapped to `wixPackages` and `devDependencies` are mapped to `devPackages`.
115
+ - Lucy-CLI can synchronize dependencies from your project's `package.json` directly into the `lucy.json` configuration. The `dependencies` are mapped to `wixPackages` and `devDependencies` are mapped to `devPackages`.
102
116
 
103
117
  14. **Manage CLI Templates**
104
- - Lucy-CLI uses a templates folder (`~/.lucy-cli`) to store default configurations and file structures for the `init` command. The `templates` command allows you to easily open and customize these templates.
118
+ - Lucy-CLI uses a templates folder (`~/.lucy-cli`) to store default configurations and file structures for the `init` command. Use the `open` command to access and customize these templates.
105
119
 
106
120
  ## Commands & Options
107
121
 
108
- Lucy-CLI comes with a range of commands and options to help manage your Wix Velo project. Here’s an overview:
109
-
110
- ### Commands
111
-
112
- - **`init`**: Initializes the current folder as a Wix project, creating essential configuration files.
113
- - **`dev`**: Starts the development environment, including setting up any required services for local development.
114
- - **`build-prod`**: Builds the project in production mode, optimizing files for deployment.
115
- - **`prepare`**: Re-runs initialization commands, useful for setting up a pre-configured environment.
116
- - **`velo-sync`**: Synchronizes Wix collections.
117
- - **`install`**: Installs all Wix and dev npm packages listed in the `lucy.json` file.
118
- - **`fix`**: Runs a fix command to resolve common issues in development or production settings.
119
- - **`docs`**: Generates documentation for the project.
120
- - **`cypress`**: Starts the Cypress test runner.
121
- - **`templates`**: Opens the Lucy CLI templates folder.
122
- - **`sync-pkgs`**: Synchronizes dependencies from `package.json` to `lucy.json`.
123
- - **🦮 `e2e`**: Starts the Cypress test runner in CI mode.
124
- **Usage:** `e2e <someKey> <someID>`
125
- - **`someKey`**: The key for the test.
126
- - **`someID`**: The build ID for the test.
127
-
128
- ### Options
129
-
130
- - **`-h, help`**: Displays the help message with command descriptions.
131
- - **`-v, version`**: Shows the current version of Lucy-CLI as defined in the project’s `package.json`.
132
- - **`-f, force`**: Forces specific commands to execute, useful for deleting obsolete pages or initializing missing components.
133
- - **`-l`**: Locks package versions to those specified in the configuration file during installation.
122
+ Lucy-CLI comes with a comprehensive set of commands and options. Use `lucy-cli -h` to see a complete overview of all available commands and options.
123
+
124
+ ### Main Commands
125
+
126
+ - **`init <type>`**: Initialize a new Lucy project with the specified type
127
+ - **Types**: `velo`, `expo`, `blocks`, `monorepo`, `tauri`, `cargo`, `wix-sdk`
128
+ - **`open`**: Open the Lucy home directory
129
+ - **`task <name>`**: Run a specific task
130
+ - **`wix-sync <action>`**: Run velo-sync actions
131
+ - **`wix-sdk <action>`**: Run Wix SDK actions
132
+
133
+ ### Available Tasks
134
+
135
+ - **`dev`**: Start development environment
136
+ - **`build`**: Build the project
137
+ - **`build-prod`**: Build for production
138
+ - **`build-pipeline`**: Build pipeline
139
+ - **`sync-settings`**: Sync settings
140
+
141
+ ### Wix Sync Actions
142
+
143
+ - **`sync`**: Synchronize collections
144
+ - **`import`**: Import data from CSV
145
+ - **`init`**: Initialize sync configuration
146
+ - **`is-alive`**: Check if sync is alive
147
+ - **`migrate`**: Migrate data
148
+ - **`export`**: Export data
149
+
150
+ ### Project Types
151
+
152
+ - **`velo`**: Wix Velo project
153
+ - **`expo`**: React Native with Expo
154
+ - **`blocks`**: Wix Blocks
155
+ - **`monorepo`**: Monorepo setup
156
+ - **`tauri`**: Tauri desktop app
157
+ - **`cargo`**: Rust project
158
+ - **`wix-sdk`**: Wix SDK setup
159
+
160
+ ### Global Options
161
+
162
+ - **`-h, --help`**: Show comprehensive help message with all commands and options
163
+ - **`-v, --version`**: Show version number
164
+ - **`-f, --force`**: Force execution (use with caution)
134
165
 
135
166
  ## Examples
136
167
 
137
168
  Here are some example commands to get started with Lucy-CLI:
138
169
 
139
170
  ```bash
140
- # Initialize a new Wix project
141
- lucy-cli init
171
+ # Get comprehensive help overview
172
+ lucy-cli -h
173
+
174
+ # Initialize a new Wix Velo project
175
+ lucy-cli init velo
142
176
 
143
177
  # Start the development environment
144
- lucy-cli dev
178
+ lucy-cli task dev
145
179
 
146
180
  # Synchronize database and settings
147
- lucy-cli sync
181
+ lucy-cli task sync-settings
148
182
 
149
- # Install Wix npm packages from 'lucy.json' with locked versions
150
- lucy-cli install -l
183
+ # Run velo-sync import with CSV file
184
+ lucy-cli wix-sync import -i data.csv -c myCollection
151
185
 
152
186
  # Force start the dev environment
153
- lucy-cli dev -f
154
-
155
- # get help
156
- lucy-cli help
157
-
158
- 🦮 Lucy CLI Help
159
- Usage: lucy-cli <command> [options]
160
-
161
- Commands:
162
- 🦮 init : Initializes a WIX project to enable full TS support.
163
- 🦮 dev : Starts the development environment. This includes setting up any required services for local development.
164
- 🦮 build-prod : Builds the project in production mode, optimizing files for deployment.
165
- 🦮 prepare : Prepares the project by installing packages & initializing git modules, configured in lucy.json.
166
- 🦮 velo-sync : Synchronizes Wix collections (run `velo-sync -h` for help).
167
- 🦮 install : Installs all Wix and dev npm packages listed in the 'lucy.json' file.
168
- 🦮 fix : Runs a fix command to resolve common issues in development or production settings.
169
- 🦮 docs : Generates documentation for the project.
170
- 🦮 cypress : Starts the cypress test runner.
171
- 🦮 templates : Opens the Lucy CLI templates folder.
172
- 🦮 sync-pkgs : Syncs dependencies from package.json to lucy.json.
173
- 🦮 e2e : Starts the cypress test runner in CI mode. Usage: `e2e <key> <buildId>`
174
-
175
- Options:
176
- 🦮 -h, help : Displays this help message.
177
- 🦮 -v, version : Displays the current version of Lucy CLI as defined in the project’s package.json.
178
- 🦮 -f, force : Forces specific commands to execute even if they may lead to potential issues.
179
- Used for functions like deleting obsolete pages or initializing missing components.
180
- 🦮 -l : Locks package versions to those specified in `lucy.json` during installation.
181
-
182
- Examples:
183
- 🦮 lucy-cli init : Initializes a new Wix project.
184
- 🦮 lucy-cli dev : Starts the development environment.
185
- 🦮 lucy-cli sync : Synchronizes database and settings.
186
- 🦮 lucy-cli install : Installs all Wix and dev npm packages from 'lucy.json'.
187
- 🦮 lucy-cli dev -f : Starts the dev environment with forced settings.
188
- 🦮 lucy-cli install -l : Installs Wix npm packages, respecting locked versions specified in the configuration.
187
+ lucy-cli task dev -f
188
+
189
+ # Check Wix sync status
190
+ lucy-cli wix-sync is-alive
189
191
  ```
190
192
 
193
+ ## Enhanced Help System
194
+
195
+ Lucy-CLI now provides a comprehensive help overview when you use the `-h` or `--help` flag. This includes:
196
+
197
+ - 📋 Complete list of all available commands
198
+ - 🔧 Available tasks with descriptions
199
+ - 🔄 Wix sync actions with explanations
200
+ - ⚙️ Global options and their usage
201
+ - 📁 Project types for initialization
202
+ - 🦮 Emoji-enhanced interface for better readability
203
+
204
+ The help system dynamically shows all available options based on your current configuration and provides clear examples for each command.
205
+
191
206
  If you find Lucy-CLI useful, consider supporting the project:
192
207
  [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/gradlon)
package/dist/args.js CHANGED
@@ -70,7 +70,48 @@ export async function get_args() {
70
70
  .alias('h', 'help')
71
71
  .strict()
72
72
  .wrap(yargs().terminalWidth())
73
- .epilogue('For more information, visit https://github.com/your-repo/wix-lucy-cli')
73
+ .epilogue(`
74
+ 🦮 Lucy CLI - Complete Command Overview
75
+
76
+ 📋 Available Commands:
77
+ init <type> Initialize a new Lucy project (types: ${initTypes.join(', ')})
78
+ open Open the Lucy home directory
79
+ task <name> Run a task (tasks: ${taskNames.join(', ')})
80
+ wix-sync <action> Run velo-sync actions (actions: ${syncActions.join(', ')})
81
+ wix-sdk <action> Run Wix SDK actions
82
+
83
+ 🔧 Available Tasks:
84
+ dev Start development environment
85
+ build Build the project
86
+ build-prod Build for production
87
+ build-pipeline Build pipeline
88
+ sync-settings Sync settings
89
+
90
+ 🔄 Wix Sync Actions:
91
+ sync Synchronize collections
92
+ import Import data from CSV
93
+ init Initialize sync configuration
94
+ is-alive Check if sync is alive
95
+ migrate Migrate data
96
+ export Export data
97
+
98
+ ⚙️ Global Options:
99
+ -h, --help Show this help message
100
+ -v, --version Show version number
101
+ -f, --force Force execution (use with caution)
102
+
103
+ 📁 Project Types:
104
+ velo Wix Velo project
105
+ expo React Native with Expo
106
+ blocks Wix Blocks
107
+ monorepo Monorepo setup
108
+ tauri Tauri desktop app
109
+ cargo Rust project
110
+ submodules Git submodules
111
+ wix-sdk Wix SDK setup
112
+
113
+ For more information, visit https://github.com/Sunnyside-UP-GmbH/lucy-cli
114
+ `)
74
115
  .parseAsync();
75
116
  // The cast is now safer with the defined interface.
76
117
  return argv;
package/dist/args.js.map CHANGED
@@ -1 +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,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1C,KAAK,CAAC,+BAA+B,CAAC;SACtC,OAAO,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,CAAC,KAAK,EAAE,EAAE;QACnE,OAAO,K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AC3B,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;;;;6DAI2C,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;;0CAEvC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;uDACP,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAkCpE,CAAC;SACD,UAAU,EAAE,CAAC;IAElB,oDAAoD;IAEpD,OAAO,IAAgB,CAAC;AAC5B,CAAC"}
@@ -3,5 +3,5 @@ import { Config } from "../config.js";
3
3
  import { FileSystem } from "@effect/platform";
4
4
  import { AppError } from "../error.js";
5
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>;
6
+ export declare const open: Effect.Effect<void, import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | import("@effect/platform/CommandExecutor").CommandExecutor>;
7
+ export declare const openVSCode: Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/CommandExecutor").CommandExecutor>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- #!/usr/bin/env node
2
1
  import 'dotenv/config';
3
2
  export declare function setNeedsCleanup(value: boolean): void;
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import { Effect, pipe } from "effect";
3
2
  import { build_runtime } from "./runtime.js";
4
3
  import { get_args } from "./args.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,eAAe,CAAA;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,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AK,EAAE,EAAE;QAChB,MAAM,CAAC,KAAK,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACnE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,qBAAqB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACzE,CAAC;CACJ,CAAC,CACL,CAAA;AAED,KAAK,UAAU,IAAI;IACf,MAAM,IAAI,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACnC,+EAA+E;IAC/E,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAC5B,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,kCAAkC,KAAK,EAAE,CAC7D,CACR,CAAA;IACG,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AACrC,CAAC;AAED,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;IACb,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACf,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QACzB,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
@@ -2,4 +2,4 @@ import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { FileSystem, Path } from "@effect/platform";
4
4
  import { AppError } from "../error.js";
5
- export declare const init_blocks: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError | import("effect/ParseResult").ParseError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
5
+ export declare const init_blocks: () => Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -1,2 +1,2 @@
1
1
  import { Effect } from "effect/index";
2
- export declare const init_cargo: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError | import("../error.js").AppError | import("effect/ParseResult").ParseError, import("../config.js").Config | import("@effect/platform/CommandExecutor").CommandExecutor | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path>;
2
+ export declare const init_cargo: () => Effect.Effect<void, import("../error.js").AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, import("../config.js").Config | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -2,4 +2,4 @@ import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { FileSystem, Path } from "@effect/platform";
4
4
  import { AppError } from "../error.js";
5
- export declare const init_expo: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError | import("effect/ParseResult").ParseError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
5
+ export declare const init_expo: () => Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -1,4 +1,4 @@
1
1
  import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { AppError } from "../error.js";
4
- export declare const init: Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError | import("effect/ParseResult").ParseError, Config | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/CommandExecutor").CommandExecutor | import("@effect/platform/Path").Path>;
4
+ export declare const init: Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -1,4 +1,4 @@
1
1
  import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { FileSystem, Path } from "@effect/platform";
4
- export declare const init_monorepo: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError | import("../error.js").AppError | import("effect/ParseResult").ParseError, Config | Path.Path | FileSystem.FileSystem | import("@effect/platform/CommandExecutor").CommandExecutor>;
4
+ export declare const init_monorepo: () => Effect.Effect<void, import("../error.js").AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -2,4 +2,4 @@ import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { FileSystem, Path } from "@effect/platform";
4
4
  import { AppError } from "../error.js";
5
- export declare const init_tauri: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError | import("effect/ParseResult").ParseError, Config | FileSystem.FileSystem | import("@effect/platform/CommandExecutor").CommandExecutor | Path.Path>;
5
+ export declare const init_tauri: () => Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -2,4 +2,4 @@ import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { FileSystem, Path } from "@effect/platform";
4
4
  import { AppError } from "../error.js";
5
- export declare const init_velo: () => Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError | import("effect/ParseResult").ParseError, Config | import("@effect/platform/CommandExecutor").CommandExecutor | FileSystem.FileSystem | Path.Path>;
5
+ export declare const init_velo: () => Effect.Effect<void, AppError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, Config | FileSystem.FileSystem | Path.Path | import("@effect/platform/CommandExecutor").CommandExecutor>;
@@ -1,4 +1,4 @@
1
1
  import { Effect } from "effect/index";
2
2
  import { Config } from "../config.js";
3
3
  import { AppError } from "../error.js";
4
- export declare const tasks: Effect.Effect<void, import("@effect/platform/Error").PlatformError | AppError, Config | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path>;
4
+ export declare const tasks: Effect.Effect<void, AppError | import("@effect/platform/Error").PlatformError, Config | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path>;
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
@@ -0,0 +1,4 @@
1
+ wix-sync.json
2
+ wix-sdk-settings.json
3
+ .env
4
+ settings*
package/lucy ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node --no-warnings
2
+
3
+ // This is a wrapper script that runs the lucy-cli with warnings suppressed
4
+ import('./dist/index.js').catch(console.error);
package/lucy.jpg CHANGED
Binary file
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "2.0.0-beta.1",
4
+ "version": "2.0.0-beta.3",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "dev": "tsc -w",
10
- "postinstall": "patch-package"
10
+ "postinstall": "patch-package",
11
+ "start": "NODE_OPTIONS='--no-warnings' node dist/index.js"
11
12
  },
12
13
  "repository": {
13
14
  "type": "git",
14
- "url": "git+https://github.com/Integral-Systems/wix-lucy-cli.git"
15
+ "url": "git+https://github.com/Sunnyside-UP-GmbH/lucy-cli.git"
15
16
  },
16
17
  "keywords": [
17
18
  "WIX",
@@ -24,10 +25,10 @@
24
25
  "author": "Gradlon von Känel",
25
26
  "license": "GPL-3.0-or-later",
26
27
  "bugs": {
27
- "url": "https://github.com/Integral-Systems/wix-lucy-cli/issues"
28
+ "url": "https://github.com/Sunnyside-UP-GmbH/lucy-cli/issues"
28
29
  },
29
- "homepage": "https://github.com/Integral-Systems/wix-lucy-cli#readme",
30
- "bin": "./dist/index.js",
30
+ "homepage": "https://github.com/Sunnyside-UP-GmbH/lucy-cli#readme",
31
+ "bin": "./lucy",
31
32
  "publishConfig": {
32
33
  "registry": "https://registry.npmjs.org"
33
34
  },
package/src/args.ts CHANGED
@@ -72,7 +72,48 @@ export async function get_args(): Promise<LucyArgs> {
72
72
  .alias('h', 'help')
73
73
  .strict()
74
74
  .wrap(yargs().terminalWidth())
75
- .epilogue('For more information, visit https://github.com/your-repo/wix-lucy-cli')
75
+ .epilogue(`
76
+ 🦮 Lucy CLI - Complete Command Overview
77
+
78
+ 📋 Available Commands:
79
+ init <type> Initialize a new Lucy project (types: ${initTypes.join(', ')})
80
+ open Open the Lucy home directory
81
+ task <name> Run a task (tasks: ${taskNames.join(', ')})
82
+ wix-sync <action> Run velo-sync actions (actions: ${syncActions.join(', ')})
83
+ wix-sdk <action> Run Wix SDK actions
84
+
85
+ 🔧 Available Tasks:
86
+ dev Start development environment
87
+ build Build the project
88
+ build-prod Build for production
89
+ build-pipeline Build pipeline
90
+ sync-settings Sync settings
91
+
92
+ 🔄 Wix Sync Actions:
93
+ sync Synchronize collections
94
+ import Import data from CSV
95
+ init Initialize sync configuration
96
+ is-alive Check if sync is alive
97
+ migrate Migrate data
98
+ export Export data
99
+
100
+ ⚙️ Global Options:
101
+ -h, --help Show this help message
102
+ -v, --version Show version number
103
+ -f, --force Force execution (use with caution)
104
+
105
+ 📁 Project Types:
106
+ velo Wix Velo project
107
+ expo React Native with Expo
108
+ blocks Wix Blocks
109
+ monorepo Monorepo setup
110
+ tauri Tauri desktop app
111
+ cargo Rust project
112
+ submodules Git submodules
113
+ wix-sdk Wix SDK setup
114
+
115
+ For more information, visit https://github.com/Sunnyside-UP-GmbH/lucy-cli
116
+ `)
76
117
  .parseAsync();
77
118
 
78
119
  // The cast is now safer with the defined interface.
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import { Effect, pipe} from "effect";
3
2
  import { build_runtime } from "./runtime.js";
4
3
  import { get_args } from "./args.js";