Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyrious/esbuild-dev
Just esbuild --watch.
https://github.com/hyrious/esbuild-dev
esbuild
Last synced: 17 days ago
JSON representation
Just esbuild --watch.
- Host: GitHub
- URL: https://github.com/hyrious/esbuild-dev
- Owner: hyrious
- License: mit
- Created: 2021-01-11T14:54:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T06:48:04.000Z (about 2 months ago)
- Last Synced: 2024-09-30T23:16:40.204Z (about 2 months ago)
- Topics: esbuild
- Language: TypeScript
- Homepage:
- Size: 3.04 MB
- Stars: 22
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## @hyrious/esbuild-dev
Build and run your `script.ts`, like `ts-node` or `node-dev`.
Require Node.js `^14.18 || >=16` to use `--enable-source-maps` and top-level await.
### Features
- ⚡ **_Fast_** with the help of esbuild, use `esbuild-dev` to substitute `ts-node`
- pros: checkout [this repo's actions](https://github.com/hyrious/esbuild-dev/actions),
`npm run build` done in 0.30s!
- cons: you won't get any type checking at all
- 🐛 **_Easy to Debug_** with the help of node's `--enable-source-maps`
- ✨ **_No Magic_** other than esbuild itself. the author refuses to use any `require.extensions`-like things### Install
```bash
npm i -g @hyrious/esbuild-dev esbuild
```> **Note:** esbuild is a peer dependency!
### Usage
```bash
esbuild-dev [--watch] main.ts
```[Read the docs to learn more.](https://hyrious.me/esbuild-dev)
### Develop
The source codes in the project is carefully written in a style that esbuild won't generate interop helpers. Refer [esbuild#1831](https://github.com/evanw/esbuild/issues/1831#issuecomment-992909043) to learn how.
### License
MIT @ [hyrious](https://github.com/hyrious)