Commit 716ecc1b authored by JC Brand's avatar JC Brand

Add the 'build' grunt task

- it calls 'bower update' and then 'make normal' inside the strophe dir.
parent 868ae82b
......@@ -32,7 +32,23 @@ module.exports = function(grunt) {
done();
});
});
grunt.registerTask('default', 'Perform all checks (e.g. before releasing)', function () {
grunt.registerTask('build', 'Set up the development environment', function () {
var done = this.async();
var child_process = require('child_process');
var exec = child_process.exec;
exec('bower update && cd ./components/strophe && make normal',
function (err, stdout, stderr) {
if (err) {
grunt.log.write('build failed with error code '+err.code);
grunt.log.write(stderr);
}
grunt.log.write(stdout);
done();
});
});
grunt.registerTask('check', 'Perform all checks (e.g. before releasing)', function () {
grunt.task.run('jshint', 'test');
});
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment