dctc
๐TypeScript Execute (tsx): Dynamically compile TSX/TS file and execute it. The easiest way to run .tsx in Nodejs.
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- github-packages.yml
- npm-publish.yml
- index.js
- index.js
- complie_es.js
- complie_rolldown.js
- complie_rollup.js
- complie_swc.js
- execute.js
- Footer.tsx
- Header.tsx
- index.tsx
- generate-html.bench.tsx
- generate-html.tsx
- perf.js
- test.ts
- .gitignore
- LICENSE
- package-lock.json
- package.json
- README.md
- SECURITY.md
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/SteamedBread2333/dctc
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd dctc
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. ๊ณต์ ์ค์น ์คํฌ๋ฆฝํธ
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
- Node.js npm ๋ช ๋ น์ด๋ฅผ ์ฐ๋ ค๋ฉด Node.js๊ฐ ์ค์น๋์ด ์์ด์ผ ํฉ๋๋ค.
npm install -g dctc
npm ๋ ์ง์คํธ๋ฆฌ์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ์ ์ญ์ผ๋ก ์ค์นํฉ๋๋ค. ์์ค ํด๋ก ์ด ํ์ ์์ต๋๋ค.
์ค์น ํ ์ ํฐ๋ฏธ๋์ ์ด๊ณ , ํ๋ก๊ทธ๋จ์ ๋ฒ์ ํ์ธ ๋ช
๋ น(์: --version)์ผ๋ก ์ ์ ์ค์น๋๋์ง ํ์ธํ์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
3. Node.js
์ฌ์์ฌ์ ์ค๋น๋ฌผ
npm install -g dctc
npm ๋ ์ง์คํธ๋ฆฌ์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ์ ์ญ์ผ๋ก ์ค์นํฉ๋๋ค. ์์ค ํด๋ก ์ด ํ์ ์์ต๋๋ค.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
