Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility command to create zip packages #2669

Merged
merged 1 commit into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ test-coverage-html/
screenshots
.DS_Store

/tests/wpa/test-mu-plugins/custom-ep-credentials.php
wpa-elasticsearch.yml
payload
10 changes: 10 additions & 0 deletions bin/build-zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

npm ci
npm run build

rm -r ./payload

TMP_DIR="./payload/elasticpress"
mkdir -p $TMP_DIR
rsync -rc --exclude-from=".distignore" --exclude="payload" . "$TMP_DIR/" && cd $TMP_DIR/.. && zip -r "./elasticpress.zip" .
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"start": "composer install --ignore-platform-reqs && npm install && npm run build",
"build": "10up-toolkit build",
"watch": "10up-toolkit start",
"build-release": "npm install && composer install --no-dev -o && npm run build",
"lint-release": "npm install && composer install && npm run lint",
"lint-js": "10up-toolkit lint-js assets/js tests/cypress",
"lint-php": "composer run lint",
"format-js": "10up-toolkit format-js assets/js",
"lint": "npm run lint-style && npm run lint-js && npm run lint-php",
"build:docs": "rm -rf hook_docs && jsdoc -c hookdoc-conf.json elasticpress.php includes",
"build:zip": "./bin/build-zip.sh",
"lint-style": "10up-toolkit lint-style",
"env": "wp-env",
"env:start": "wp-env start && cd bin/es-docker/ && docker-compose up -d",
Expand Down