Getting Started to write NPM Modules in TypeScript.
Todo
-
create ShellScript for Project Setup
NPM Modules
npm install -g typescript tslint typings
- install TypeScript, TSLint and Typings
IDE and Plugins
- Atom - A hackable text editor.
- Atom TypeScript - The only TypeScript plugin you will ever need.
- Atom Linter - A Base Linter with Cow Powers.
- Atom Linter TSLint - Linter plugin for TypeScript, using tslint.
tsconfig.json
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": "es5",
"sourceMap": true,
"declaration": true,
"outDir": "./js",
"noLib": false,
"pretty": true,
"suppressImplicitAnyIndexErrors": true,
"preserveConstEnums": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules"
],
"atom": {
"rewriteTsconfig": true
}
}
Typings
- Typings - The TypeScript Definition Manager
- TypeScript Configuration - TypeScript configuration for Angular 2 developers.
typings install debug --save
typings install env~atom --global --save
typings install dt~node --global --save
typings install dt~core-js --global --save
TSLint
- TSLint - An extensible static analysis linter for the TypeScript language.
- TSLint Documentation - TSLint checks your TypeScript code for readability, maintainability, and functionality errors.
tslint --init
- Generates a tslint.json config file in the current working directory.
Contact / Social Media
Get the latest News about Web Development, Open Source, Tooling, Server & Security
Development by
Developer / Author: Maik Ellerbrock
Company: Frapsoft
License
Copyright (c) 2016 Maik Ellerbrock