mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
33 lines
429 B
Markdown
33 lines
429 B
Markdown
# TypeScript で書いたサーバーをワンライナーで構築してみよう
|
|
|
|
tsup
|
|
|
|
```
|
|
npx tsup main.ts --clean --onSuccess 'node dist/main.js'
|
|
```
|
|
|
|
tsup + watch
|
|
|
|
```
|
|
npx tsup main.ts --clean --watch --onSuccess 'node dist/main.js'
|
|
```
|
|
|
|
ts-node
|
|
|
|
```
|
|
npx ts-node-transpile-only main.ts
|
|
```
|
|
|
|
ts-node + watch
|
|
|
|
n/a
|
|
|
|
esbuild (esbuild-register)
|
|
|
|
```
|
|
node -r esbuild-register main.ts
|
|
```
|
|
|
|
esbuild (esbuild-register) + watch
|
|
|
|
n/a
|