           'lib/papaya.css'
           'jspm_packages/npm/nouislider*/distribute/nouislider.min.css'
           'node_modules/bootstrap/dist/css/bootstrap.css'
-          'node_modules/font-awesome/css/font-awesome.css'
         ]
         dest: 'public/stylesheets/vendor.css'
+
+    curl:
+      icons:
+        src: 'http://glyphicons.com/files/glyphicons_free.zip'
+        dest: 'build/glyphicons.zip'
+
+    unzip:
+      icons:
+        router: (filepath) ->
+          # Get rid of the numeric qualifier in the file name.
+          base = path.basename(filepath)
+          if base.match(/glyphicons-.*\.png/)
+            base.replace(/glyphicons-\d+-/, 'glyphicon-')
+        src: 'build/glyphicons.zip'
+        dest: 'public/media'
 
     concurrent:
       options:

        src: '**/*'
        dest: 'public/'

      # Note: this task is only used to copy CSS map files. The
      # CSS style files themselves are copied to the destination
      # in the concat:css task.
      #
      # This task is only used to copy the Bootstrap map file.
      # Since the non-minimized Bootstrap module references the
      # CSS map, the map must be colocated with the stylesheets.
      cssmap:
        expand: true
        flatten: true
        cwd: 'node_modules/'
        src: ['bootstrap/dist/css/bootstrap.css.map']
        dest: 'public/stylesheets/'

      fonts:
        expand: true
        flatten: true
        # Note: Due to a grunt bug, the font-awesome example subdirectory,
        #   e.g. 4.0.4/index.html, can't be excluded
        #   (cf. https://github.com/gruntjs/grunt-contrib-copy/issues/13).
        src: [
          'node_modules/bootstrap/dist/fonts/*'
          'node_modules/font-awesome/fonts/*'
          'fonts/google/*'
        ]
        dest: 'public/fonts/'

      doc:
        expand: true
        src: ['src/**/*.ts']

path = require 'path'

module.exports = (grunt) ->
  grunt.config.init(
    pkg: grunt.file.readJSON('package.json')
