Skip to content

lord-xld3/typescript-web-client-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-web-client-template

Clone this and add assets in /build/. Run following commands in PowerShell:

1. Setup TypeScript/npm workaround (one-time)

Install typescript compiler

npm install -g typescript

Next line must be run in an admin Powershell window

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

2. (Optional)

Install jQuery

npm install --save @types/jquery

3. Usage

Start Compiler in /src/

Run once, it will compile whenever you save a .ts file

tsc -p .\tsconfig.json

/src/script.ts

Write program here, it will compile to ../build/script.js

/src/tsconfig.json

Defaults: target ES6, remove comments, strict type checking

About

Clone this and add assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •