Skip to content

Commit

Permalink
✨ Use @roots/vite-plugin
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon <[email protected]>
  • Loading branch information
retlehs and Log1x committed Feb 22, 2025
1 parent 24bb08f commit daf8637
Show file tree
Hide file tree
Showing 7 changed files with 262 additions and 790 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
fi
jq -e '
(.settings.color.palette | map(select(.name == "black")) | length > 0) and
(.settings.typography.fontFamilies | map(select(.name == "sans")) | length > 0) and
(.settings.typography.fontSizes | map(select(.name == "xl")) | length > 0)
(.settings.color.palette | length > 0) and
(.settings.typography.fontFamilies | length > 0) and
(.settings.typography.fontSizes | length > 0)
' "$THEME_JSON" 2>&1 || {
echo "❌ Invalid theme.json structure or missing required values"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion app/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
return;
}

$dependencies = json_decode(Vite::content('_editor.deps.json'));
$dependencies = json_decode(Vite::content('editor.deps.json'));

foreach ($dependencies as $dependency) {
if (! wp_script_is($dependency)) {
Expand Down
592 changes: 254 additions & 338 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"translate:mo": "wp i18n make-mo ./resources/lang ./resources/lang"
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.6",
"@wordpress/dependency-extraction-webpack-plugin": "^6.18.0",
"@roots/vite-plugin": "^1.0.0",
"@tailwindcss/vite": "4.0.7",
"laravel-vite-plugin": "^1.2.0",
"tailwindcss": "^4.0.6",
"vite": "^6.1.0"
Expand Down
Loading

0 comments on commit daf8637

Please sign in to comment.