This repository template allows writing TypeScript packages in pure ESM, and publishing them to the JSR registry. It provides some default settings for a relatively zero-config startup.
First, create a new repository. Choose your method:
- GitHub UI: Click here to use this template. (Or, press "Use this template" button in the top-right corner)
- GitHub CLI:
# create a public or private repository from the template gh repo create --template neoncitylights/jsr --public --clone {{repository}} gh repo create --template neoncitylights/jsr --private --clone {{repository}}
Then, make sure to update the following:
./LICENSE: change{{author}}to your username or real name, whichever you prefer../deno.json: change the package name to your own../.github/workflows/publish.yml: Uncomment out the top so that the workflow will publish your package every time there's a commit pushed tomainbranch.- Delete this
README.mdfile, renameLIBRARY.mdtoREADME.md, and update with your own information.
deno fmt: Format filesdeno lint: Lint filesdeno lint --fix: Auto-apply lint fixes where possibledeno test: Run unit testsdeno check: Type-check code without executingdeno doc --lint: Lint the JSDoc in your source code before publishingdeno task doc: Generate HTML documentation from the entrypoint
This software is licensed under the MIT license (LICENSE or https://opensource.org/license/mit/).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.