Skip to content

Instantly share code, notes, and snippets.

@Falieson
Last active May 31, 2018 21:24
Show Gist options
  • Save Falieson/8fe79b34873fdb6ba547549483ef8199 to your computer and use it in GitHub Desktop.
Save Falieson/8fe79b34873fdb6ba547549483ef8199 to your computer and use it in GitHub Desktop.
S2. F04. Init HelloWorld (ARTICLE: TS-Module w/ Declarations (Part 1/4))
### TS-Module w/ Declarations (Part 1/4)
# http://TGRstack.com/#ts-module_articles_part-1
# Compile and Run the module (Section 2. Figure 04.)
###
falieson:./ts-module/$ tsc # wait a minute or so while it works
falieson:./ts-module/$ ls
.git
dist # <=== tsc created this
src
tsconfig.json
falieson:./ts-module/$ ls dist/
HelloWorld.js
HelloWorld.js.map
index.js
index.js.map
falieson:./ts-module/$ node dist/ # node will use the index file
Hi Earth # it worked!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment