xxxxxxxxxx
#larryadah
# 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 ;)
#larryadah
xxxxxxxxxx
# Locally in your project.
npm install -D typescript
npm install -D ts-node
# Or globally with TypeScript.
npm install -g typescript
npm install -g ts-node
# Depending on configuration, you may also need these
npm install -D tslib @types/node
xxxxxxxxxx
//Author:Mohammad Arman Khan
//Command to install typeScript in node(express)Project
npm i -D @types/node typescript ts-node
xxxxxxxxxx
Don't forget to use the dev flag!!!
Yarn:
yarn global add --dev typescript
NPM:
npm install -g --save-dev typescript
xxxxxxxxxx
// Set Up TypeScript
npm install typescript @types/node --save-dev
// Initialize a TypeScript Configuration
npx tsc --init
xxxxxxxxxx
# This robots.txt content is autogenerated
User-agent: ia_archiver
Disallow: /
User-agent: *
Allow: /wiki/
Disallow: /sr/
Disallow: /si/
Disallow: /charts
Disallow: /secure/ConfigureReport.jspa
Disallow: /secure/ConfigureReport!default.jspa
Disallow: /secure/admin/
Disallow: /l/cx/
Disallow: /login
Disallow: /logout
# Allow crawling of the entire website
Allow: /