Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 805 Bytes

getting_started.md

File metadata and controls

42 lines (29 loc) · 805 Bytes

Getting Started

Build the compiler

  1. clone the repo

    git clone https://github.com/intel/Wasmnizer-ts.git
  2. install the dependencies

    cd Wasmnizer-ts
    npm install
  3. build

    npm run build

Build ts source code

cd build
node cli/ts2wasm.js --opt=3 <source> -o out.wasm

Please refer to developer guide for feature description.

Execute the generated module

Source debugging (browser only)

To debug the generated wasm module, use --debug --sourceMap command line options to generate wasm module containing source map.

node cli/ts2wasm.js <source> -o out.wasm --debug --sourceMap