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
var mraa = require('mraa'); | |
var version = mraa.getVersion(); | |
if (version >= 'v0.6.1') { | |
console.log('mraa version (' + version + ') ok'); | |
} | |
else { | |
console.log('mraa version(' + version + ') is old - this code may not work') | |
} |
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
# Compile the coffee in bare joined mode. | |
{exec, spawn} = require 'child_process' | |
fs = require 'fs' | |
util = require 'util' | |
print = (data) -> | |
console.log data.trimRight() | |
task 'build', 'Compile Coffeescript to Javascript', -> |