This is an example of scaffolding for a library using TypeScript and Parcel.
IMPORTANT: The placeholders must be replaced with their actual values, please change occurrences of:
AndresCalimero
(GitHub user) andts-library-template
(repo name) in README.mdts-library-template
with the name of the library in package.json@andrescalimero
with the GitHub username in lowercase in package.jsonAndresCalimero
(GitHub user),ts-library-template
(repo name),Andres Calimero
(author name) andandrescalimero@hotmail.es
(author email) in package.jsonAndres Calimero
(author name) and2020
(year) in LICENSEAndresCalimero
(GitHub user) andts-library-template
(repo name) in CONTRIBUTING.md
Due to limitations in GitHub Actions you have to provide a GitHub PAT (Personal Access Token) if you want to publish the library and the documentation automatically on every release, to provide the PAT you have to set the variable ACCESS_TOKEN
in your repository's secrets with the token as the value. The token should have access to the repo
scope.
If you want your library to be published to NPM automatically you must set the variable NPM_TOKEN
in your repository's secrets. It should be a valid NPM personal token with the right permissions.