Last active
April 29, 2019 15:43
-
-
Save carlosbaraza/d5b240f6d298b4cbde23db4ea5daf4df to your computer and use it in GitHub Desktop.
Hopefully simple WebAssembly starting guide - gulpfile.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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