Skip to content

Commit d99d512

Browse files
committed
Merge branch 'develop' into update/client-ability-execution
2 parents 0136c33 + aa6409b commit d99d512

66 files changed

Lines changed: 9404 additions & 2743 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.distignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
/.wordpress-org
55
/docs
66
/node_modules
7+
/routes
78
/src
89
/tests
10+
/tools
911

1012
# Files
1113
.*

.github/workflows/plugin-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ jobs:
6969
plugin_header_unsupported_plugin_name
7070
exclude-directories: |
7171
.github
72+
build
7273
docs
7374
tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Thumbs.db
1919
# Build output
2020
build/
2121
build-module/
22+
build-scripts/
2223
build-types/
2324

2425
# Environment

ai.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
/**
3030
* Shortcut constant to the path of this file.
3131
*/
32-
define( 'WPAI_DIR', plugin_dir_path( __FILE__ ) );
32+
if ( ! defined( 'WPAI_DIR' ) ) {
33+
define( 'WPAI_DIR', plugin_dir_path( __FILE__ ) );
34+
}
3335

3436
require_once WPAI_DIR . 'includes/bootstrap.php';

docs/ARCHITECTURE_OVERVIEW.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The plugin follows a modular, experiment-based architecture:
66
```
77
ai/
88
├── ai.php # Plugin bootstrap
9-
├── build/ # Built assets
9+
├── build/ # wp-build route assets
10+
├── build-scripts/ # wp-scripts built assets
1011
├── docs/ # Documentation
1112
│ ├── experiments/ # Experiment specific documentation
1213
│ ├── ARCHITECTURE_OVERVIEW.md # Architecture Overview

docs/DEVELOPER_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ The plugin also includes the following action hooks:
242242

243243
### Asset Loading
244244

245-
The plugin provides a utility class for loading assets. This uses `wp-scripts` to build assets which are expected to live within the `src/` directory. They will then be built into the `build/` directory, where the asset loader will look for the files, pulling in the proper dependencies and versioning.
245+
The plugin provides a utility class for loading assets. This uses `wp-scripts` to build assets which are expected to live within the `src/` directory. They will then be built into the `build-scripts/` directory, where the asset loader will look for the files, pulling in the proper dependencies and versioning.
246246

247247
```php
248248
use WordPress\AI\Asset_Loader;
@@ -252,7 +252,7 @@ use WordPress\AI\Asset_Loader;
252252
*
253253
* First argument is the script handle.
254254
* The second argument is the script file name.
255-
* This script file name should be in the build/ directory.
255+
* This script file name should be in the build-scripts/ directory.
256256
* The source script files should be in the src/ directory. If needed,
257257
* you can add the entry point to the webpack.config.js file.
258258
*/
@@ -263,7 +263,7 @@ Asset_Loader::enqueue_script( 'my-experiment', 'experiments/my-experiment' );
263263
*
264264
* First argument is the style handle.
265265
* The second argument is the style file name.
266-
* This style file name should be in the build/ directory.
266+
* This style file name should be in the build-scripts/ directory.
267267
* The source style files should be in the src/ directory. If needed,
268268
* you can add the entry point to the webpack.config.js file.
269269
*/

0 commit comments

Comments
 (0)