module.exports = function(grunt) {
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		manifest: grunt.file.readJSON('src/manifest.json'),
		copy: {
			main: {
				files: [
					{ src: 'src/manifest.json', dest: 'build/manifest.json' },
					{ src: 'src/jquery.min.js', dest: 'build/jquery.min.js' },
					{ src: 'src/main.js', dest: 'build/main.js' }
				]
			}
		},
		compress: {
			main: {
				options: {
					archive: "<%= manifest.name %>-<%= manifest.version %>.zip"
				},
				files: [
					{ expand: true, cwd: 'build/', src: ['**'], dest: '/' }
				]
			}
		}
	});

	grunt.loadNpmTasks('grunt-contrib-compress')
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.registerTask('default', ['copy', 'compress'])
};

module.exports = function(grunt) {
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		manifest: grunt.file.readJSON('src/manifest.json'),
		compress: {
			main: {
				options: {
					archive: "<%= manifest.name %>-<%= manifest.version %>.zip"
				},
				files: [
					{ expand: true, cwd: 'src/', src: ['**'], dest: '/' }
				]
			}
		}
	});

	grunt.loadNpmTasks('grunt-contrib-compress');
	grunt.registerTask('default', ['compress']);
};

simplify Gruntfile.js