darozak / Advolition

1 stars 0 forks source link

Switch to TypeScript #9

Closed darozak closed 7 months ago

darozak commented 7 months ago

TypeScript will help me manage the code and make it more easily readable to other users. Plus it will do nothing to prevent players from coding their robots in standard JavaScript.

darozak commented 7 months ago

Need npm command to install TypeScript compiler via terminal. This is apparently available through Node JS. I installed Node JS and can confirm by requesting the version from the Windows command prompt: npm -v.

However, the VS Code terminal window does not recognize the npm or node commands. Trying to figure out why this is happening.

darozak commented 7 months ago

I was able to install Node JS and TypeScript and the convert all of my code to TypeScript (https://github.com/darozak/Advolition/commit/064887ccbaacb1e62a3bbfa73ac950cac8270bbd) and it works great!