1.0.0 • Published 1 year ago

@7sne/project-setup v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

📢 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 scriptdescription
buildCompile TypeScript source code to JavaScript
lintTypecheck, lint and format TypeScript source code
serveRun TypeScript source code directly with ts-node
startRun compiled JavaScript code
testRun tests with Mocha

License

MIT