A seed project to use typescript for "normal" scripting (munging text and files) with a visual studio environment and the node.js libraries.
- No back end stuff
- No front end stuff
- No gulp or any other build tools than just plain old typescript compiler
- Platform independent
You may already know about one or more of node.js, typescript and visual studio code. Once they are working they form a very powerful partnership but getting them all up and running together is still surprisingly tricky. This seed project gives you what you need to start writing and debugging conventional file processing applications without all the web framework distractions.
The demo program just reads a file, creates a list of objects, and then outputs the file with line numbers
-
Install vs code from here: https://code.visualstudio.com/
-
Install Node.js and npm from here: https://nodejs.org
-
Clone this project:
$ git clone https://github/sofayam/scriptype.git
-
Install the typescript transpiler (using npm installed at step 2)
$ npm install --global typescript
-
Set up the project
$ cd scriptype
$ npm install -
Fire up vs code
$ code .
-
Start the transpiler watch process (Ctrl-Shift-B), your transpiled code will be in "./generated"
-
And now it's your move :-) Mouse around, check out the intellisense, play with the debugger