Skip to content

Instantly share code, notes, and snippets.

@hugooliveirad
Last active August 29, 2015 14:04
Show Gist options
  • Save hugooliveirad/9a0292b7a2550edb3c94 to your computer and use it in GitHub Desktop.
Save hugooliveirad/9a0292b7a2550edb3c94 to your computer and use it in GitHub Desktop.
Generate zip from WordPress project (excluding node_modules and bower_components)
# Run it in the root of your wordpress project
# Create .zip from project, without node_modules and bower_components
projectname=${PWD##*/}; zip -x '*.git*' -x 'wp-content/uploads*' -x '*node_modules*' -x '*bower_components*' -r $projectname.zip .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment