text: module.exports = function (grunt) {
    // Build customizations would be left up to developer to implement.
    grunt.loadNpmTasks('grunt-dojo');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-clean');
  
    grunt.loadNpmTasks('grunt-sass');
  
    grunt.initConfig({
      clean: {
        build: {
          src: ['dist/']
        },
        uncompressed: {
          src: [
            'dist/**/*.uncompressed.js'
          ]
        }
      },
      copy: {
        main: {
          files: [{
            expand: true,
            cwd: 'src/',
            src: ['built.html'],
            dest: './dist/',
            rename: function(dest, src) {
              return dest + 'index.html';
            }
          }]
        },
        iis: {
          files: [{
            expand: true,
            cwd: 'src/',
            src: ['Web.config'],
            dest: './dist/',
          }]
        },
        online: {
          files: [{
            expand: true,
            cwd: 'src/',
            src: ['online.html'],
            dest: './dist/',
          }]
        }
      },
      dojo: {
        dist: {
          options: {
            releaseDir: '../dist',
          }
        },
        options: {
          profile: 'build.profile.js',
          dojo: 'dojoconfig.js',
          load: 'build',
          cwd: './',
          basePath: './src'
        }
      },
  
      sass: {
        options: {
          outputStyle: 'compressed'
        },
        dist: {
          files: [{
            expand: true,
            src: ['node_modules/arcgis-js-api/themes/**/*.scss', '!node_modules/arcgis-js-api/themes/base/**'],
            ext: '.css'
          }]
        }
      }
    });
  
    grunt.registerTask('build', ['clean:build', 'dojo', 'copy', 'clean:uncompressed']);
    grunt.registerTask('styles', ['sass']);
  
  };
  