Skip to content

A seed project for scripting with node.js and typescript with vs code editor (leaving out all the web junk)

Notifications You must be signed in to change notification settings

sofayam/scriptype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

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

What is the point?

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

Installation from scratch

  1. Install vs code from here: https://code.visualstudio.com/

  2. Install Node.js and npm from here: https://nodejs.org

  3. Clone this project:

    $ git clone https://github/sofayam/scriptype.git

  4. Install the typescript transpiler (using npm installed at step 2)

    $ npm install --global typescript

  5. Set up the project

    $ cd scriptype

    $ npm install

  6. Fire up vs code

    $ code .

  7. Start the transpiler watch process (Ctrl-Shift-B), your transpiled code will be in "./generated"

  8. And now it's your move :-) Mouse around, check out the intellisense, play with the debugger

About

A seed project for scripting with node.js and typescript with vs code editor (leaving out all the web junk)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published