| var assert = require('assert'); |
| var path = require('path'); |
| module.exports = function(grunt) { |
| require('load-grunt-tasks')(grunt); |
| grunt.task.loadTasks('grunt_tasks'); |
| pkg: grunt.file.readJSON('package.json'), |
| ignores: ['**/veyron*.js', |
| var vIndex = __dirname.indexOf('/go/'); |
| assert.notEqual(vIndex, -1, 'Failed to find Veyron root dir'); |
| LOG_DIR: path.resolve('log'), |
| VEYRON_BIN_DIR: __dirname.substr(0, vIndex) + '/go/bin', |
| VEYRON_IDENTITY_PORT: 3000, |
| [c.LOG_DIR].forEach(function(dir) { |
| if (!fs.existsSync(dir)) fs.mkdirSync(dir); |
| // Starts all needed daemons and blocks. On Ctrl-C, kills all spawned |
| // subprocesses and then exits. |
| grunt.registerTask('start', [ |
| 'subtask_spawnSubprocesses' |