     pkg: grunt.file.readJSON('package.json')
 
     clean:
-      derived: ['public', 'build']
+      derived: ['public', 'build', 'typings']
       options:
         force: true
 

        configFile: 'test/conf/karma-conf.coffee'

    exec:
      # Clean all installation artifacts, including the qirest Anaconda
      # environment.
      cleanall:
        command:
          'rm -rf node_modules/ jspm_packages/ build/ public/ typings/; ' +
          'source deactivate 2>/dev/null; ' +
          'conda env remove -n qirest 2>/dev/null'

      # Build the qirest Anaconda environment and install the application.
      buildall:
        command:
          'conda env create -n qirest pip 2>/dev/null; ' +
          'source activate qirest; ' +
          'pip install -r requirements.txt; ' +
          'npm install'
      
      # Kill any existing selenium server and install the drivers.

                                     'exec:updatewebdriver', 'build']

  # Reinstall from scratch.
  grunt.registerTask 'cleanall', ['clean', 'exec:cleannpm']

  # Reinstall from scratch.
  grunt.registerTask 'buildall', ['exec:buildqirest', 'exec:buildnpm']

  # Reinstall from scratch.
  grunt.registerTask 'reinstall', ['cleanall', 'buildall']

  # Start the server with debug turned on.
  grunt.registerTask 'start:dev', ['express:dev', 'watch']
