sdp-transform
sdp-transform copied to clipboard
Switch to TypeScript
Details
- Switch to TypeScript (no need for
@types/sdp-transformanymore, which BTW has lot of incorrect and missing type definitions).- The
src/folder contains TypeScript code. - The
lib/folder contains transpiled JavaScript code.lib/folder is git ignored, however when publishing the NPM package, onlylib/folder is included into it. - Tests are moved to
src/test(but they are not included in the NPM package when publishing).
- The
- Modernize everything:
- Add TypeDoc to generate the website with full API documentation. I attach below a preview gif.
- The website is compiled when pushing to master branch and the resulting HTML site is available at https://clux.github.io/sdp-transform.
- Well, not exactly, GH pages must be activated in sdp-transform Settings.
- Check how I do it in my project rtp.js => API website: https://versatica.github.io/rtp.js/
- Simplify the
READMEfile so all the documentation is written in place within the source code above publicly exported functions and TypeScript types.
TypeDoc API documentation website (preview)
@clux, friendly ping.