112 Commits

Author SHA1 Message Date
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
be28704cb1 feat(cli): add logging to config validation
The validateConfig function in the cli module has been updated to include logging. The logs show the locations where the component and shared module will be installed, as well as the import path for the shared module.
2024-06-07 00:11:12 +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
36c5def5a6 feat(cli): add shared field to Registry interface
A new field "shared" has been added to the Registry interface within the const.ts file located in the cli package. This extends the existing interface to hold more diverse data.
2024-06-06 23:55:43 +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
4afa28d07b refactor(cli): remove plugin from package.json
The commit removes the unnecessary "@oclif/plugin-plugins" from the plugin list within the cli's package.json file. This refactor enhances the code cleanliness, and potentially improves the cli performance by reducing the number of plugins loaded at runtime.
2024-06-06 23:16:51 +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
812cbb6efc refactor(cli): remove and update dependencies
This commit removes deprecated dependencies from the CLI and updates the yarn.lock file to reflect these changes. It also adds new dependencies that are needed for the project. The dependencies removed are "@types/mocha", "ansi-colors", "browser-stdout", "camelcase", "chokidar", "cliui", "debug", "decamelize", "diff", "find-up", "flat", "glob", "he", and "is-plain-obj". The dependencies added include "@types/treeify", "cli-cursor", "emoji-regex", "is-interactive", "is-unicode-supported",
2024-06-06 22:09:13 +09:00
c59c80007a feat(cli): add configuration and path management functionality
This commit introduces configuration and path management functionality in the CLI by adding the helper functions to load and validate configuration. It also provides the logic to retrieve available components from a given registry. Additionally, it exposes these functionalities in public API.
2024-06-06 22:07:19 +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