Skip to content
/ jsr Public template

repository template for developing TypeScript packages for JSR

License

Notifications You must be signed in to change notification settings

neoncitylights/jsr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript package with JSR

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.

Getting started

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 to main branch.
  • Delete this README.md file, rename LIBRARY.md to README.md, and update with your own information.

Basic commands to know

  • deno fmt: Format files
  • deno lint: Lint files
  • deno lint --fix: Auto-apply lint fixes where possible
  • deno test: Run unit tests
  • deno check: Type-check code without executing
  • deno doc --lint: Lint the JSDoc in your source code before publishing
  • deno task doc: Generate HTML documentation from the entrypoint

Further reading

License

This software is licensed under the MIT license (LICENSE or https://opensource.org/license/mit/).

Contribution

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.

About

repository template for developing TypeScript packages for JSR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •