TransWikia.com

How to start developing a well architected Javascript Library?

Software Engineering Asked by Saba Naeem on December 21, 2021

I want to start developing an. open-source javascript library. I can see other open-source libraries are well structured. They have src, dist, test kind of folders, etc.

Which is making me very confused. My end goal is i want to develop a well structured and well documented JS library, but initially i need some hierarchy and recommended tools which most of open-source famous library developers are using, because definitely if i will have a good and well structured library then contributors will join in all future planning.

Also i want to develop my library in modules like small files of each functionality and have tools automatically generate build/dist folder for whoever wants to use library and src folder easy to understand my structure for contributors.

Please feel free to ask me anything if you don’t understand what i mean.

Thank you

One Answer

In the "Javascript world", there isn't one broadly accepted standard for folders and project hierarchies. But there are tons of frameworks for different purposes, and several of them impose a specific folder layout.

So the best recommendation here I can give you here is: find a few other existing libs or frameworks of comparable size and / or purpose, pick one of which you think it's layout could work for your case and start with that. When your library grows, you will learn if the decision was fine, or you may have to change things over time, but that is ok, don't overthink it.

Answered by Doc Brown on December 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP