Skip to content

Quick start

Daniel Wirtz edited this page Oct 10, 2018 · 5 revisions

The easiest way to get started with AssemblyScript is to point npm at the GitHub repository (for now):

$> npm install --save-dev AssemblyScript/assemblyscript

followed by scaffolding a new project that automatically creates

  • an exemplary entry file at assembly/index.ts
  • a generic index file at index.js that loads the compiled binary and
  • necessary configuration files like package.json and tsconfig.json

for example in the current directory:

$> asinit .

Once initialized, it's just a matter of using your existing TypeScript tooling while coding, and using the compiler to build to WebAssembly, either manually, or utilizing the generated build task:

$> npm run asbuild

 

Clone this wiki locally