diff --git a/src/commands/run.php b/src/commands/run.php index a23c213..d03bea8 100644 --- a/src/commands/run.php +++ b/src/commands/run.php @@ -31,6 +31,8 @@ setup_id(); +maybe_generate_htaccess(); + // Run the command in the Codeception container. $root = tric_plugins_dir( tric_target( true ) ); diff --git a/src/tric.php b/src/tric.php index 5dbb083..804ba4a 100644 --- a/src/tric.php +++ b/src/tric.php @@ -81,6 +81,8 @@ function setup_tric_env( $root_dir ) { exit( 1 ); } + maybe_generate_htaccess(); + $plugins_dir = getenv( 'TRIC_PLUGINS_DIR' ); if ( empty( $plugins_dir ) ) { $plugins_dir = root( '_plugins' ); diff --git a/src/wordpress.php b/src/wordpress.php new file mode 100644 index 0000000..15440e6 --- /dev/null +++ b/src/wordpress.php @@ -0,0 +1,33 @@ +