I am currently building a small CLI tool based on my current React project, Check Yo Self.
The app is a web interface for checking the spelling and grammar of your markdown blog posts. Currently, the app is text input only and using localStorage to keep text data. I plan to use Firebase for text storage and data persistence.
This is the first library I have ever attempted to build. This is also my first command line tool. I want to share some observations on doing a CLI tool and how to be more prepared to write one than me.
I cannot stress this enough. It took several read-throughs to understand what I was looking at and how I could use the APIs. If a library seems convoluted and hard to use, find a simpler library. Reading the docs is important to understanding the library author’s APIs and affordances which will make it a tad bit easier to write your own library.
I still have a hard time with this. I have been struggling with routing the components on the hamburger icon on Check Yo Self. It took me an embarrassingly long time to ask the library author for guidance. I made the offer a bit sweeter for him by explaining his docs weren’t friendly to newcomers and if he had time to help me I could help him by writing better docs for the project. I just did this tonight. We will see what the outcome of this is.
In the end, you’re building a project, learning about open source, and building a portfolio for potential employers. Don’t sweat the small stuff and have fun building your tool.
I know all of this. But, I tend to overthink a lot of what I am doing, adding scope creep and other unsavory yak shavings.↩