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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4bce3-44e63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4bce3-44e63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?