https://github.com/nilshartmann/vscode-typescript-starter
Simple Starter Project for TypeScript Development with Visual Studio Code
https://github.com/nilshartmann/vscode-typescript-starter
javascript starter-kit typescript visual-studio-code
Last synced: about 2 months ago
JSON representation
Simple Starter Project for TypeScript Development with Visual Studio Code
- Host: GitHub
- URL: https://github.com/nilshartmann/vscode-typescript-starter
- Owner: nilshartmann
- Created: 2017-10-01T08:28:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T20:07:50.000Z (about 8 years ago)
- Last Synced: 2026-03-29T17:24:42.373Z (3 months ago)
- Topics: javascript, starter-kit, typescript, visual-studio-code
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Starter for TypeScript Development with Visual Studio Code
This repository contains a simple but ready-to-use configuration for developing with [TypeScript](http://www.typescriptlang.org/) in [Visual Studio Code](https://code.visualstudio.com/):
* TypeScript (2.7) is locally installed and configured:
* source folder is set to `src/`
* output folder is set to `dist/` (including source maps)
* target is set to `es6` (NodeJS 8)
* strict mode is enabled
* VSCode (Default) Task Configuration `build` for compiling the source files to `dist/`
* VSCode Debug Configuration `Run Main Application` for debugging the compiled application. Before the app is launched, it's compiled using
the `build` task
* For formatting source code, [Prettier](https://github.com/prettier/prettier) in installed and enabled with line-length set to 130 (you might want to add [Prettier VSCode extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode))
## yarn tasks
* `yarn run clean`: removes the `dist` folder
* `yarn run build`: compiles TSCode from `src` to `dist`
* `yarn watch`: build in watch mode: watch for changes in `src` and compile to `dist`
* `yarn start`: runs the compiled application from `dist`
* `yarn prettier`: re-formats all source code in `src`