Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bin/index.js): create lightweight CLI for managing DripUI components #37

Closed
wants to merge 1 commit into from

Conversation

tes-balo
Copy link

@tes-balo tes-balo commented Nov 2, 2022

πŸ› οΈ Fixes Issue

πŸ‘¨β€πŸ’» Changes proposed

  • create CLI for creating, modifying, and managing the DripUI components interactively
  • include demo video for using CLI in dripCLI documentation.
  • use only 2 dependencies ATM (inquirer & ansi-colors)
  • add prettier to enforce consistent coding style (will only apply to the js files).
  • bump version (minor semver upgrade). Reason: CLI feat has been implemented which warrants a minor version upgrade

βœ”οΈ Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

πŸ“„ Note to reviewers

  • I configured the prettier plugin to ignore all files except .js files since the CLI is based on JavaScript. I did this because I am not quite sure if there were any plans for configuring prettier (HTML, CSS, MD, etc) for this project.

TODOS

  • Firstly, the CLI is useful for creating new components as specified in the README. However, it can be potentially improved to include managing existing components interactively as well in the future.
  • Secondly, all the packages are called in the same file (bin/index.js) ATM. All the questions should live in bin/questions.js. Similarly, the colors should live in bin/colors.js. This is to keep the index.js file neat
  • Currently, there's no styling for the terminal outputs; the ansi-colors package should be used to style the terminal outputs

πŸ“· Screenshots

drip-cli-demo.mp4

* create CLI for creating, modifying and managing the DripUI components
  interactively
* include demo video for using CLI in dripCLI documentation.
* use only 2 dependencies ATM (inquirer & ansi-colors)
* add prettier to enforce consistent coding style
(will only applies to the js files).
* bump version (minor [semver](semver.org)). Reason:
CLI feat has been implemented which warrants a minor version upgrade
@vercel
Copy link

vercel bot commented Nov 2, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
drip-ui βœ… Ready (Inspect) Visit Preview Nov 2, 2022 at 10:25PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Create Drip CLI for managing components
1 participant