Permalink
Browse files

Make lib folder if it doesn’t exist while building.

  • Loading branch information...
alecperkins committed Mar 27, 2014
1 parent 6b1a5b9 commit 489d7d1e1e2ee15bede66ba7260d9dc8a72725bf
Showing with 2 additions and 0 deletions.
  1. +2 −0 Cakefile
View
@@ -12,6 +12,8 @@ compileScriptFile = (from, to) ->
task 'build', 'Compile src/*.coffee > lib/*.coffee', ->
walker = walk.walk('src')
unless fs.existsSync('lib')
fs.mkdirSync('lib')
walker.on 'file', (root, fileStats, next) ->
if not /.swp$/.test(fileStats.name)
compileScriptFile('src/' + fileStats.name, 'lib/' + fileStats.name)

0 comments on commit 489d7d1

Please sign in to comment.