Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ‘¨πŸ½β€πŸ”¬ feature: theme.json handlers #1199

Merged
merged 10 commits into from
Mar 3, 2022
Merged
26 changes: 18 additions & 8 deletions sources/@roots/bud-preset-wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@
"stylelint-config/",
"types/"
],
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./types/index.d.ts",
"exports": {
".": "./lib/cjs/index.js",
"./eslint-config": "./eslint-config/index.js",
"./stylelint-config": "./stylelint-config/index.js"
},
"bud": {
"type": "extension",
"peers": [
Expand All @@ -55,6 +47,24 @@
"@roots/bud-wordpress-manifests"
]
},
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./types/index.d.ts",
"exports": {
".": "./lib/cjs/index.js",
"./eslint-config": "./eslint-config/index.js",
"./stylelint-config": "./stylelint-config/index.js"
},
"typesVersions": {
"*": {
".": [
"./types/index.d.ts"
],
"theme": [
"./types/theme.d.ts"
]
}
},
"devDependencies": {
"@roots/bud-framework": "workspace:sources/@roots/bud-framework",
"@skypack/package-check": "0.2.2",
Expand Down
30 changes: 2 additions & 28 deletions sources/@roots/bud-preset-wordpress/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,6 @@
* @see https://roots.io/bud
* @see https://github.com/roots/bud
*
* @remarks
* - πŸ’ Composable - Build boss web applications with a modular, configurable build system
*
* - πŸ’ͺ Modern - Modern framework that scales from a single file to thousands of lines of code
*
* - 🌱 Easy - Low bundle size and fast build times
*
* @remarks
* This preset is a wrapper for the following presets:
*
* - {@link @roots/bud-preset-recommend# | @roots/bud-preset-recommend}
*
* - {@link @roots/bud-react# | @roots/bud-react}
*
* - {@link @roots/bud-wordpress-dependencies# | @roots/bud-wordpress-dependencies}
*
* - {@link @roots/bud-wordpress-externals# | @roots/bud-wordpress-externals}
*
* - {@link @roots/bud-wordpress-manifests# | @roots/bud-wordpress-manifests}
*
* @example
* ```js
* const wp = require('@roots/bud-preset-wordpress')
*
* module.exports = (app: Framework) => {
* app.use(wp)
* }
* ```
* @packageDocumentation
*/

Expand Down Expand Up @@ -63,3 +35,5 @@ type BudWordPressPreset = Extension.Module

export const name: BudWordPressPreset['name'] =
'@roots/bud-preset-wordpress'

export * as ThemeJSON from './theme'
Loading