Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install typescript

npm install -g typescript
Comment

how to install typescript

# to do this, you have to first install node.js on your computer
# use the default selections while installing, it doesn't really matter
# once installation is complete, open "node.js command prompt"
# the type the following
npm install -g typescript
# or
npm install --global typescript

# use the following commands to monitor your JavaScript files for errors:
# before creation a ".json" you need to be sure your in the same directory as
# the JavaScript file you need to check for errors.
# go to the file explorer and copy the directory, then return to the 
# "node.js command prompt" and type in
cd "this is where you paste the directory by right clicking" # the enter
tsc --init # creates a tsconfig.json file
# (it important to do this before using any of the next set of commands)
tsc # transpile every file in the current directory
tsc index.ts # transpile a specific file
tsc --watch # transpile on change in current directory (watch changes)
# this will scheck for errors every time you save the file while editing

# your welcome ;)
Comment

install typescript

Don't forget to use the dev flag!!!
Yarn:
yarn global add --dev typescript
NPM:
npm install -g --save-dev typescript
Comment

install typescript in node project

//Author:Mohammad Arman Khan
//Command to install typeScript in node(express)Project
npm i -D @types/node typescript ts-node
Comment

how to install typescript

npm install -g typescript

tsc --init # creates a tsconfig.json file

tsc # transpile every file in the current directory
tsc index.ts # transpile a specific file
tsc --watch # transpile on change in current directory (watch changes)
Comment

PREVIOUS NEXT
Code Example
Shell :: httpd service centos 7 and centos 8 
Shell :: disable ssh login only keys 
Shell :: debian install postgresql 
Shell :: git force sync with remote 
Shell :: how to install pygame 
Shell :: git checkout multiple branches at once 
Shell :: convert master to main 
Shell :: bash shortcuts 
Shell :: ubuntu install elasticsearch terminal 
Shell :: show branch detail branch info in git 
Shell :: jupyter python downkload 
Shell :: Install libqt4 ib ubuntu 
Shell :: nvm linux 
Shell :: how to add color in text github readme 
Shell :: delete a local and remote git branch 
Shell :: ansible copy 
Shell :: python install z3 
Shell :: add arabic keyboard ubuntu 20.04 
Shell :: How to Install Visual Studio Code on Ubuntu Linux 
Shell :: linux ogg to wav 
Shell :: tar.gz files 
Shell :: compress folder ubutnu 
Shell :: how to kill a process in powershell 
Shell :: how to count files in a directory linux 
Shell :: nvm use globally 
Shell :: git sync branch with master 
Shell :: install angular app 
Shell :: gitlab change commit message 
Shell :: git show files modified since commit 
Shell :: remove eclipse from ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =