This is an exercise of transforming Wes Bos's the absolutely amazing JavaScript 30 Day Challenge coded solutions from JavaScript to TypeScript.
You can view the original JavaScript solutions here and grab the course for free from here.
Because it's in TypeScript, we need to compile to JavaScript before running it in the browser. The instructions below will help you get started with compiling TS to JS, watching the files for changes and spinning up a local web server as well.
- Clone the repo
git cloneandcdinto it. - Install dependencies
yarnornpm install. - In one terminal window, run
yarn server. This will spin up the local server using serve. The URL is automatically copied to your clipboard, so just open your browser and paste it in the address bar. Go to thedistfolder. - In another terminal window, run
yarn watch. This will compile the TS fromsrcintodistand watch the files for changes.
Happy coding!