djuepdq / ts

TS libraries and other code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS

TS libraries and other code

File structure

  • packages - TS packages
    • util - Utility functions
  • try - trying various TS code/libraries

Setup

Bun is used to run things.

bun i

Run

I use this repo to test TS code fast. Create a file run.ts in root, if you want to be able to run below command.

bun dev

Runs: tput reset && bun --watch run.ts

Tests

bun test:watch

Publish libraries

Warning I still don't know how to publish libraries in TS well. Below instructions are incomplete. If you know how to publish TS packages, please contact me on X ♥️

Thinking of trying this approach with Deno.

tsup src/index.ts --format esm --dts

Will create a dist folder out of exported functions.

Update version number in package.json and commit changes.

Then you can run:

npm publish

Deno

Exploring use of Deno in separate repo as it has interesting ideas/libraries. Might become part of this repo too.

Contribute

Always open to useful ideas or fixes in form of issues or PRs.

Can open new issue (search existing issues first) or start discussion.

It's okay to submit draft PR as you can get help along the way to make it merge ready.

Join Discord for more indepth discussions on this repo and others.

🖤

Inspired by nothing-but.

Support on GitHub or look into other projects.

Discord X nikiv.dev

About

TS libraries and other code

License:MIT License


Languages

Language:TypeScript 99.4%Language:JavaScript 0.5%Language:CSS 0.1%