@7sne/project-setup

1.0.0 • Public • Published

📢 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

Package Sidebar

Install

npm i @7sne/project-setup

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

22.6 kB

Total Files

12

Last publish

Collaborators

  • 7sne