grunt.config.requires('options.workingDirectory'); var fs = require('fs'), sourcefile = 'src/components/' + grunt.config('component') + '/stub.json', wd = grunt.config.get('options.serverDirectory'), destination = wd + '/feed/component.json'; fs.writeFileSync(destination, fs.readFileSync(sourcefile)); }); }; grunt-configs/alias_tasks.js