Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/all-pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,21 @@ jobs:

- name: Run General Tests
# See https://github.com/alleyinteractive/action-test-general for more options
uses: alleyinteractive/action-test-general@develop
uses: alleyinteractive/action-test-general@v1

- name: Run Node Tests
# See https://github.com/alleyinteractive/action-test-node for more options.
# Defaults to the latest LTS version.
uses: alleyinteractive/action-test-node@develop
uses: alleyinteractive/action-test-node@v1
with:
cache-dependency-path: 'package.json'
install-command: 'npm install'
node-version: '22'
skip-audit: 'true'

- name: Run PHP Tests
# See https://github.com/alleyinteractive/action-test-php for more options
uses: alleyinteractive/action-test-php@develop
uses: alleyinteractive/action-test-php@v1
with:
php-version: '${{ matrix.php }}'
wordpress-version: '${{ matrix.wordpress }}'
Expand All @@ -64,4 +69,4 @@ jobs:
else
echo "All jobs passed or were skipped"
exit 0
fi
fi
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
build
vendor
composer.lock
package-lock.json
node_modules

# Log files
*.log

# Cache files
.phpcs/*.json
.phpcs.cache.json
.phpunit.result.cache

# Ignore temporary OS files
Expand Down
2 changes: 1 addition & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<arg value="ps" />

<!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->
<arg name="cache" value=".phpcs/cache.json" />
<arg name="cache" value=".phpcs.cache.json" />

<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./" />
Expand Down
Empty file removed .phpcs/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions assets/scss/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ html {
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
line-height: 1.15; /* 1. Correct the line height in all browsers. */
-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
tab-size: 4; /* 2. Use a more readable tab size (opinionated). */
-webkit-text-size-adjust: 100%; /* 3. Prevent adjustments of font size after orientation changes in iOS. */
}

/*
Expand Down
2 changes: 1 addition & 1 deletion entries/global/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ global entry styles.

*/

@use '@/assets/scss/normalize' as *;
@use '../../assets/scss/normalize' as *;
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Create_WordPress_Theme
*/

namespace Create_WordPress_Theme;
namespace Alley\WP\Create_WordPress_Theme;

define( 'CREATE_WORDPRESS_THEME_DIR', __DIR__ );
define( 'CREATE_WORDPRESS_THEME_URL', get_template_directory_uri() );
Expand Down
2 changes: 1 addition & 1 deletion inc/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package create-wordpress-theme
*/

namespace Create_WordPress_Theme\Assets;
namespace Alley\WP\Create_WordPress_Theme\Assets;

/**
* Validate file paths to prevent a PHP error if a file doesn't exist.
Expand Down
8 changes: 4 additions & 4 deletions inc/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* @package Create_WordPress_Theme
*/

namespace Create_WordPress_Theme\Blocks;
namespace Alley\WP\Create_WordPress_Theme\Blocks;

use function Create_WordPress_Theme\Assets\get_entry_dir_path;
use function Create_WordPress_Theme\Assets\get_asset_dependency_array;
use function Create_WordPress_Theme\Assets\get_asset_version;
use function Alley\WP\Create_WordPress_Theme\Assets\get_entry_dir_path;
use function Alley\WP\Create_WordPress_Theme\Assets\get_asset_dependency_array;
use function Alley\WP\Create_WordPress_Theme\Assets\get_asset_version;

add_action( 'after_setup_theme', __NAMESPACE__ . '\enqueue_block_styles' );

Expand Down
2 changes: 1 addition & 1 deletion inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Create_WordPress_Theme
*/

namespace Create_WordPress_Theme\Customizer;
namespace Alley\WP\Create_WordPress_Theme\Customizer;

add_action( 'after_setup_theme', __NAMESPACE__ . '\action__custom_logo_support' );

Expand Down
2 changes: 1 addition & 1 deletion inc/site-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Create_WordPress_Theme
*/

namespace Create_WordPress_Theme\Site_Editor;
namespace Alley\WP\Create_WordPress_Theme\Site_Editor;

add_action( 'admin_menu', __NAMESPACE__ . '\action__admin_menu' );

Expand Down
2 changes: 1 addition & 1 deletion inc/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Create_WordPress_Theme
*/

namespace Create_WordPress_Theme;
namespace Alley\WP\Create_WordPress_Theme\Theme;

add_action( 'after_setup_theme', __NAMESPACE__ . '\action__after_setup_theme' );
add_action( 'admin_menu', __NAMESPACE__ . '\action__admin_menu' );
Expand Down
3 changes: 0 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ module.exports = {
// For transformations with .js and .jsx files.
'^.+\\.(js|jsx)$': 'babel-jest',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
},
testEnvironment: 'node',
};
5 changes: 1 addition & 4 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["*"]
}
"baseUrl": "."
}
}
Loading
Loading