wpdevtools

grunt tasks for wordpress development

WPDevTools

collection of modified grunt tasks to fit my workflow. breaks the idea of one module for one single purpose but its more convenient that forking every task on its own.

Tasks

ftp-deploy based on https://github.com/zonak/grunt-ftp-deploy modified to only upload the files that have changed since last deploy, makes deploys for large projects much faster

cloudflare based on https://github.com/strathausen/grunt-cloudflare

cfpurge // clears the cloudflare cache
cfdevmodeon // enables the devmode for a domain
cfdevmodeoff // disables the devmode for a domain

Config

create a file .wpdevtools

{
    "ftp-deploy":{
        "production":{
            "USERNAME":"username",
            "PASSWORD":"password"
        }
    },
    "cloudflare":{
        "EMAIL":"email",
        "TOKEN":"token",
        "DOMAIN":"domain"
    }
}