Template for bootstrapping typescript libraries. It is based on typescript-starter and the modifications done for @eturino/ts-key-set
. It is quite quick-and-dirty, should be eventually replaced by a proper fork of typescript-starter
.
- Get the contents of this repo into an empty repository. You can do it by forking this repo, cloning it and remove
.git
or by cloning this in a local folder and copying all files (include the hidden files). cd
into the folder with the new contents.yarn
. This will install dependencies, included the dependencies needed forprepare-lib
. You can also check withyarn outdated
to see if there are updates that you could perform at this point.- Run
./prepare-lib.js
(executable node file) - Enter all the info requested and confirm the modifications of the files. This will modify the files and replace this README with the README for the lib.
- Make an initial commit with all these changes.
- Replace
src/my-lib
with your lib files, and replacesrc/index.ts
to call your new lib files. - Make a commit using
commitizen
(see https://github.com/bitjson/typescript-starter#bump-version-update-changelog-commit--tag-release)