Typescript development environment

typescript, babel, and webpack

Javascript project setup

Assuming that you already have a vanilla Javascript project with babel and webpack, you should have below.

{
"name": "myproject",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "./node_modules/.bin/babel src --out-dir dist",
"debug": "webpack --mode development --watch",
"prod": "webpack --mode…