mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
This was done by first checking all files in the repository root by hand, and
then by doing the following:
$ npm i get-stdin@4
$ cat clean.coffee
fs = require 'fs'
stdin = require 'get-stdin'
stdin (text) ->
for file in text.trim().split('\n')
contents = fs.readFileSync file
.toString().replace /\s*$/, '\n'
fs.writeFileSync file, contents
return
$ ls !(node_modules)/**/*.coffee | coffee clean.coffee
10 lines
286 B
CoffeeScript
10 lines
286 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
|