generate.ts: update documentation and simplify workflow
Update the documentation and simplify the type generation workflow by
adding missing steps to the npm script. With this commit, `npm run
generate` will compile the typescript to JS, run the JS to actually
generate the LSP types, and format them via clang-formatter. It
previously just compiled the .ts files.
Note that npm automatically runs the pregeneration and postgeneration
steps when requesting the "generation" script.
Change-Id: Ice7340838351ed7fde972075bc62b94cade869cd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>