/typescript-template

Basic typescript project

Primary LanguageJavaScript

typescript-template

Basic typescript project

Dependency Status Dev dependency Status

Requirements

  • Node and npm, which are bundled in one installer that can be found on http://nodejs.org/

Install

  • Run npm install to install dependencies.

Writing code

  • Write code in src/
  • Use import and export statements to split up your javascript/typescript code.
  • src/main.ts or src/main.js is the file that will be executed first with this setup. Other files are only executed by importing these files.

Testing / running code

  • Make sure npm start is running.
  • After compiling without errors, an (updated) js file will appear in dist/main.js. This is your export file and contains all code that is consumed by src/main.ts or src/main.js. The dist/main.js file is your final product.

Enjoy!