Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.412 kB
#!/usr/bin/env coffee
fs = require 'fs'
files = fs.readdirSync './strategies'
strategies = {}
for filename in files
suffixPos = filename.length - 7
if filename[suffixPos...] == '.coffee'
code = fs.readFileSync('./strategies/'+filename, 'utf-8')
strategies[filename[...suffixPos]] = code
definition = "strategies = "+JSON.stringify(strategies)+'\n'
fs.writeFileSync('web/strategies.js', definition)
Jump to Line
Something went wrong with that request. Please try again.