Skip to content

Commit

Permalink
enable previews on WordPress.org; readd composer files in create_dist()
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Foti <[email protected]>
  • Loading branch information
MocioF committed Mar 15, 2024
1 parent 0b84200 commit ca86a9d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions assets/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"landingPage": "\/wp-admin\/options-general.php?page=no-unsafe-inline",
"preferredVersions": {
"php": "8.1",
"wp": "latest"
},
"phpExtensionBundles": [
"kitchen-sink"
],
"features": {
"networking": true
},
"steps": [
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https:\/\/downloads.wordpress.org\/plugin\/no-unsafe-inline.1.1.4.zip"
},
"options": {
"activate": true
}
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
4 changes: 2 additions & 2 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ OUTPUT_PATH="$DIST_PATH/source"
create_dist() {
rm -rf $DIST_PATH
mkdir -p $SVN_PATH $OUTPUT_PATH
cp -Rp admin includes languages mu-plugins public src index.php LICENSE.txt no-unsafe-inline.php readme.txt uninstall.php $OUTPUT_PATH
cp -Rp admin includes languages mu-plugins public src composer.json composer.lock index.php LICENSE.txt no-unsafe-inline.php readme.txt uninstall.php $OUTPUT_PATH
(cd $OUTPUT_PATH && composer install --quiet --no-dev --optimize-autoloader)
cp index.php $OUTPUT_PATH/vendor/
}
Expand All @@ -96,7 +96,7 @@ bundle() {
svnsync() {
create_dist
svn co -q https://plugins.svn.wordpress.org/no-unsafe-inline $SVN_PATH
cp assets/* "$SVN_PATH/assets/"
cp -r assets/* "$SVN_PATH/assets/"

# we don't sync vendor if the lock file is the same
shasum "$SVN_PATH/trunk/composer.lock"
Expand Down

0 comments on commit ca86a9d

Please sign in to comment.