Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 496 Bytes
#!/usr/bin/env coffee
path = require('path')
fs = require('fs')
TerminalUiSchemer = require('./terminalUiSchemer')
fs.readdir 'colorschemes', (err, files) ->
for file in files
moduleName = path.basename(file, path.extname(file))
scheme = require('./colorschemes/'+moduleName)
schemer = new TerminalUiSchemer(scheme)
contents = schemer.render()
fs.writeFile "../colors/"+moduleName+".vim", contents, (err) ->
console.error err if err?
# vim: set filetype=coffee et: