31 Commits

Author SHA1 Message Date
ea9b70bcc6 fix(cli): replace old getAvailableComponentNames to Object.keys 2024-06-15 03:43:23 +09:00
78fe5d9b0f fix(cli): replace old getAvailableComponentNames to Object.keys 2024-06-15 03:42:37 +09:00
17ea42fe48 fix(cli): use getDirComponentURL 2024-06-15 03:41:13 +09:00
ab95442de1 fix(cli): replace old getAvailableComponentNames to Object.keys 2024-06-15 03:40:52 +09:00
217410a507 fix(cli): use checkComponentInstalled and getDirComponentRequiredFiles 2024-06-15 03:29:18 +09:00
1902b9606a refactor(cli): rename files to requiredFiles of component 2024-06-15 03:01:48 +09:00
d721aa290f fix(cli): check installed check with required files 2024-06-15 02:59:23 +09:00
272fc89a92 feat(cli): list command handles directory library 2024-06-15 02:54:27 +09:00
66232b2b9a feat(cli): add command handles directory library & component installation 2024-06-15 02:33:30 +09:00
b3ebcb45ee feat(cli): make getRegistry take custom branch 2024-06-15 01:45:29 +09:00
7d2453b4cf feat(cli): make getRegistry take custom branch 2024-06-15 01:45:00 +09:00
aa074d16c1 fix: add everything for eslint fix 2024-06-14 22:47:39 +09:00
Shinwoo PARK
d8d61aceaa feat: add registry override flag 2024-06-13 19:43:24 +00:00
99773f11cc refactor(cli): simplify library installation process
Consolidated the process of installing the library in the "add" command. Simplified the path handling by using the dirname function. Also, the shared-file version dependent part has been removed. Library installation is now based on a singular registry url path instead of component specific versions.
2024-06-11 18:01:51 +09:00
8062f02a78 refactor(cli): update import statement in add command
The import statement in the add.tsx file of the CLI package has been updated to use the correct library name and version. This change ensures accurate reference to shared libraries, leading to better stability and interoperability.
2024-06-11 16:31:23 +09:00
556556251f feat(cli): refactor add command and improve module handling
Import additional helper methods in add.tsx. Remove forceShared flag as it could potentially break components. Instead of planning for a shared module, this commit plans for version-specific libraries, which exist in a separate lib folder. This ensures that the right version of the library required by the component is installed. Also, handle potential errors related to absence of lib version in the registry. Fixed component installation path.
2024-06-11 13:40:45 +09:00
0c79f86d80 refactor(cli): streamline component selection and overwrite process
Refactored the 'cli add' command to streamline the process of component selection and the decision to overwrite an already installed one. The task has been split into two separate interactive choices to enhance the user experience and simplify the codebase. The force option is now also evaluated separately which results in cleaner code.
2024-06-08 04:10:13 +09:00
ec9dfb9f40 feat(cli): migrate add command to react and implement search functionality
Renamed 'add.ts' to 'add.tsx' and converted it to a React component. This change includes implementing search functionality through installed components and handling the case if the component is already installed. Added search options and overwriting prompt in CLI interface.
2024-06-08 03:53:15 +09:00
0146162775 refactor(cli): update SearchBox props in search command
Changed the 'components' prop passed to 'SearchBox' in 'search.tsx' to have 'key' and 'displayName' properties instead of simple component names. This refactoring aims to better align with the expected prop structure.
2024-06-07 22:27:38 +09:00
e222b9f7a2 feat(cli): improve search command and user interaction
The search command in the CLI is enhanced to recognize search queries as command arguments. An improved interaction with the search box is also introduced, including key event handlers for up and down arrows and  escape key, allowing users to navigate more intuitively. keyboard-based selection of suggestions is now implemented and the helper message is updated to match these interaction changes.
2024-06-07 21:54:34 +09:00
4319053d5d feat(cli): add search command
A new command has been added to the CLI package to search for components. This command fetches the registry and lists accessible components through the SearchBox component. The SearchBox component has also been updated to show a helper text and a new styled border for better user interaction.
2024-06-07 21:36:25 +09:00
91d9b9f9f3 refactor(cli): normalize component name input
This change includes normalization of user input for component name by converting it to lowercase during the installation process. This is done to ensure that component names are not case sensitive and that any input will match the existing component names in the registry.
2024-06-07 19:00:50 +09:00
5f50d1d8f6 feat(cli): add realname resolution for components
The update enhances the CLI functionality by introducing the realname resolution for components. This is done in the 'list.ts' file, through a new helper function 'getComponentRealName' that is called whenever list of installed components is required. This ensures the correct identifiers are always considered, regardless of them being aliases or actual names.
2024-06-07 00:48:14 +09:00
593559f8b4 feat(cli): remove default path for config
The commit removes the default path for config in the CLI 'list' command. This change improves flexibility by allowing the user to define their own path without overriding the default one.
2024-06-07 00:34:43 +09:00
263bbcbaa4 refactor(cli): update validateConfig parameter in add and list commands
Replaced direct log reference in validateConfig function calls with an anonymous function that logs a message. This change has been made in the add and list commands of the CLI package to ensure proper logging.
2024-06-07 00:16:57 +09:00
a751336b84 feat(cli): add 'add' command
This commit introduces a new command 'add' to the CLI. The 'add' command allows users to add a component to the project with options for custom configurations, and it performs validation checks to ensure the component exists in the registry before installing.
2024-06-07 00:11:25 +09:00
acca348e1e feat(cli): handle registry fetching errors
This commit adds error handling for fetching operations from the registry in the CLI 'list' command. Now, any failure in retrieving the registry results in a failed spinner with a clear descriptive message, thus making the failure more apparent to the user.
2024-06-07 00:11:01 +09:00
d2ed474c9d style(cli): update list command description
The format of the list command description has been updated for consistency. A period has been added at the end of the description.
2024-06-06 23:17:22 +09:00
7e5759f8a2 feat(cli): add list command
This adds a new 'list' command in the CLI package to print all available components in the registry as well as components installed in the project. This command includes additional options to include component file URL and specify a custom path to the config file.
2024-06-06 22:09:26 +09:00
550e942162 feat: remove commands
This commit deletes all template commands and related tests from the CLI package. The template command implementation and its associated tests have been fully removed to make way for new feature implementation.
2024-06-06 19:05:41 +09:00
09a53e7d05 feat: add oclif template 2024-06-06 19:00:53 +09:00