How to develop a set of JS SDK? from scratch

Today, I received a task from the company to develop a set of front-end JS SDK, for multi-platform use, which at least supports webview for browsers and mobile phones.

I"m kind of a full stack myself. JS, has written about Node, and I have written about the front end. JQuery and React are also having a good time. But suddenly received the job of writing SDK, or a bit of a circle. I also understand the requirements, to put it bluntly, it is to get the data, process it, and release the interface for other developers to use. But when I really start to write, I still feel like I don"t know how to start.

excuse me, how to write a set of JS SDK? How to organize the code? What kind of workflow is used? How do you test it? How to package and release (we need to compress the code and do some confusion)?

ask the Great God for help and share some experience or learning materials. I would appreciate it.

Mar.07,2021

1: design specification
2: understand implementation details
3: write mock environment
4: code


how did you achieve it later, can you share it?

Menu