Skip to content

This is a very simple app using Revealing module pattent with TypeScript and JQuery

Notifications You must be signed in to change notification settings

jozeflacko/typescript-demo-with-revealing-module-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Typescript-and-revealing-module-pattern

This is a very simple app using Revealing module pattent with TypeScript and JQuery

Demo is a demonstration of how easily could be Typescript added into already existing.

  • In the demo I am adding all modules/classes into on main object called app
  • After build all Typescript files are transpiled into JavaScript files (Es5) and created right next to typescript files. Then this JavaScript files should be linked into the html pages.
  • In this example are not used any imports/exports

Source contains one index.html where we link our old javacript file: javacsriptModule.js and two transpiled typescript files.

How to start app:

  1. install typescript globally on your pc
  2. navigate with command line to the folder where the project is saved
  3. type: tsc
  4. all Typescript files will be transpiled into JavaScript files
  5. start browser and open index.html
  6. For development to watch Typescript files and automatically transpile them on save write in command line: "tsc -w"

About

This is a very simple app using Revealing module pattent with TypeScript and JQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published