https://github.com/bradymholt/ts-node-scaffold
A scaffold for writing scripts in TypeScript and running them in Node.js
https://github.com/bradymholt/ts-node-scaffold
Last synced: 21 days ago
JSON representation
A scaffold for writing scripts in TypeScript and running them in Node.js
- Host: GitHub
- URL: https://github.com/bradymholt/ts-node-scaffold
- Owner: bradymholt
- License: mit
- Created: 2023-01-23T22:30:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T23:03:15.000Z (over 2 years ago)
- Last Synced: 2025-02-10T04:41:29.285Z (3 months ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-node-scaffold
A scaffold for writing scripts in TypeScript and running them in Node.js.
With this scaffold, after initially running `npm install`, you can just run `./main.ts` to run the `main.ts` TypeScript script. No intermediate `tsc` step or package.json scripts needed. [ts-node](https://typestrong.org/ts-node/) with a shebang is being used to simplify execution.
### Original Setup
When creating this scaffold, I ran these commands:```
npm init
npm install typescript ts-node
npx tsc --init
touch main.ts && chmod +x main.ts
```