text: module.exports = function(grunt) {
  
  // https://github.com/cedaro/grunt-wp-i18n/blob/develop/docs/makepot.md
  
  	grunt.initConfig({
  		makepot: {
  			target: {
  				options: {
  					cwd: './',                          // Directory of files to internationalize.
  					domainPath: 'languages',                   // Where to save the POT file.
  					exclude: [
  						'provisioning', 
  						'node-modules',
  						'css',
  						'images',
  						'languages',
  						'library/aws',
  						'library/dropboxsdk',
  						'library/FTP',
  						'library/Github',
  						'wpassets',
  					],                      // List of files or directories to ignore.
  					include: [ ],                      // List of files or directories to include.
  					mainFile: 'wp-static-html-output.php',                     // Main project file.
  					potComments: 'WP Static HTML Output',                  // The copyright at the beginning of the POT file.
  					potFilename: 'static-html-output-plugin.pot',                  // Name of the POT file.
  					potHeaders: {
  						poedit: true,                 // Includes common Poedit headers.
  						'x-poedit-keywordslist': true // Include a list of all possible gettext functions.
  					},                                // Headers to add to the generated POT file.
  					processPot: null,                 // A callback function for manipulating the POT file.
  					type: 'wp-plugin',                // Type of project (wp-plugin or wp-theme).
  					updateTimestamp: true,            // Whether the POT-Creation-Date should be updated without other changes.
  					updatePoFiles: false              // Whether to update PO files in the same directory as the POT file.
  				}
  			}
  		},
  		potomo: {                            // Task 
  			dist: {                            // Target 
  			  options: {                       // Target options 
  				poDel: false
  			  },
  			files: [{
  					expand: true,
  					cwd: './languages',
  					src: ['*.po'],
  					dest: './languages',
  					ext: '.mo',
  					nonull: true
  				  }]
  			}
  		  }
  	});
  
    grunt.loadNpmTasks('grunt-wp-i18n');
    grunt.loadNpmTasks('grunt-potomo');
  
    grunt.registerTask('default', ['makepot', 'potomo']);
  
  };
  