-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ improve: config module handling (#2336)
## 🚨 Potentially breaking changes - `bud.context.files` interface has changed. The `module` property is now an async function that returns the module. This is an undocumented internal, but people might be using it.. - deprecated: `@roots/merged-manifest-webpack-plugin` - deprecated: `@roots/bud-wordpress-manifests` ## Changes - improve(`@roots/wordpress-theme-json-webpack-plugin`): `theme.json` included in compilation module graph - improve(`@roots/bud-tailwindcss-theme-json`): Edits to `tailwind.config.js` now result in rebuild of `theme.json` - improve(`@roots/entrypoints-webpack-plugin`): `entrypoints.json` included in compilation module graph - improve: config files now lazy loaded. - new package: `@roots/wordpress-transforms` is a small utility package for translating `@wordpress/*` signifiers to `wp-*` enqueue handles and `wp.*` references. ## Type of change **MINOR: feature**
- Loading branch information
1 parent
6c4a034
commit 8ca1b78
Showing
226 changed files
with
2,288 additions
and
2,327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
{ | ||
"name": "@examples/sage", | ||
"private": true, | ||
"packageManager": "npm@8.19.2", | ||
"engines": { | ||
"node": "18.12.1" | ||
}, | ||
"browserslist": [ | ||
"extends @roots/browserslist-config" | ||
], | ||
"type": "module", | ||
"devDependencies": { | ||
"@roots/bud": "latest", | ||
"@roots/bud-eslint": "latest", | ||
"@roots/bud-prettier": "latest", | ||
"@roots/bud-stylelint": "latest", | ||
"@roots/bud-tailwindcss": "latest", | ||
"@roots/eslint-config": "latest", | ||
"@roots/sage": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ | |
|
||
@import 'tailwindcss/components'; | ||
@import 'tailwindcss/utilities'; | ||
|
||
body { | ||
background: blue; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
setUrl: 3010 | ||
setProxyUrl: 8000 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
setPublicPath: /app/themes/your-theme-name/dist/ | ||
|
||
entry: | ||
app: [app.js, app.css] | ||
editor: [editor.js] | ||
|
||
wpjson: | ||
enable: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
{ | ||
"name": "@examples/wordpress-theme", | ||
"private": true, | ||
"packageManager": "npm@8.19.2", | ||
"engines": { | ||
"node": "18.12.1" | ||
}, | ||
"browserslist": [ | ||
"extends @roots/browserslist-config" | ||
], | ||
"type": "module", | ||
"devDependencies": { | ||
"@roots/browserslist-config": "latest", | ||
"@roots/bud": "latest", | ||
"@roots/bud-swc": "latest", | ||
"@roots/bud-preset-wordpress": "latest" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"__generated__": "⚠️ This file is generated. Do not edit.", | ||
"$schema": "https://schemas.wp.org/trunk/theme.json", | ||
"version": 2, | ||
"settings": { | ||
"color": { | ||
"custom": false, | ||
"customGradient": false | ||
}, | ||
"custom": { | ||
"spacing": {}, | ||
"typography": { | ||
"font-size": {}, | ||
"line-height": {} | ||
} | ||
}, | ||
"spacing": { | ||
"padding": true, | ||
"units": [ | ||
"px", | ||
"%", | ||
"em", | ||
"rem", | ||
"vw", | ||
"vh" | ||
] | ||
}, | ||
"typography": { | ||
"customFontSize": false, | ||
"dropCap": false | ||
} | ||
} | ||
} |
Oops, something went wrong.