Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Last active December 25, 2015 06:08
Show Gist options
  • Save mohayonao/6929218 to your computer and use it in GitHub Desktop.
Save mohayonao/6929218 to your computer and use it in GitHub Desktop.
grunt.registerTask("swf", function() {
var done = this.async();
var child = grunt.util.spawn({
cmd : "mxmlc",
args: ["-o", "coffee-collider-fallback.swf", "./src/fallback.as"]
}, function(err, result) {
if (result.code !== 0) {
grunt.fail.fatal("Compile failed. See the above error message.");
}
done();
});
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment