Add script to build plugin zip
This commit is contained in:
parent
8a4aface8b
commit
1de531e486
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm woocommerce-admin-test-helper.zip
|
||||
|
||||
echo "Building"
|
||||
npm run build
|
||||
|
||||
echo "Creating archive... 🎁"
|
||||
zip -r "woocommerce-admin-test-helper.zip" \
|
||||
woocommerce-admin-test-helper.php \
|
||||
plugin.php \
|
||||
build/ \
|
||||
api/ \
|
||||
README.md
|
|
@ -17,7 +17,8 @@
|
|||
"packages-update": "wp-scripts packages-update",
|
||||
"start": "wp-scripts start",
|
||||
"test:e2e": "wp-scripts test-e2e",
|
||||
"test:unit": "wp-scripts test-unit-js"
|
||||
"test:unit": "wp-scripts test-unit-js",
|
||||
"zip": "./bin/build-zip.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@woocommerce/dependency-extraction-webpack-plugin": "1.4.0",
|
||||
|
|
Loading…
Reference in New Issue