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:
- install typescript globally on your pc
- navigate with command line to the folder where the project is saved
- type: tsc
- all Typescript files will be transpiled into JavaScript files
- start browser and open index.html
- For development to watch Typescript files and automatically transpile them on save write in command line: "tsc -w"