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
When maintaining your library you can keep pulling this repo for new interesting changes. git fetch template && git merge template/master
- Update version in
package.json
- Commit and push - and wait for build to pass
- Run
npm run publish
- this will push a tag in formatvX.Y.Z
with a version frompackage.json
.
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",