Skip to content

Instantly share code, notes, and snippets.

@carlosbaraza
Last active April 29, 2019 15:43
Show Gist options
  • Save carlosbaraza/d5b240f6d298b4cbde23db4ea5daf4df to your computer and use it in GitHub Desktop.
Save carlosbaraza/d5b240f6d298b4cbde23db4ea5daf4df to your computer and use it in GitHub Desktop.
Hopefully simple WebAssembly starting guide - gulpfile.js
const gulp = require('gulp');
gulp.task('build', callback => {
const asc = require('assemblyscript/bin/asc');
asc.main(
[
'main.ts',
'--baseDir',
'assembly',
'--binaryFile',
'../out/main.wasm',
'--sourceMap',
'--importMemory',
'--optimize',
'--measure'
],
callback
);
});
gulp.task('default', ['build']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment