     )
     func.apply null, nargs
   )
+
 
 module.exports = (grunt) ->
   grunt.initConfig

    proc.stdout.on 'data', (data) ->
      grunt.log.write data

  grunt.registerTask 'install-deps', ['npm-install', 'pip-install', 'bower-install']


  grunt.registerTask 'pip-install', 'Get remaining dependencies', ->
    grunt.log.writeln 'installing python dependencies...'
    try
      cp.spawnSync 'python3', ['-m', 'pip', 'install', '-r', 'requirements.txt']
    catch error
      grunt.log.writeln error
      false

  grunt.registerTask 'bower-install', 'Install bower dependencies', ->
    grunt.log.writeln 'installing bower dependencies...'
    try
      cp.spawnSync 'bower', ['install']
    catch error
      grunt.log.writeln error
      false


  grunt.registerTask 'clean-db', 'Clean the database', ->

      grunt.log.writeln 'deleting database...'
      fs.unlink 'db.sqlite3', (err) ->
        if not err == null
          grunt.log.writeln err
        resolve()
    ).then( ->
      grunt.log.writeln 'migrating...'
