Skip to content

Commit

Permalink
test writeToPath blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmaguitar committed Jan 5, 2025
1 parent c84b5fc commit 7afc955
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"_bin/**/*",
"_app/**/*",
"plugins/minimal-block-no-build-e621a6/**/*.js",
"plugins/**/e2e/*.js"
"plugins/**/e2e/*.js",
"build/**/*"
],
"rules": {
"@wordpress/i18n-text-domain": [
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build-types/
dist/

# Ingnore "build" folders
build/


# Project files
node_modules/
Expand Down
35 changes: 19 additions & 16 deletions plugins/data-basics-59c8f8/_playground/blueprint.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"landingPage": "/wp-admin/admin.php?page=my-custom-gutenberg-app",
"steps": [
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://raw.githubusercontent.com/WordPress/block-development-examples/deploy/zips/data-basics-59c8f8.zip"
}
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
"landingPage": "/wp-admin/admin.php?page=my-custom-gutenberg-app",
"login": true,
"steps": [
{
"step": "writeFiles",
"writeToPath": "/wordpress/wp-content/plugins/data-basics-59c8f8",
"filesTree": {
"resource": "git:directory",
"url": "https://github.com/juanma-wp/block-development-examples.git",
"ref": "trunk",
"path": "src/data-basics-59c8f8"
}
},
{
"step": "activatePlugin",
"pluginPath": "data-basics-59c8f8/plugin.php"
}
]
}
1 change: 1 addition & 0 deletions plugins/data-basics-59c8f8/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-notices'), 'version' => '99cc9307aeb738cd8321');
1 change: 1 addition & 0 deletions plugins/data-basics-59c8f8/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions plugins/data-basics-59c8f8/build/style-index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7afc955

Please sign in to comment.