osschat icon indicating copy to clipboard operation
osschat copied to clipboard

Is there any docs for introducing the what is ts-node?

Open morningman opened this issue 5 years ago • 3 comments

Sorry that I don't know anything about front-end technology. So I don't know how to run this project on my machine...

I try to search the ts-node, but it makes me more confused, the typescript, vue.js and other nouns are completely new to me...

So is there any docs to introduce the technology stack of this project, so that I can have a preliminary understanding of the project.

Thanks very much!

morningman avatar Dec 18 '19 10:12 morningman

TL;DR:

As we know, the python is the REPL/parser for Python language. The ts-node is the REPL/parser for TypeScript (which is a superset of the JavaScript) language.

You can use the ts-node to run TypeScript program files.

Install ts-node by:

  1. Install Node.js (from https://nodejs.org/)
  2. run npm install --global ts-node

An example can be found in our repo as the following:

https://github.com/kaiyuanshe/oss-bot/blob/5d6a0bb3e6cbb4620e20897f28495174e1d22619/Procfile#L4

huan avatar Dec 18 '19 17:12 huan

Thank you, I will try to learn a bit about type script.

morningman avatar Dec 19 '19 11:12 morningman

I have added this question to our FAQ.

Please feel free to add more questions to our FAQ if you have, I'll add the answers for you. :)

huan avatar Dec 20 '19 05:12 huan