mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
9 lines
No EOL
285 B
CoffeeScript
9 lines
No EOL
285 B
CoffeeScript
fs = require 'fs'
|
|
|
|
option '-o', '--output [DIR]', 'directory for compiled code'
|
|
|
|
task 'build:parser', 'rebuild the Jison parser', (options) ->
|
|
require 'jison'
|
|
code = require('./lib/grammar').parser.generate()
|
|
dir = options.output or 'lib'
|
|
fs.writeFile "#{dir}/parser.js", code |