Join Sahil Malik for an in-depth discussion in this video Debug TypeScript on Cordova Android, part of Developing Cordova Apps with Visual Studio Code and Typescript.
- [Instructor] So my application is now written.…It is being bundled, we are using TypeScript,…we have the necessary tsconfig.jsons in there.…All that's left to do is to run it.…Let's quickly look at one little thing here though.…Index.html is now referencing a file called dist/bundle.js.…And this is where webpack is supposed to put my file.…Well, I need to be able to create a folder in here,…for webpack to be able to put a file into that folder.…
So let's go ahead and create a new folder here, called dist.…Now, before we move forward, let's test and make sure…that our bundling is working properly.…So I'm going to reveal this in explorer,…and right now, there is no file in here.…Let's go to terminal, and remember,…in my package.json, I had a command called bundle.…So let's go ahead and run that command now.…
So I'm going to say, npm run bundle.…This creates a file called bundle.js in here,…which is the bundled equivalent of my code.…So if we go back to package.json,…the start command should run the TypeScript compiler,…
- Setting up your environment
- Adding the browser platform
- Adding and debugging the Android and iOS platforms
- Interacting with Native using plugins
- Why use plugins?
- Using TypeScript with Cordova
- Converting your code to TypeScript
Skill Level Intermediate
1. Setting Up Your Environment
2. Going Multiplatform
Add the browser platform3m 7s
3. Interacting with Native Using Plugins
4. Using TypeScript with Cordova
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.