https://github.com/semicognitive/es-package
A template for creating and publishing an ES module
https://github.com/semicognitive/es-package
bun deno javascript nodejs typescript
Last synced: about 1 year ago
JSON representation
A template for creating and publishing an ES module
- Host: GitHub
- URL: https://github.com/semicognitive/es-package
- Owner: semicognitive
- License: mit
- Created: 2023-01-27T20:29:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T21:53:16.000Z (over 3 years ago)
- Last Synced: 2025-04-03T16:52:32.068Z (about 1 year ago)
- Topics: bun, deno, javascript, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 50.8 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# es-package
The ultimate template for creating and publishing an ES module
Start by [using this template](https://github.com/semicognitive/es-package/generate)
## Why
- Fast iterating thanks to [Deno](https://deno.land/), for built in Typescript debugging and bundling
- Easily import into [Replit](https://replit.com/), for an instant dev environment
- I'm dogfooding it - using it [myself](https://github.com/semicognitive/thefuz)
- Immediately works for Deno, Bun, Node, Cloudflare Workers, etc.
- Publish to NPM in **_seconds_**
## Publish
Easily publish to [deno.land/x](https://deno.land/x) and [npm](https://npmjs.com)
### Deno
- Follow https://deno.land/add_module
- Create a [release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release)
### Npm
- Add a [action secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) of [`NPM_ACCESS_TOKEN`](https://docs.npmjs.com/creating-and-viewing-access-tokens#creating-access-tokens)
- Create a [release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release)