zip all files except code example
Example 1: how to zip a folder but ignore some files
zip -r myarchive.zip dir1 -x dir1/ignoreDir1/**\* dir1/ignoreDir2/**\*
Example 2: zip exclude multiple files linux
-x "app/bower_components" -x "node_modules"
or
-x app/bower_components/\* -x node_modules/\*
or
-x "*.zip"