Template for creating typescript libraries
- Create a new repo in Github and clone it
- Add this repo as another origin
git remote add template [email protected]:tenfold/ts-library-template.git
git reset --hard template/master
- Modify
package.json
and other files to your specific needs - Enable the new repo in Drone and add the
codecov_token
secret. To get the token value go tohttps://codecov.io/gh/tenfold/<library-name>
When maintaining your library you can keep pulling this repo for new interesting changes. git fetch template && git merge template/master
- Commit any outstanding changes and push.
- Run
npm version patch
(you can also passminor
ormajor
)
You can either refer to a single version or with semver.
"some-package": "tenfold/your-library#v1.0.0",
"some-package-with-semver": "tenfold/your-library#semver:^v1.0.0",