An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

image

# 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)