'use strict'; module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), rename: { main: { files: [ {src: ['bigcity.zip'], dest: '/Users/sp1r1t/Desktop/bigcity-<%= pkg.version %>.zip'}, ] } }, compress: { main: { options: { archive: 'bigcity.zip' }, files: [ { src:["images/**/*", '*.php', '*.css', '*.js', '*.txt', '*.png'] } ] } }, // deploy via rsync deploy: { options: { args: ["--verbose"], exclude: ['.git*', 'node_modules', 'Gruntfile.js', 'package.json', '.DS_Store', 'README.md', '.sass-cache*'], recursive: true }, production: { options: { src: "./", dest: "~/public_html/wildlabsprojects/aoe/bigcity/wp-content/themes/big-city", host: "figursky@wildwagon.co", syncDestIgnoreExcl: true } } } }); // register task grunt.registerTask('export', ['compress', 'rename']); };