Skip to content

Commit

Permalink
explictly ignore bin/, .github/ and .git/ from wordpress.org package
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 23, 2025
1 parent 31aa1ed commit 6e469b6
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions bin/create-package
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,21 @@ cd ..

# Create archive (excl. development files)
zip -r "$PACKAGE_FILE" "$PLUGIN_SLUG" \
-x "$PLUGIN_SLUG/.*" \
-x "$PLUGIN_SLUG/vendor/*" \
-x "$PLUGIN_SLUG/node_modules/*" \
-x "$PLUGIN_SLUG/tests/*" \
-x "$PLUGIN_SLUG/webpack.config*.js" \
-x "$PLUGIN_SLUG/*.json" \
-x "$PLUGIN_SLUG/*.lock" \
-x "$PLUGIN_SLUG/phpcs.xml" \
-x "$PLUGIN_SLUG/phpunit.xml.dist" \
-x "$PLUGIN_SLUG/*.sh" \
-x "$PLUGIN_SLUG/assets/src/*" \
-x "$PLUGIN_SLUG/sample-code-snippets/*"
-x "$PLUGIN_SLUG/.*" \
-x "$PLUGIN_SLUG/vendor/*" \
-x "$PLUGIN_SLUG/node_modules/*" \
-x "$PLUGIN_SLUG/tests/*" \
-x "$PLUGIN_SLUG/webpack.config*.js" \
-x "$PLUGIN_SLUG/*.json" \
-x "$PLUGIN_SLUG/*.lock" \
-x "$PLUGIN_SLUG/phpcs.xml" \
-x "$PLUGIN_SLUG/phpunit.xml.dist" \
-x "$PLUGIN_SLUG/*.sh" \
-x "$PLUGIN_SLUG/bin/*" \
-x "$PLUGIN_SLUG/.github/*" \
-x "$PLUGIN_SLUG/.git/*" \
-x "$PLUGIN_SLUG/assets/src/*" \
-x "$PLUGIN_SLUG/sample-code-snippets/*"

cd "$PLUGIN_SLUG"

Expand Down

0 comments on commit 6e469b6

Please sign in to comment.