-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify build script and move it to separate file (#791)
- Loading branch information
Showing
2 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
# Exit if any command fails | ||
set -e | ||
|
||
# Change to the expected directory | ||
cd "$(dirname "$0")" | ||
cd .. | ||
|
||
# Run the build | ||
npm install | ||
npm run build | ||
|
||
# Remove any existing zip file | ||
rm -f gutenberg.zip | ||
|
||
# Generate the plugin zip file | ||
zip -r gutenberg.zip \ | ||
index.php \ | ||
post-content.js \ | ||
blocks/build \ | ||
editor/build \ | ||
element/build \ | ||
i18n/build \ | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters