Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

bobaekang/minimal-typescript-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📢 NOTE: If your goal is to simply learn and play with TypeScript, which is what this repo was created to facilitate, just use Deno 🦕. Deno is a new JavaScript runtime that supports TypeScript out of the box, ships as a single executable, has built-in support for linting, formatting and testing, and offers even more!

Minimal TypeScript project setup for curious minds

License: MIT

This repository contains a simple setup for Node.js project with TypeScript. Feel free to take a look around the source code and step-by-step commit history, clone and fork the repo to try it out, and open Issues to share your suggestions for improvements.

Please refer to this blog post for a detailed explanation.

Project setup

git clone https://github.com/bobaekang/minimal-typescript-setup.git
cd minimal-typescript-setup

npm install

Project structure

/
/dist   <- compiled JavaScript code goes here
/src    <- TypeScript source code lives here
/test   <- test files (**.test.ts) live     here

Main dependencies

npm scripts

npm script description
build Compile TypeScript source code to JavaScript
lint Typecheck, lint and format TypeScript source code
serve Run TypeScript source code directly with ts-node
start Run compiled JavaScript code
test Run tests with Mocha

License

MIT

About

Minimal TypeScript project setup for curious minds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published