diff --git a/assets/blueprints/blueprint.json b/assets/blueprints/blueprint.json new file mode 100644 index 0000000..e3c1ea1 --- /dev/null +++ b/assets/blueprints/blueprint.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/bin/run.sh b/bin/run.sh index 7134849..e5fe5d4 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -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/ } @@ -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"