Skip to content

Commit 6e469b6

Browse files
explictly ignore bin/, .github/ and .git/ from wordpress.org package
1 parent 31aa1ed commit 6e469b6

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

bin/create-package

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,21 @@ cd ..
4646

4747
# Create archive (excl. development files)
4848
zip -r "$PACKAGE_FILE" "$PLUGIN_SLUG" \
49-
-x "$PLUGIN_SLUG/.*" \
50-
-x "$PLUGIN_SLUG/vendor/*" \
51-
-x "$PLUGIN_SLUG/node_modules/*" \
52-
-x "$PLUGIN_SLUG/tests/*" \
53-
-x "$PLUGIN_SLUG/webpack.config*.js" \
54-
-x "$PLUGIN_SLUG/*.json" \
55-
-x "$PLUGIN_SLUG/*.lock" \
56-
-x "$PLUGIN_SLUG/phpcs.xml" \
57-
-x "$PLUGIN_SLUG/phpunit.xml.dist" \
58-
-x "$PLUGIN_SLUG/*.sh" \
59-
-x "$PLUGIN_SLUG/assets/src/*" \
60-
-x "$PLUGIN_SLUG/sample-code-snippets/*"
49+
-x "$PLUGIN_SLUG/.*" \
50+
-x "$PLUGIN_SLUG/vendor/*" \
51+
-x "$PLUGIN_SLUG/node_modules/*" \
52+
-x "$PLUGIN_SLUG/tests/*" \
53+
-x "$PLUGIN_SLUG/webpack.config*.js" \
54+
-x "$PLUGIN_SLUG/*.json" \
55+
-x "$PLUGIN_SLUG/*.lock" \
56+
-x "$PLUGIN_SLUG/phpcs.xml" \
57+
-x "$PLUGIN_SLUG/phpunit.xml.dist" \
58+
-x "$PLUGIN_SLUG/*.sh" \
59+
-x "$PLUGIN_SLUG/bin/*" \
60+
-x "$PLUGIN_SLUG/.github/*" \
61+
-x "$PLUGIN_SLUG/.git/*" \
62+
-x "$PLUGIN_SLUG/assets/src/*" \
63+
-x "$PLUGIN_SLUG/sample-code-snippets/*"
6164

6265
cd "$PLUGIN_SLUG"
6366

0 commit comments

Comments
 (0)