PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/js/cake_tasks.js

http://github.com/jashkenas/coffee-script
JavaScript | 14 lines | 10 code | 3 blank | 1 comment | 2 complexity | 73173610bb788bec3aadd9546b0cf716 MD5 | raw file
 1// Generated by CoffeeScript 1.10.0
 2var fs;
 3
 4fs = require('fs');
 5
 6option('-o', '--output [DIR]', 'directory for compiled code');
 7
 8task('build:parser', 'rebuild the Jison parser', function(options) {
 9  var code, dir;
10  require('jison');
11  code = require('./lib/grammar').parser.generate();
12  dir = options.output || 'lib';
13  return fs.writeFile(dir + "/parser.js", code);
14});